Back to top
Parameters:
BotCommandScopeChat¶
class telegram.BotCommandScopeChat(chat_id, *, api_kwargs=None)[source]¶Bases: telegram.BotCommandScope
Represents the scope of bot commands, covering a specific chat.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their type and chat_id are equal.
Use In
Added in version 13.7.
chat_id (str | int) – Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername).
type[source]¶Scope type 'chat'.
Type: chat_id[source]¶Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername).
Type: