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:
BotCommandScopeDefault
The commands will be valid in all dialogs
BotCommandScopeChats
The specified bot commands will be valid in all groups and supergroups.
BotCommandScopePeer
The specified bot commands will be valid only in a specific dialog.
BotCommandScopePeerUser
The specified bot commands will be valid only for a specific user in the specified group or supergro
BotCommandScopeChatAdmins
The specified bot commands will be valid only for chat administrators, in all groups and supergroups
BotCommandScopePeerAdmins
The specified bot commands will be valid for all admins of the specified group or supergroup.
BotCommandScopeUsers
The specified bot commands will only be valid in all private chats with users.
Gogram Example
// BotCommandScope is an interface type // You can use any of the following constructors: var _ tg.BotCommandScope = &tg.BotCommandScopeDefault{} var _ tg.BotCommandScope = &tg.BotCommandScopeChats{} var _ tg.BotCommandScope = &tg.BotCommandScopePeer{} var _ tg.BotCommandScope = &tg.BotCommandScopePeerUser{} var _ tg.BotCommandScope = &tg.BotCommandScopeChatAdmins{} // ... and 2 more constructors