Skip to main content

dialog

Chat

type tg.Dialog struct { /* ... */ }

Implements Dialog.

Fields​

NameTypeRequiredDescription
Pinnedbool—Is the dialog pinned
UnreadMarkbool—Whether the chat was manually marked as unread
ViewForumAsMessagesbool—Users may also choose to display messages from all topics of a forum as if they were sent to a normal group, using a "View as messages" setting in the local client. This setting only affects the current account, and is synced to other logged in sessions using the channels.toggleViewForumAsMessages method; invoking this method will update the value of this flag.
PeerPeerClassyesThe chat
TopMessageintyesThe latest message ID
ReadInboxMaxIDintyesPosition up to which all incoming messages are read.
ReadOutboxMaxIDintyesPosition up to which all outgoing messages are read.
UnreadCountintyesNumber of unread messages
UnreadMentionsCountintyesNumber of unread mentions
UnreadReactionsCountintyesNumber of unread reactions to messages you sent
UnreadPollVotesCountintyesUnreadPollVotesCount field of Dialog.
NotifySettingsPeerNotifySettingsyesNotification settings
Ptsint—PTS
DraftDraftMessageClass—Message draft
FolderIDint—Peer folder ID, for more info click here
TTLPeriodint—Time-to-live of all messages sent in this dialog

References​