Layer 220
TopPeerCategory
Abstract type representing one of 9 possible constructors.
Type
Available Constructors
In Gogram, this type is represented as tg.TopPeerCategory interface.
Use any of the following constructors:
TopPeerCategoryBotsPm
Most used bots
TopPeerCategoryBotsInline
Most used inline bots
TopPeerCategoryGroups
Often-opened groups and supergroups
TopPeerCategoryCorrespondents
Users we've chatted most frequently with
TopPeerCategoryChannels
Most frequently visited channels
TopPeerCategoryForwardUsers
Users to which the users often forwards messages to
TopPeerCategoryPhoneCalls
Most frequently called users
TopPeerCategoryForwardChats
Chats to which the users often forwards messages to
TopPeerCategoryBotsApp
Most frequently used Main Mini Bot Apps.
Gogram Example
// TopPeerCategory is an interface type // You can use any of the following constructors: var _ tg.TopPeerCategory = &tg.TopPeerCategoryBotsPm{} var _ tg.TopPeerCategory = &tg.TopPeerCategoryBotsInline{} var _ tg.TopPeerCategory = &tg.TopPeerCategoryGroups{} var _ tg.TopPeerCategory = &tg.TopPeerCategoryCorrespondents{} var _ tg.TopPeerCategory = &tg.TopPeerCategoryChannels{} // ... and 4 more constructors