BotCommandScope
This is a boxed type (a TL class): the Go interface tg.BotCommandScopeClass, implemented by
the constructors below. A value of this type is one of them — switch on the concrete
type to handle it.
switch v := value.(type) {
case *tg.BotCommandScopeChatAdmins: // botCommandScopeChatAdmins
case *tg.BotCommandScopeChats: // botCommandScopeChats
case *tg.BotCommandScopeDefault: // botCommandScopeDefault
case *tg.BotCommandScopePeer: // botCommandScopePeer
case *tg.BotCommandScopePeerAdmins: // botCommandScopePeerAdmins
case *tg.BotCommandScopePeerUser: // botCommandScopePeerUser
case *tg.BotCommandScopeUsers: // botCommandScopeUsers
}
Constructors
| Constructor | TL name |
|---|---|
BotCommandScopeChatAdmins | botCommandScopeChatAdmins |
BotCommandScopeChats | botCommandScopeChats |
BotCommandScopeDefault | botCommandScopeDefault |
BotCommandScopePeer | botCommandScopePeer |
BotCommandScopePeerAdmins | botCommandScopePeerAdmins |
BotCommandScopePeerUser | botCommandScopePeerUser |
BotCommandScopeUsers | botCommandScopeUsers |