peyk.platforms.telegram.types.inline_keyboard_markup

Classes

InlineKeyboardMarkup(inline_keyboard)

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

class peyk.platforms.telegram.types.inline_keyboard_markup.InlineKeyboardMarkup(inline_keyboard: ~typing.List[~typing.List[~peyk.platforms.telegram.types.inline_keyboard_button.InlineKeyboardButton]] = <factory>)[source]

Bases: object

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

Variables:

inline_keyboard (List[List[peyk.platforms.telegram.types.inline_keyboard_button.InlineKeyboardButton]]) – Array of button rows, each represented by an Array of InlineKeyboardButton objects

inline_keyboard: List[List[InlineKeyboardButton]]
classmethod from_dict(data: dict | None) InlineKeyboardMarkup | None[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.

Returns:

Result produced by the operation.

to_dict() Dict[str, object][source]

Provides the to dict operation for the Telegram integration.

Returns:

Result produced by the operation.