MadelineProtoDocs/docs/API_docs/constructors/peerLocated.md
2024-05-01 14:53:46 +02:00

32 lines
797 B
Markdown

---
title: "peerLocated"
description: "Peer geolocated nearby"
nav_exclude: true
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: peerLocated
[Back to constructors index](/API_docs/constructors/index.html)
Peer geolocated nearby
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|peer|[long](/API_docs/types/long.html) | Yes|Peer|
|expires|[int](/API_docs/types/int.html) | Yes|Validity period of current data|
|distance|[int](/API_docs/types/int.html) | Yes|Distance from the peer in meters|
### Type: [PeerLocated](/API_docs/types/PeerLocated.html)
### Example:
```
$peerLocated = ['_' => 'peerLocated', 'peer' => long, 'expires' => int, 'distance' => int];
```