MadelineProtoDocs/old_docs/API_docs_v104/constructors/peerLocated.md

41 lines
826 B
Markdown
Raw Normal View History

2019-08-15 20:25:16 +02:00
---
title: peerLocated
2019-12-27 17:48:04 +01:00
description: Peer geolocated nearby
2019-08-15 20:25:16 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: peerLocated
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
Peer geolocated nearby
2019-08-15 20:25:16 +02:00
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|peer|[Peer](../types/Peer.md) | Yes|Peer|
2019-12-27 17:48:04 +01:00
|expires|[int](../types/int.md) | Yes|Validity period of current data|
|distance|[int](../types/int.md) | Yes|Distance from the peer in meters|
2019-08-15 20:25:16 +02:00
### Type: [PeerLocated](../types/PeerLocated.md)
### Example:
```php
$peerLocated = ['_' => 'peerLocated', 'peer' => Peer, 'expires' => int, 'distance' => int];
```
Or, if you're into Lua:
```lua
peerLocated={_='peerLocated', peer=Peer, expires=int, distance=int}
```