Raw.messages.DiscussionMessage

Raw.messages.DiscussionMessage

Information about a message thread

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;
export namespace Raw {
  export namespace messages {
    export class DiscussionMessage {
      constructor(params: {
        messages: Array<Raw.TypeMessage>;
        maxId?: number;
        readInboxMaxId?: number;
        readOutboxMaxId?: number;
        unreadCount: number;
        chats: Array<Raw.TypeChat>;
        users: Array<Raw.TypeUser>;
      }) {}
    }
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0xa6341782

Property

  • messages : Array of Raw.TypeMessage

    The messages from which the thread starts. the messages are returned in reverse chronological order (i.e., in order of decreasing message id).

  • maxId : number or undefined

    Message id of latest reply in this thread

  • readInboxMaxId : number or undefined

    Message id of latest read incoming message in this thread

  • readOutboxMaxId : number or undefined

    Message id of latest read outgoing message in this thread

  • unreadCount : number

    Number of unread messages

  • chats : Array of Raw.TypeChat

    Chats mentioned in constructor

  • users : Array of Raw.TypeUser

    Users mentioned in constructor