2020-03-06 13:09:28 +01:00
|
|
|
---
|
|
|
|
title: peerSelfLocated
|
2020-06-16 17:50:25 +02:00
|
|
|
description: Current peer
|
2020-03-06 13:09:28 +01:00
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
|
|
---
|
|
|
|
# Constructor: peerSelfLocated
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-16 17:50:25 +02:00
|
|
|
Current peer
|
|
|
|
|
2020-03-06 13:09:28 +01:00
|
|
|
### Attributes:
|
|
|
|
|
2020-06-16 17:50:25 +02:00
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|---------------|----------|-------------|
|
|
|
|
|expires|[int](../types/int.md) | Yes|Expiry of geolocation info for current peer|
|
2020-03-06 13:09:28 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [PeerLocated](../types/PeerLocated.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```php
|
|
|
|
$peerSelfLocated = ['_' => 'peerSelfLocated', 'expires' => int];
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
peerSelfLocated={_='peerSelfLocated', expires=int}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|