BotCommandScope¶
- class aiogram.types.bot_command_scope.BotCommandScope(**extra_data: Any)[source]¶
This object represents the scope to which bot commands are applied. Currently, the following 7 scopes are supported:
aiogram.types.bot_command_scope_default.BotCommandScopeDefault
aiogram.types.bot_command_scope_all_private_chats.BotCommandScopeAllPrivateChats
aiogram.types.bot_command_scope_all_group_chats.BotCommandScopeAllGroupChats
aiogram.types.bot_command_scope_all_chat_administrators.BotCommandScopeAllChatAdministrators
aiogram.types.bot_command_scope_chat_administrators.BotCommandScopeChatAdministrators
aiogram.types.bot_command_scope_chat_member.BotCommandScopeChatMember
Source: https://core.telegram.org/bots/api#botcommandscope
- 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.