telegram.InlineKeyboardMarkup

class telegram.InlineKeyboardMarkup(inline_keyboard, **kwargs)

Bases: telegram.replymarkup.ReplyMarkup

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

inline_keyboard

List[List[telegram.InlineKeyboardButton]] – Array of button rows, each represented by an Array of InlineKeyboardButton objects.

Parameters:
  • inline_keyboard (List[List[telegram.InlineKeyboardButton]]) – Array of button rows, each represented by an Array of InlineKeyboardButton objects.
  • **kwargs (dict) – Arbitrary keyword arguments.