MadelineProtoDocs/old_docs/API_docs_v21/constructors/messages.chats.md

40 lines
755 B
Markdown
Raw Permalink Normal View History

2020-06-16 17:50:25 +02:00
---
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}}
```