39 lines
748 B
Markdown
39 lines
748 B
Markdown
|
---
|
||
|
title: updatePeerLocated
|
||
|
description: List of peers near you was updated
|
||
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||
|
---
|
||
|
# Constructor: updatePeerLocated
|
||
|
[Back to constructors index](index.md)
|
||
|
|
||
|
|
||
|
|
||
|
List of peers near you was updated
|
||
|
|
||
|
### Attributes:
|
||
|
|
||
|
| Name | Type | Required | Description |
|
||
|
|----------|---------------|----------|-------------|
|
||
|
|peers|Array of [PeerLocated](../types/PeerLocated.md) | Yes|Geolocated peer list update|
|
||
|
|
||
|
|
||
|
|
||
|
### Type: [Update](../types/Update.md)
|
||
|
|
||
|
|
||
|
### Example:
|
||
|
|
||
|
```php
|
||
|
$updatePeerLocated = ['_' => 'updatePeerLocated', 'peers' => [PeerLocated, PeerLocated]];
|
||
|
```
|
||
|
|
||
|
|
||
|
Or, if you're into Lua:
|
||
|
|
||
|
```lua
|
||
|
updatePeerLocated={_='updatePeerLocated', peers={PeerLocated}}
|
||
|
|
||
|
```
|
||
|
|
||
|
|