Skip to main content

dialog

Chat

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

Implements Dialog.

Fields

NameTypeRequiredDescription
PinnedboolIs the dialog pinned
UnreadMarkboolWhether the chat was manually marked as unread
ViewForumAsMessagesboolUsers 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
PtsintPTS
DraftDraftMessageClassMessage draft
FolderIDintPeer folder ID, for more info click here
TTLPeriodintTime-to-live of all messages sent in this dialog

References