BotCommandScopeChat¶
- class aiogram.types.bot_command_scope_chat.BotCommandScopeChat(*, type: Literal[BotCommandScopeType.CHAT] = BotCommandScopeType.CHAT, chat_id: int | str, **extra_data: Any)[source]¶
Represents the scope of bot commands, covering a specific chat.
Source: https://core.telegram.org/bots/api#botcommandscopechat
- type: Literal[BotCommandScopeType.CHAT]¶
Scope type, must be chat
- model_post_init(context: Any, /) None ¶
We need to both initialize private attributes and call the user-defined model_post_init method.
- chat_id: int | str¶
Unique identifier for the target chat or username of the target supergroup (in the format
@supergroupusername
)