Raw.contacts.GetTopPeers
Get most used peers
contacts.getTopPeers#973478b6 flags:# correspondents:flags.0?true bots_pm:flags.1?true bots_inline:flags.2?true phone_calls:flags.3?true forward_users:flags.4?true forward_chats:flags.5?true groups:flags.10?true channels:flags.15?true bots_app:flags.16?true offset:int limit:int hash:long = contacts.TopPeers;
export namespace Raw {
export namespace contacts {
export class GetTopPeers {
constructor(params: {
correspondents?: boolean;
botsPm?: boolean;
botsInline?: boolean;
phoneCalls?: boolean;
forwardUsers?: boolean;
forwardChats?: boolean;
groups?: boolean;
channels?: boolean;
botsApp?: boolean;
offset: number;
limit: number;
hash: bigint;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0x973478b6
Property
correspondents
: boolean or undefinedUsers we’ve chatted most frequently with
botsPm
: boolean or undefinedMost used bots
botsInline
: boolean or undefinedMost used inline bots
phoneCalls
: boolean or undefinedMost frequently called users
forwardUsers
: boolean or undefinedUsers to which the users often forwards messages to
forwardChats
: boolean or undefinedChats to which the users often forwards messages to
groups
: boolean or undefinedOften-opened groups and supergroups
channels
: boolean or undefinedMost frequently visited channels
botsApp
: boolean or undefinedoffset
: numberOffset for pagination
limit
: numberMaximum number of results to return, see pagination
hash
: bigintHash used for caching, for more info click here