Raw.updates.ChannelDifference

Raw.updates.ChannelDifference

The new updates

updates.channelDifference#2064674e flags:# final:flags.0?true pts:int timeout:flags.1?int new_messages:Vector<Message> other_updates:Vector<Update> chats:Vector<Chat> users:Vector<User> = updates.ChannelDifference;
export namespace Raw {
  export namespace updates {
    export class ChannelDifference {
      constructor(params: {
        final?: boolean;
        pts: number;
        timeout?: number;
        newMessages: Array<Raw.TypeMessage>;
        otherUpdates: Array<Raw.TypeUpdate>;
        chats: Array<Raw.TypeChat>;
        users: Array<Raw.TypeUser>;
      }) {}
    }
  }
}
🚫

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

Layer: 198
Constructor ID: 0x2064674e

Property

  • final : boolean or undefined

    Whether there are more updates to be fetched using getdifference, starting from the provided pts

  • pts : number

    The pts from which to start getting updates the next time

  • timeout : number or undefined

    Clients are supposed to refetch the channel difference after timeout seconds have elapsed, if the user is currently viewing the chat, see here for more info.

  • newMessages : Array of Raw.TypeMessage

    New messages

  • otherUpdates : Array of Raw.TypeUpdate

    Other updates

  • chats : Array of Raw.TypeChat

    Chats

  • users : Array of Raw.TypeUser

    Users