BotCommand¶
class telegram.BotCommand(command, description, *, api_kwargs=None)[source]¶Bases: telegram.TelegramObject
This 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 command and description are equal.
Returned In
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.
Text of the command; 1- 32 characters. Can contain only lowercase English letters, digits and underscores.
Type: description[source]¶Description of the command; 1- 256 characters.
Type: MAX_COMMAND = 32[source]¶telegram.constants.BotCommandLimit.MAX_COMMAND
Added in version 20.0.
telegram.constants.BotCommandLimit.MAX_DESCRIPTION
Added in version 20.0.
telegram.constants.BotCommandLimit.MIN_COMMAND
Added in version 20.0.
telegram.constants.BotCommandLimit.MIN_DESCRIPTION
Added in version 20.0.