mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 09:38:28 +01:00
2.8 KiB
2.8 KiB
title | description | nav_exclude | image |
---|---|---|---|
dialog | Chat | true | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: dialog
Chat
Attributes:
Name | Type | Required | Description |
---|---|---|---|
pinned | Bool | Optional | Is the dialog pinned |
unread_mark | Bool | Optional | Whether the chat was manually marked as unread |
view_forum_as_messages | Bool | Optional | Users may also choose to display messages from all topics of a forum as if they were sent to a normal group, using a "View as messages" setting in the local client. This setting only affects the current account, and is synced to other logged in sessions using the channels.toggleViewForumAsMessages method; invoking this method will update the value of this flag. |
peer | long | Yes | The chat |
top_message | int | Yes | The latest message ID |
read_inbox_max_id | int | Yes | Position up to which all incoming messages are read. |
read_outbox_max_id | int | Yes | Position up to which all outgoing messages are read. |
unread_count | int | Yes | Number of unread messages |
unread_mentions_count | int | Yes | Number of unread mentions |
unread_reactions_count | int | Yes | Number of unread reactions to messages you sent |
notify_settings | PeerNotifySettings | Yes | Notification settings |
pts | int | Optional | PTS |
draft | DraftMessage | Optional | Message draft |
folder_id | int | Optional | Peer folder ID, for more info click here |
ttl_period | int | Optional | Time-to-live of all messages sent in this dialog |
Type: Dialog
Example:
$dialog = ['_' => 'dialog', 'pinned' => Bool, 'unread_mark' => Bool, 'view_forum_as_messages' => Bool, 'peer' => long, 'top_message' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'unread_mentions_count' => int, 'unread_reactions_count' => int, 'notify_settings' => PeerNotifySettings, 'pts' => int, 'draft' => DraftMessage, 'folder_id' => int, 'ttl_period' => int];