MadelineProtoDocs/docs/API_docs/constructors/dialog.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1.9 KiB

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

Constructor: dialog

Back to constructors index

Dialog

Attributes:

Name Type Required Description
pinned Bool Optional Pinned?
unread_mark Bool Optional Unread mark?
peer Peer Yes Peer
top_message int Yes Top message
read_inbox_max_id int Yes Read inbox max ID
read_outbox_max_id int Yes Read outbox max ID
unread_count int Yes Unread count
unread_mentions_count int Yes Unread mentions count
notify_settings PeerNotifySettings Yes Notify settings
pts int Optional Pts
draft DraftMessage Optional Draft

Type: Dialog

Example:

$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];

PWRTelegram json-encoded version:

{"_": "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}

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}