peyk.platforms.telegram.types.bot_command¶
Classes
|
This object represents a bot command. |
- class peyk.platforms.telegram.types.bot_command.BotCommand(command: str = '', description: str = '', is_ephemeral: bool | None = None)[source]¶
Bases:
objectThis object represents a bot command.
- Variables:
command (str) – Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and underscores.
description (str) – Description of the command; 1-256 characters
is_ephemeral (bool | None) – True, if the command sends an ephemeral message, which can be seen only by the sender of the message and the bot
- command: str = ''¶
- description: str = ''¶
- is_ephemeral: bool | None = None¶
- classmethod from_dict(data: dict | None) BotCommand | None[source]¶
Provides the from dict operation for the Telegram integration.
- Parameters:
data – Value used by this operation.
- Returns:
Result produced by the operation.