MadelineProtoDocs/old_docs/API_docs_v62/constructors/dialog.md
2019-12-27 17:48:04 +01:00

1.5 KiB

title description image
dialog Chat https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: dialog

Back to constructors index

Chat

Attributes:

Name Type Required Description
pinned Bool Optional Is the dialog pinned
peer Peer 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
notify_settings PeerNotifySettings Optional Notification settings
pts int Optional PTS
draft DraftMessage Optional Message draft

Type: Dialog

Example:

$dialog = ['_' => 'dialog', 'pinned' => Bool, 'peer' => Peer, 'top_message' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'notify_settings' => PeerNotifySettings, 'pts' => int, 'draft' => DraftMessage];

Or, if you're into Lua:

dialog={_='dialog', pinned=Bool, peer=Peer, top_message=int, read_inbox_max_id=int, read_outbox_max_id=int, unread_count=int, notify_settings=PeerNotifySettings, pts=int, draft=DraftMessage}