MadelineProto/old_docs/API_docs_v40/constructors/dialog.md

31 lines
747 B
Markdown
Raw Normal View History

---
title: dialog
description: dialog attributes, type and example
---
## Constructor: dialog
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
|peer|[Peer](../types/Peer.md) | Required|
|top\_message|[int](../types/int.md) | Required|
|read\_inbox\_max\_id|[int](../types/int.md) | Required|
|unread\_count|[int](../types/int.md) | Required|
|notify\_settings|[PeerNotifySettings](../types/PeerNotifySettings.md) | Required|
### Type: [Dialog](../types/Dialog.md)
### Example:
```
$dialog = ['_' => 'dialog', 'peer' => Peer, 'top_message' => int, 'read_inbox_max_id' => int, 'unread_count' => int, 'notify_settings' => PeerNotifySettings, ];
```