mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 01:46:55 +01:00
42 lines
1.1 KiB
Markdown
42 lines
1.1 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, ];
|
|
```
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
```
|
|
venue={_='venue', location=location, title=string, address=string, provider=string, id=string, }
|
|
|
|
```
|
|
|
|
|