Layer 220
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
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;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Comments | flags.0?true | Whether this constructor contains information about the comment section of a channel post, or a simple message thread |
| Replies | int | Contains the total number of replies in this thread or comment section. |
| RepliesPts | int | PTS of the message that started this thread. |
| RecentRepliers | Vector<Peer> | 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. |
| ChannelId | flags.0?long | For channel post comments, contains the ID of the associated discussion supergroup |
| MaxId | flags.2?int | ID of the latest message in this thread or comment section. |
| ReadMaxId | flags.3?int | Contains the ID of the latest read message in this thread or comment section. |
Returns
MessageRepliesGogram Example
// Creating MessageReplies constructor obj := &tg.MessageReplies{ Replies: 0, RepliesPts: 0, // Optional fields: // Comments: true, // RecentRepliers: []tg.Peer{&tg.Peer{}}, // ChannelId: int64(0), // MaxId: 0, // ... more optional fields }