InlineKeyboardMarkup

class aiogram.types.inline_keyboard_markup.InlineKeyboardMarkup(*, inline_keyboard: list[list[InlineKeyboardButton]], force_reply: bool | None = None, **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

force_reply: bool | None

Optional. Pass True if the reply interface must be shown to the user, as if they had manually selected the bot’s message and tapped ‘Reply’. The value of the field can’t be changed when the inline keyboard is edited