MadelineProtoDocs/old_docs/API_docs_v105/constructors/messages_chats.md

39 lines
690 B
Markdown
Raw Normal View History

2019-09-13 17:13:55 +02:00
---
title: messages.chats
2019-12-27 17:48:04 +01:00
description: List of chats with auxiliary data.
2019-09-13 17:13:55 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: messages.chats
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
List of chats with auxiliary data.
2019-09-13 17:13:55 +02:00
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|chats|Array of [Chat](../types/Chat.md) | Yes|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}}
```