class aiogram.types.bot_command.BotCommand(*, command: str, description: str, **extra_data: Any)[source]#

This object represents a bot command.


command: str#

Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and underscores.

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_post_init(_ModelMetaclass__context: Any) None#

We need to both initialize private attributes and call the user-defined model_post_init method.

description: str#

Description of the command; 1-256 characters.