GetTopPeers

class pyrogram.api.functions.contacts.GetTopPeers(*, offset: int, limit: int, hash: int, correspondents: bool = None, bots_pm: bool = None, bots_inline: bool = None, phone_calls: bool = None, groups: bool = None, channels: bool = None)
ID

0xd4982db5

Parameters:
  • offsetint 32-bit
  • limitint 32-bit
  • hashint 32-bit
  • correspondents (optional) – bool
  • bots_pm (optional) – bool
  • bots_inline (optional) – bool
  • phone_calls (optional) – bool
  • groups (optional) – bool
  • channels (optional) – bool
Raises:

RPCError

Returns:

Either contacts.TopPeersNotModified, contacts.TopPeers or contacts.TopPeersDisabled