MadelineProtoDocs/old_docs/API_docs_v109/constructors/peerLocated.md
2020-03-06 12:24:14 +01:00

826 B

title description image
peerLocated Peer geolocated nearby https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: peerLocated

Back to constructors index

Peer geolocated nearby

Attributes:

Name Type Required Description
peer Peer Yes Peer
expires int Yes Validity period of current data
distance int Yes Distance from the peer in meters

Type: PeerLocated

Example:

$peerLocated = ['_' => 'peerLocated', 'peer' => Peer, 'expires' => int, 'distance' => int];

Or, if you're into Lua:

peerLocated={_='peerLocated', peer=Peer, expires=int, distance=int}