Skip to main content

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

ConstructorTL name
TopPeerCategoryBotsApptopPeerCategoryBotsApp
TopPeerCategoryBotsGuestChattopPeerCategoryBotsGuestChat
TopPeerCategoryBotsInlinetopPeerCategoryBotsInline
TopPeerCategoryBotsPMtopPeerCategoryBotsPM
TopPeerCategoryChannelstopPeerCategoryChannels
TopPeerCategoryCorrespondentstopPeerCategoryCorrespondents
TopPeerCategoryForwardChatstopPeerCategoryForwardChats
TopPeerCategoryForwardUserstopPeerCategoryForwardUsers
TopPeerCategoryGroupstopPeerCategoryGroups
TopPeerCategoryPhoneCallstopPeerCategoryPhoneCalls

References