Layer 224
BotCommandScope
Abstract type representing one of 7 possible constructors.
Type
Available Constructors
In Gogram, this type is represented as tg.BotCommandScope interface.
Use any of the following constructors:
BotCommandScopeUsers
The specified bot commands will only be valid in all private chats with users.
BotCommandScopeChatAdmins
The specified bot commands will be valid only for chat administrators, in all groups and supergroups
BotCommandScopeDefault
The commands will be valid in all dialogs
BotCommandScopePeerAdmins
The specified bot commands will be valid for all admins of the specified group or supergroup.
BotCommandScopePeer
The specified bot commands will be valid only in a specific dialog.
BotCommandScopeChats
The specified bot commands will be valid in all groups and supergroups.
BotCommandScopePeerUser
The specified bot commands will be valid only for a specific user in the specified group or supergro
Gogram Example
// BotCommandScope is an interface type // You can use any of the following constructors: var _ tg.BotCommandScope = &tg.BotCommandScopeUsers{} var _ tg.BotCommandScope = &tg.BotCommandScopeChatAdmins{} var _ tg.BotCommandScope = &tg.BotCommandScopeDefault{} var _ tg.BotCommandScope = &tg.BotCommandScopePeerAdmins{} var _ tg.BotCommandScope = &tg.BotCommandScopePeer{} // ... and 2 more constructors