MadelineProto/docs/TD_docs/constructors/venue.md

49 lines
1.3 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 |
2017-08-20 11:05:56 +02:00
|----------|---------------|----------|-------------|
|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:
```
2017-07-23 16:33:46 +02:00
$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:
```
2017-07-23 16:33:46 +02:00
{"_": "venue", "location": location, "title": "string", "address": "string", "provider": "string", "id": "string"}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
venue={_='venue', location=location, title='string', address='string', provider='string', id='string'}
```