MadelineProtoDocs/old_docs/API_docs_v105/constructors/channelLocation.md

40 lines
807 B
Markdown
Raw Normal View History

2019-09-13 17:13:55 +02:00
---
title: channelLocation
description: Physical location (getchats)
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: channelLocation
[Back to constructors index](index.md)
Physical location (getchats)
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|geo\_point|[GeoPoint](../types/GeoPoint.md) | Optional|Geo point|
|address|[string](../types/string.md) | Yes|Physical address|
### Type: [ChannelLocation](../types/ChannelLocation.md)
### Example:
```php
$channelLocation = ['_' => 'channelLocation', 'geo_point' => GeoPoint, 'address' => 'string'];
```
Or, if you're into Lua:
```lua
channelLocation={_='channelLocation', geo_point=GeoPoint, address='string'}
```