Dialog

class pyrogram.types.Dialog

A user’s dialog.

Parameters:
  • chat (:obj:`~pyrogram.types.Chat`) – Conversation the dialog belongs to.

  • top_message (:obj:`~pyrogram.types.Message`) – The last message sent in the dialog at this time.

  • unread_messages_count (``int``) – Amount of unread messages in this dialog.

  • unread_mentions_count (``int``) – Amount of unread messages containing a mention in this dialog.

  • unread_reactions_count (``int``) – Amount of unread messages containing a reaction in this dialog.

  • unread_poll_vote_count (``int``) – Number of messages with unread poll votes in the topic.

  • unread_mark (``bool``) – True, if the dialog has the unread mark set.

  • is_pinned (``bool``) – True, if the dialog is pinned.

  • chat_list (``int``) – Chat list in which the dialog is present; Only Main (0) and Archive (1) chat lists are supported.

  • message_auto_delete_time (``int``) – Current message auto-delete or self-destruct timer setting for the chat, in seconds; 0 if disabled. Self-destruct timer in secret chats starts after the message or its content is viewed. Auto-delete timer in other chats starts from the send date.

  • view_as_topics (``bool``) – True, if the chat is a forum supergroup that must be shown in the “View as topics” mode, or Saved Messages chat that must be shown in the “View as chats”.

  • draft (:obj:`~pyrogram.types.DraftMessage`, *optional*) – Contains information about a message draft.