MadelineProto/old_docs/API_docs_v33/constructors/chatLocated.md

44 lines
710 B
Markdown
Raw Normal View History

---
title: chatLocated
description: chatLocated attributes, type and example
---
## Constructor: chatLocated
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
|chat\_id|[int](../types/int.md) | Yes|
|distance|[int](../types/int.md) | Yes|
### Type: [ChatLocated](../types/ChatLocated.md)
### Example:
```
$chatLocated = ['_' => 'chatLocated', 'chat_id' => int, 'distance' => int, ];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_":"chatLocated","chat_id":"int","distance":"int"}
```
Or, if you're into Lua:
```
chatLocated={_='chatLocated', chat_id=int, distance=int, }
```