Constructor: dialog

Back to constructors index



Name Type Required Description
pinned Bool Optional Is the dialog pinned
unread_mark Bool Optional Whether the chat was manually marked as unread
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
unread_mentions_count int Yes Number of unread mentions
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

Type: Dialog


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

Or, if you’re into Lua:

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

This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.