MadelineProtoDocs/old_docs/API_docs_v72/constructors/topPeer.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

764 B

title description image
topPeer Top peer https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: topPeer

Back to constructors index

Top peer

Attributes:

Name Type Required Description
peer Peer Yes Peer
rating double Yes Rating

Type: TopPeer

Example:

$topPeer = ['_' => 'topPeer', 'peer' => Peer, 'rating' => double];

PWRTelegram json-encoded version:

{"_": "topPeer", "peer": Peer, "rating": double}

Or, if you're into Lua:

topPeer={_='topPeer', peer=Peer, rating=double}