Raw.messages.ChannelMessages

Raw.messages.ChannelMessages

Channel messages

messages.channelMessages#c776ba4e flags:# inexact:flags.1?true pts:int count:int offset_id_offset:flags.2?int messages:Vector<Message> topics:Vector<ForumTopic> chats:Vector<Chat> users:Vector<User> = messages.Messages;
export namespace Raw {
  export namespace messages {
    export class ChannelMessages {
      constructor(params: {
        inexact?: boolean;
        pts: number;
        count: number;
        offsetIdOffset?: number;
        messages: Array<Raw.TypeMessage>;
        topics: Array<Raw.TypeForumTopic>;
        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: 0xc776ba4e

Property

  • inexact : boolean or undefined

    If set, returned results may be inexact

  • pts : number

    Event count after generation

  • count : number

    Total number of results were found server-side (may not be all included here)

  • offsetIdOffset : number or undefined

    Indicates the absolute position of messages[0] within the total result set with count count. this is useful, for example, if the result was fetched using offsetId, and we need to display a progress/total counter (like photo 134 of 200, for all media in a chat, we could simply use photo offsetIdOffset of count.

  • messages : Array of Raw.TypeMessage

    Found messages

  • topics : Array of Raw.TypeForumTopic

    Forum topic information

  • chats : Array of Raw.TypeChat

    Chats

  • users : Array of Raw.TypeUser

    Users