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

1.1 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
peer Peer Yes Peer
top_message int Yes Top message
unread_count int Yes Unread count
notify_settings PeerNotifySettings Optional Notify settings

Type: Dialog

Example:

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

PWRTelegram json-encoded version:

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