MenuButtonCommands¶
- class aiogram.types.menu_button_commands.MenuButtonCommands(*, type: Literal[MenuButtonType.COMMANDS] = MenuButtonType.COMMANDS, text: str | None = None, web_app: WebAppInfo | None = None, **extra_data: Any)[source]¶
Represents a menu button, which opens the bot’s list of commands.
Source: https://core.telegram.org/bots/api#menubuttoncommands
- type: Literal[MenuButtonType.COMMANDS]¶
Type of the button, must be commands
- model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}¶
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
- model_post_init(context: Any, /) → None¶
We need to both initialize private attributes and call the user-defined model_post_init method.