telegram api type · layer 229

BotCommandScope

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

constructors (7)

constructoriddescription
botCommandScopeDefault#2f6cb2abThe commands will be valid in all dialogs
botCommandScopeUsers#3c4f04d8The specified bot commands will only be valid in all private chats with users.
botCommandScopeChats#6fe1a881The specified bot commands will be valid in all groups and supergroups.
botCommandScopeChatAdmins#b9aa606aThe specified bot commands will be valid only for chat administrators, in all groups and supergroups.
botCommandScopePeer#db9d897dThe specified bot commands will be valid only in a specific dialog.
botCommandScopePeerAdmins#3fd863d1The specified bot commands will be valid for all admins of the specified group or supergroup.
botCommandScopePeerUser#0a1321f3The specified bot commands will be valid only for a specific user in the specified group or supergroup.

used by (3)