BotCommandScope#

class pyrogram.raw.base.BotCommandScope#

Represents a scope where the bot commands, specified using bots.setBotCommands will be valid.

Constructors:

This base type has 7 constructors available.

BotCommandScopeChatAdmins

The specified bot commands will be valid only for chat administrators, in all groups and supergroups.

BotCommandScopeChats

The specified bot commands will be valid in all groups and supergroups.

BotCommandScopeDefault

The commands will be valid in all dialogs.

BotCommandScopePeer

The specified bot commands will be valid only in a specific dialog.

BotCommandScopePeerAdmins

The specified bot commands will be valid for all admins of the specified group or supergroup.

BotCommandScopePeerUser

The specified bot commands will be valid only for a specific user in the specified group or supergroup.

BotCommandScopeUsers

The specified bot commands will only be valid in all private chats with users.