Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>updates_ChannelDifferenceTooLong_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class updates_ChannelDifferenceTooLong_
import { updates_ChannelDifferenceTooLong_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

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):

Constructors

new
updates_ChannelDifferenceTooLong_(params: { final?: true; timeout?: number; dialog: enums.Dialog; messages: Array<enums.Message>; chats: Array<enums.Chat>; users: Array<enums.User>; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
chats: Array<enums.Chat>

Chats from messages

dialog: enums.Dialog

Dialog containing the latest PTS that can be used to reset the channel state

optional
final: true

Whether there are more updates that must be fetched (always false)

messages: Array<enums.Message>

The latest messages

optional
timeout: number

Clients are supposed to refetch the channel difference after timeout seconds have elapsed

users: Array<enums.User>

Users from messages

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc