mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 07:16:55 +01:00
38 lines
529 B
Markdown
38 lines
529 B
Markdown
|
---
|
||
|
title: chats
|
||
|
description: Contains list of chats
|
||
|
---
|
||
|
## Constructor: chats
|
||
|
[Back to constructors index](index.md)
|
||
|
|
||
|
|
||
|
|
||
|
Contains list of chats
|
||
|
|
||
|
### Attributes:
|
||
|
|
||
|
| Name | Type | Required | Description |
|
||
|
|----------|:-------------:|:--------:|------------:|
|
||
|
|chats|Array of [chat](../constructors/chat.md) | Yes|List of chats|
|
||
|
|
||
|
|
||
|
|
||
|
### Type: [Chats](../types/Chats.md)
|
||
|
|
||
|
|
||
|
### Example:
|
||
|
|
||
|
```
|
||
|
$chats = ['_' => 'chats', 'chats' => [chat], ];
|
||
|
```
|
||
|
|
||
|
Or, if you're into Lua:
|
||
|
|
||
|
|
||
|
```
|
||
|
chats={_='chats', chats={chat}, }
|
||
|
|
||
|
```
|
||
|
|
||
|
|