MadelineProto/docs/TD_docs/constructors/venue.md
Daniil Gentili 9d77dc0919 AMP fixes
2017-08-20 09:05:56 +00:00

49 lines
1.3 KiB
Markdown

---
title: venue
description: Describes venue
---
## Constructor: venue
[Back to constructors index](index.md)
Describes venue
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|location|[location](../types/location.md) | Yes|Venue location as defined by sender|
|title|[string](../types/string.md) | Yes|Venue name as defined by sender|
|address|[string](../types/string.md) | Yes|Venue address as defined by sender|
|provider|[string](../types/string.md) | Yes|Provider of venue database as defined by sender. Only "foursquare" need to be supported currently|
|id|[string](../types/string.md) | Yes|Identifier of the venue in provider database as defined by sender|
### Type: [Venue](../types/Venue.md)
### Example:
```
$venue = ['_' => 'venue', 'location' => location, 'title' => 'string', 'address' => 'string', 'provider' => 'string', 'id' => 'string'];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "venue", "location": location, "title": "string", "address": "string", "provider": "string", "id": "string"}
```
Or, if you're into Lua:
```
venue={_='venue', location=location, title='string', address='string', provider='string', id='string'}
```