Represents a scope where the bot commands, specified using bots.setBotCommands will be valid.
Constructor | Description |
---|---|
botCommandScopeDefault | The commands will be valid in all dialogs |
botCommandScopeUsers | The specified bot commands will only be valid in all private chats with users. |
botCommandScopeChats | The specified bot commands will be valid in all groups and supergroups. |
botCommandScopeChatAdmins | The specified bot commands will be valid only for chat administrators, in all groups and supergroups. |
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. |
Set bot command list