dialog

Chat

dialog#214a8cdf peer:Peer top_message:int unread_count:int = Dialog;

Parameters

Name Type Description
flags # Flags, see TL conditional fields
pinned flags.2?true Is the dialog pinned
unread_mark flags.3?true Whether the chat was manually marked as unread
view_forum_as_messages flags.6?true 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.
peer Peer The chat
top_message int The latest message ID
read_inbox_max_id int Position up to which all incoming messages are read.
read_outbox_max_id int Position up to which all outgoing messages are read.
unread_count int Number of unread messages
unread_mentions_count int Number of unread mentions
unread_reactions_count int Number of unread reactions to messages you sent
notify_settings PeerNotifySettings Notification settings
pts flags.0?int PTS
draft flags.1?DraftMessage Message draft
folder_id flags.4?int Peer folder ID, for more info click here
ttl_period flags.5?int Time-to-live of all messages sent in this dialog

Type

Dialog

Related pages

Forums

Telegram allows creating forums with multiple distinct topics.

channels.toggleViewForumAsMessages

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 this method.

Invoking this method will update the value of the view_forum_as_messages flag of channelFull or dialog and emit an updateChannelViewForumAsMessages.

Mentions

Telegram allows mentioning other users in case of urgent duckling matters, and quickly navigating to those mentions in order to read them as swiftly as possible.

Working with Updates

How to subscribe to updates and handle them properly.

Message drafts

How to handle message drafts

Folders

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.