InlineKeyboardMarkup

class aiogram.types.inline_keyboard_markup.InlineKeyboardMarkup(*, inline_keyboard: list[list[InlineKeyboardButton]], **extra_data: Any)[source]

This object represents an inline keyboard that appears right next to the message it belongs to.

Source: https://core.telegram.org/bots/api#inlinekeyboardmarkup

inline_keyboard: list[list[InlineKeyboardButton]]

Array of button rows, each represented by an Array of aiogram.types.inline_keyboard_button.InlineKeyboardButton objects

model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_post_init(context: Any, /) None

We need to both initialize private attributes and call the user-defined model_post_init method.