Layer 227
MessagesDiscussionMessageObj
Information about a message thread
constructor
messages.discussionMessage#a6341782 flags:# messages:Vector<Message> max_id:flags.0?int read_inbox_max_id:flags.1?int read_outbox_max_id:flags.2?int unread_count:int chats:Vector<Chat> users:Vector<User> = messages.DiscussionMessage;
Parameters
| Name | Type | Description |
|---|---|---|
| Messages | Vector < Message > | The messages from which the thread starts. The messages are returned in reverse chronological order (i. e., in order of decreasing message ID). |
| MaxId | flags .0? int | Message ID of latest reply in this thread |
| ReadInboxMaxId | flags .1? int | Message ID of latest read incoming message in this thread |
| ReadOutboxMaxId | flags .2? int | Message ID of latest read outgoing message in this thread |
| UnreadCount | int | Number of unread messages |
| Chats | Vector < Chat > | Chats mentioned in constructor |
| Users | Vector < User > | Users mentioned in constructor |
Returns
messages.DiscussionMessageGogram Example
// Creating MessagesDiscussionMessageObj constructor obj := &tg.MessagesDiscussionMessageObj{ Messages: &tg.VectorMessage{}, MaxId: nil, ReadInboxMaxId: nil, ReadOutboxMaxId: nil, UnreadCount: 42, Chats: &tg.VectorChat{}, // ... more required fields }