MessageReplies

class pyrogram.raw.types.MessageReplies

Info about the comment section of a channel post, a simple message thread, a forum topic, or a direct messages topic (all features ultimately based on message threads).

Constructor of MessageReplies.

Details:
  • Layer: 223

  • ID: 83D60FC2

Parameters:
  • replies (int 32-bit) – Contains the total number of replies in this thread or comment section.

  • replies_pts (int 32-bit) – PTS of the message that started this thread.

  • comments (bool, optional) – Whether this constructor contains information about the comment section of a channel post, or a simple message thread

  • recent_repliers (List of Peer, optional) – For channel post comments, contains information about the last few comment posters for a specific thread, to show a small list of commenter profile pictures in client previews.

  • channel_id (int 64-bit, optional) – For channel post comments, contains the ID of the associated discussion supergroup

  • max_id (int 32-bit, optional) – ID of the latest message in this thread or comment section.

  • read_max_id (int 32-bit, optional) – Contains the ID of the latest read message in this thread or comment section.

TL Schema

messageReplies#83d60fc2
flags:#
comments:flags.0?true
replies:int
replies_pts:int
recent_repliers:flags.1?Vector<Peer>
channel_id:flags.0?long
max_id:flags.2?int
read_max_id:flags.3?int

= MessageReplies

Parameter Tree

MessageReplies
├── commentstrue (optional)
├── repliesint
├── replies_ptsint
├── recent_repliersVector < Peer > (optional)
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
├── channel_idlong (optional)
├── max_idint (optional)
└── read_max_idint (optional)

Example

MessageReplies(
    replies=0,
    replies_pts=0,
)