Layer 227
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:
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 supergro
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.BotCommandScopeChatAdmins{} var _ tg.BotCommandScope = &tg.BotCommandScopeChats{} var _ tg.BotCommandScope = &tg.BotCommandScopeDefault{} var _ tg.BotCommandScope = &tg.BotCommandScopePeer{} var _ tg.BotCommandScope = &tg.BotCommandScopePeerAdmins{} // ... and 2 more constructors