Reference
Resources
arbitrarycallbackdatabot.py
chatmemberbot.py
contexttypesbot.py
conversationbot.py
conversationbot2.py
customwebhookbot.py
deeplinking.py
echobot.py
errorhandlerbot.py
inlinebot.py
inlinekeyboard.py
inlinekeyboard2.py
nestedconversationbot.py
passportbot.py
paymentbot.py
persistentconversationbot.py
pollbot.py
timerbot.py
webappbot.py
Project
Bases:telegram.TelegramObject
This object represents a bot command.
Objects of this class are comparable in terms of equality. Two objects of this class areconsidered equal, if theircommand
anddescription
are equal.
Returned In
Text of the command;1
-32
characters. Can contain only lowercaseEnglish letters, digits and underscores.
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.