contacts.GetTopPeers
- class pyrogram.raw.functions.contacts.GetTopPeers
Get most used peers
- Details:
Layer:
223ID:
973478B6
- Parameters:
offset (
int32-bit) – Offset for paginationlimit (
int32-bit) – Maximum number of results to return, see paginationhash (
int64-bit) – Hash used for caching, for more info click herecorrespondents (
bool, optional) – Users we’ve chatted most frequently withbots_pm (
bool, optional) – Most used botsbots_inline (
bool, optional) – Most used inline botsphone_calls (
bool, optional) – Most frequently called usersforward_users (
bool, optional) – Users to which the users often forwards messages toforward_chats (
bool, optional) – Chats to which the users often forwards messages togroups (
bool, optional) – Often-opened groups and supergroupschannels (
bool, optional) – Most frequently visited channelsbots_app (
bool, optional) – Most frequently used Main Mini Bot Apps.
- Returns:
TL Schema
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
Parameter Tree
true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)true (optional)intintlongExample
await app.invoke(
GetTopPeers(
correspondents=None,
bots_pm=None,
bots_inline=None,
phone_calls=None,
forward_users=None,
forward_chats=None,
groups=None,
channels=None,
bots_app=None,
offset=0,
limit=0,
hash=0,
)
)