MadelineProtoDocs/old_docs/API_docs_v36/constructors/messageMediaGeoLive.md

40 lines
812 B
Markdown
Raw Normal View History

2020-06-16 17:50:25 +02:00
---
title: messageMediaGeoLive
description: Indicates a live geolocation
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: messageMediaGeoLive
[Back to constructors index](index.md)
Indicates a live geolocation
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|geo|[GeoPoint](../types/GeoPoint.md) | Optional|Geolocation|
|period|[int](../types/int.md) | Yes|Validity period of provided geolocation|
### Type: [MessageMedia](../types/MessageMedia.md)
### Example:
```php
$messageMediaGeoLive = ['_' => 'messageMediaGeoLive', 'geo' => GeoPoint, 'period' => int];
```
Or, if you're into Lua:
```lua
messageMediaGeoLive={_='messageMediaGeoLive', geo=GeoPoint, period=int}
```