BotCommandScopeChatMember

class telegram.BotCommandScopeChatMember(chat_id, user_id, *, api_kwargs=None)[source]

Bases: telegram.BotCommandScope

Represents the scope of bot commands, covering a specific member of a group or supergroup chat.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their type, chat_id and user_id are equal.

Added in version 13.7.

Parameters:
  • chat_id (str | int) – Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername).

  • user_id (int) – Unique identifier of the target user.

type[source]

Scope type 'chat_member'.

Type:

str

chat_id[source]

Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername).

Type:

str | int

user_id[source]

Unique identifier of the target user.

Type:

int