peyk.platforms.telegram.types.menu_button_commands

Classes

MenuButtonCommands([type])

Represents a menu button, which opens the bot's list of commands.

class peyk.platforms.telegram.types.menu_button_commands.MenuButtonCommands(type: str = 'commands')[source]

Bases: object

Represents a menu button, which opens the bot’s list of commands.

Variables:

type (str) – Type of the button, must be commands

type: str = 'commands'
classmethod from_dict(data: dict | None) MenuButtonCommands | 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.