MadelineProtoDocs/docs/API_docs/constructors/peerLocated.md
2019-12-27 17:48:04 +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}