40 lines
755 B
Markdown
40 lines
755 B
Markdown
|
---
|
||
|
title: messages.chats
|
||
|
description: List of chats with auxiliary data.
|
||
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||
|
redirect_from: /API_docs/constructors/messages_chats.html
|
||
|
---
|
||
|
# Constructor: messages.chats
|
||
|
[Back to constructors index](index.md)
|
||
|
|
||
|
|
||
|
|
||
|
List of chats with auxiliary data.
|
||
|
|
||
|
### Attributes:
|
||
|
|
||
|
| Name | Type | Required | Description |
|
||
|
|----------|---------------|----------|-------------|
|
||
|
|chats|Array of [Chat](../types/Chat.md) | Yes|List of chats|
|
||
|
|
||
|
|
||
|
|
||
|
### Type: [messages.Chats](../types/messages.Chats.md)
|
||
|
|
||
|
|
||
|
### Example:
|
||
|
|
||
|
```php
|
||
|
$messages.chats = ['_' => 'messages.chats', 'chats' => [Chat, Chat]];
|
||
|
```
|
||
|
|
||
|
|
||
|
Or, if you're into Lua:
|
||
|
|
||
|
```lua
|
||
|
messages.chats={_='messages.chats', chats={Chat}}
|
||
|
|
||
|
```
|
||
|
|
||
|
|