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

945 B

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
peer Peer Yes The chat
top_message int Yes The latest message ID
unread_count int Yes Number of unread messages
notify_settings PeerNotifySettings Optional Notification settings

Type: Dialog

Example:

$dialog = ['_' => 'dialog', 'peer' => Peer, 'top_message' => int, 'unread_count' => int, 'notify_settings' => PeerNotifySettings];

Or, if you're into Lua:

dialog={_='dialog', peer=Peer, top_message=int, unread_count=int, notify_settings=PeerNotifySettings}