Skip to content

contacts.getTopPeers

Layer 225

Constructor ID: 0x973478b6
Returns: TopPeers

Parameters

NameTypeDescription
correspondentsbool (flags.0, optional)
bots_pmbool (flags.1, optional)
bots_inlinebool (flags.2, optional)
phone_callsbool (flags.3, optional)
forward_usersbool (flags.4, optional)
forward_chatsbool (flags.5, optional)
groupsbool (flags.10, optional)
channelsbool (flags.15, optional)
bots_appbool (flags.16, optional)
bots_guestchatbool (flags.17, optional)
offsetint32
limitint32
hashint64

Example

go
result, err := client.Raw(&tg.GetTopPeersRequest{
    correspondents: false,
    bots_pm: false,
    bots_inline: false,
    phone_calls: false,
    forward_users: false,
    forward_chats: false,
    groups: false,
    channels: false,
    bots_app: false,
    bots_guestchat: false,
    offset: 0,
    limit: 0,
    hash: 0,
})
if err != nil {
    panic(err)
}
print(result)

Released under the Apache-2.0 License.