BotCommand¶
- class telegram.BotCommand(command, description, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObjectThis object represents a bot command.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
commandanddescriptionare equal.Returned In
- Parameters:
- command[source]¶
Text of the command;
1-32characters. Can contain only lowercase English letters, digits and underscores.- Type:
- MAX_COMMAND = 32[source]¶
telegram.constants.BotCommandLimit.MAX_COMMANDAdded in version 20.0.
- MAX_DESCRIPTION = 256[source]¶
telegram.constants.BotCommandLimit.MAX_DESCRIPTIONAdded in version 20.0.
- MIN_COMMAND = 1[source]¶
telegram.constants.BotCommandLimit.MIN_COMMANDAdded in version 20.0.
- MIN_DESCRIPTION = 1[source]¶
telegram.constants.BotCommandLimit.MIN_DESCRIPTIONAdded in version 20.0.