Dialog

class pyrogram.raw.types.Dialog

Chat

Constructor of Dialog.

Details:
  • Layer: 187

  • ID: D58A08C6

Parameters:
  • peer (Peer) – The chat

  • top_message (int 32-bit) – The latest message ID

  • read_inbox_max_id (int 32-bit) – Position up to which all incoming messages are read.

  • read_outbox_max_id (int 32-bit) – Position up to which all outgoing messages are read.

  • unread_count (int 32-bit) – Number of unread messages

  • unread_mentions_count (int 32-bit) – Number of unread mentions

  • unread_reactions_count (int 32-bit) – Number of unread reactions to messages you sent

  • notify_settings (PeerNotifySettings) – Notification settings

  • pinned (bool, optional) – Is the dialog pinned

  • unread_mark (bool, optional) – Whether the chat was manually marked as unread

  • view_forum_as_messages (bool, optional) – 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.

  • pts (int 32-bit, optional) – PTS

  • draft (DraftMessage, optional) – Message draft

  • folder_id (int 32-bit, optional) – Peer folder ID, for more info click here

  • ttl_period (int 32-bit, optional) – Time-to-live of all messages sent in this dialog