InlineKeyboardMarkup

class pyrogram.types.InlineKeyboardMarkup[source]

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 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 cannot be changed by editing the keyboard.