Skip to main content

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

ConstructorTL name
BotCommandScopeChatAdminsbotCommandScopeChatAdmins
BotCommandScopeChatsbotCommandScopeChats
BotCommandScopeDefaultbotCommandScopeDefault
BotCommandScopePeerbotCommandScopePeer
BotCommandScopePeerAdminsbotCommandScopePeerAdmins
BotCommandScopePeerUserbotCommandScopePeerUser
BotCommandScopeUsersbotCommandScopeUsers

References