1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 02:56:57 +01:00
MadelineProto/docs/TD_docs/constructors/venue.md

49 lines
1.2 KiB
Markdown
Raw Normal View History

---
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, ];
```
2017-07-23 16:11:02 +02:00
[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, }
```