InlineKeyboardMarkup

class ftmgram.types.InlineKeyboardMarkup(inline_keyboard: List[List[InlineKeyboardButton]], force_reply: bool | None = None)

An inline keyboard that appears right next to the message it belongs to.

Parameters:
  • inline_keyboard (List of List of InlineKeyboardButton) – List of button rows, each represented by a List of InlineKeyboardButton objects.

  • force_reply (bool, optional) – Pass True to force reply with this inline keyboard (Bot API 10.3).