Raw.updates.ChannelDifferenceTooLong
The provided pts + limit < remote pts. simply, there are too many updates to be fetched (more than limit), the client has to resolve the update gap in one of the following ways (assuming the existence of a persistent database to locally store messages):
updates.channelDifferenceTooLong#a4bcc6fe flags:# final:flags.0?true timeout:flags.1?int dialog:Dialog messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = updates.ChannelDifference;
export namespace Raw {
export namespace updates {
export class ChannelDifferenceTooLong {
constructor(params: {
final?: boolean;
timeout?: number;
dialog: Raw.TypeDialog;
messages: Array<Raw.TypeMessage>;
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: 0xa4bcc6fe
Property
final
: boolean or undefinedWhether there are more updates that must be fetched (always false)
timeout
: number or undefinedClients are supposed to refetch the channel difference after timeout seconds have elapsed
dialog
: Raw.TypeDialogDialog containing the latest pts that can be used to reset the channel state
messages
: Array of Raw.TypeMessageThe latest messages
chats
: Array of Raw.TypeChatChats from messages
users
: Array of Raw.TypeUserUsers from messages