class pyrogram.raw.types.messages.DiscussionMessage#

Information about a message thread.

Constructor of DiscussionMessage.

  • Layer: 158

  • ID: A6341782

  • messages (List of Message) – The messages from which the thread starts. The messages are returned in reverse chronological order (i.e., in order of decreasing message ID).

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

  • chats (List of Chat) – Chats mentioned in constructor.

  • users (List of User) – Users mentioned in constructor.

  • max_id (int 32-bit, optional) – Message ID of latest reply in this thread.

  • read_inbox_max_id (int 32-bit, optional) – Message ID of latest read incoming message in this thread.

  • read_outbox_max_id (int 32-bit, optional) – Message ID of latest read outgoing message in this thread.


This object can be returned by 1 function.


Get discussion message from the associated discussion group of a channel to show it on top of the comment section, without actually joining the group.