contacts.GetTopPeers#

class pyrogram.raw.functions.contacts.GetTopPeers#

Get most used peers.

Details:
  • Layer: 158

  • ID: 973478B6

Parameters:
  • offset (int 32-bit) – Offset for pagination.

  • limit (int 32-bit) – Maximum number of results to return, see pagination.

  • hash (int 64-bit) – Hash for pagination.

  • correspondents (bool, optional) – Users we’ve chatted most frequently with.

  • bots_pm (bool, optional) – Most used bots.

  • bots_inline (bool, optional) – Most used inline bots.

  • phone_calls (bool, optional) – Most frequently called users.

  • forward_users (bool, optional) – Users to which the users often forwards messages to.

  • forward_chats (bool, optional) – Chats to which the users often forwards messages to.

  • groups (bool, optional) – Often-opened groups and supergroups.

  • channels (bool, optional) – Most frequently visited channels.

Returns:

contacts.TopPeers