TopPeerCategory
This is a boxed type (a TL class): the Go interface tg.TopPeerCategoryClass, 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.TopPeerCategoryBotsApp: // topPeerCategoryBotsApp
case *tg.TopPeerCategoryBotsGuestChat: // topPeerCategoryBotsGuestChat
case *tg.TopPeerCategoryBotsInline: // topPeerCategoryBotsInline
case *tg.TopPeerCategoryBotsPM: // topPeerCategoryBotsPM
case *tg.TopPeerCategoryChannels: // topPeerCategoryChannels
case *tg.TopPeerCategoryCorrespondents: // topPeerCategoryCorrespondents
case *tg.TopPeerCategoryForwardChats: // topPeerCategoryForwardChats
case *tg.TopPeerCategoryForwardUsers: // topPeerCategoryForwardUsers
case *tg.TopPeerCategoryGroups: // topPeerCategoryGroups
case *tg.TopPeerCategoryPhoneCalls: // topPeerCategoryPhoneCalls
}
Constructors
| Constructor | TL name |
|---|---|
TopPeerCategoryBotsApp | topPeerCategoryBotsApp |
TopPeerCategoryBotsGuestChat | topPeerCategoryBotsGuestChat |
TopPeerCategoryBotsInline | topPeerCategoryBotsInline |
TopPeerCategoryBotsPM | topPeerCategoryBotsPM |
TopPeerCategoryChannels | topPeerCategoryChannels |
TopPeerCategoryCorrespondents | topPeerCategoryCorrespondents |
TopPeerCategoryForwardChats | topPeerCategoryForwardChats |
TopPeerCategoryForwardUsers | topPeerCategoryForwardUsers |
TopPeerCategoryGroups | topPeerCategoryGroups |
TopPeerCategoryPhoneCalls | topPeerCategoryPhoneCalls |