Layer 220
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
Flags # Flags, see TL conditional fields
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

Gogram Example

// Creating MessagesDiscussionMessage constructor
obj := &tg.MessagesDiscussionMessage{
    Messages: []tg.Message{&tg.Message{}},
    UnreadCount: 0,
    Chats: []tg.Chat{&tg.Chat{}},
    Users: []tg.User{&tg.User{}},

    // Optional fields:
    // MaxId: 0,
    // ReadInboxMaxId: 0,
    // ReadOutboxMaxId: 0,
}