Layer 220
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.
BotCommandScopeDefault
The commands will be valid in all dialogs
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 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.BotCommandScopeDefault{} var _ tg.BotCommandScope = &tg.BotCommandScopeChats{} var _ tg.BotCommandScope = &tg.BotCommandScopeChatAdmins{} var _ tg.BotCommandScope = &tg.BotCommandScopePeer{} // ... and 2 more constructors