MadelineProtoDocs/docs/API_docs/constructors/dialogFolder.md

46 lines
1.6 KiB
Markdown
Raw Normal View History

2019-06-23 13:07:51 +02:00
---
title: dialogFolder
2019-12-27 17:48:04 +01:00
description: Dialog in folder
2019-06-23 13:07:51 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: dialogFolder
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
Dialog in folder
2019-06-23 13:07:51 +02:00
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
2019-12-27 17:48:04 +01:00
|pinned|[Bool](../types/Bool.md) | Optional|Is this folder pinned|
|folder|[Folder](../types/Folder.md) | Yes|The folder|
|peer|[Peer](../types/Peer.md) | Yes|Peer in folder|
|top\_message|[int](../types/int.md) | Yes|Latest message ID of dialog|
|unread\_muted\_peers\_count|[int](../types/int.md) | Yes|Number of unread muted peers in folder|
|unread\_unmuted\_peers\_count|[int](../types/int.md) | Yes|Number of unread unmuted peers in folder|
|unread\_muted\_messages\_count|[int](../types/int.md) | Yes|Number of unread messages from muted peers in folder|
|unread\_unmuted\_messages\_count|[int](../types/int.md) | Yes|Number of unread messages from unmuted peers in folder|
2019-06-23 13:07:51 +02:00
### Type: [Dialog](../types/Dialog.md)
### Example:
```php
$dialogFolder = ['_' => 'dialogFolder', 'pinned' => Bool, 'folder' => Folder, 'peer' => Peer, 'top_message' => int, 'unread_muted_peers_count' => int, 'unread_unmuted_peers_count' => int, 'unread_muted_messages_count' => int, 'unread_unmuted_messages_count' => int];
```
Or, if you're into Lua:
```lua
dialogFolder={_='dialogFolder', pinned=Bool, folder=Folder, peer=Peer, top_message=int, unread_muted_peers_count=int, unread_unmuted_peers_count=int, unread_muted_messages_count=int, unread_unmuted_messages_count=int}
```