Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mtkruto/client/2_update_manager.ts>UpdateManager

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class UpdateManager
import { UpdateManager } from "https://deno.land/x/mtkruto@0.2.50/client/2_update_manager.ts";

Constructors

new
UpdateManager(c: C)

Methods

closeChat(chatId: ID)
fetchState(source: string)
getHandleUpdateQueue(boxId: bigint)
openChat(chatId: ID)
processChats(chats: Api.Chat[])
processUpdates(
updates: Api.Update | Api.Updates,
checkGap: boolean,
call?: Api.AnyObject | null,
callback?: () => void,
)
processUsers(users: Api.User[])
recoverUpdateGap(source: string)
setUpdateHandler(handler: UpdateHandler)

Static Properties

readonly
MAIN_BOX_ID: bigint
readonly
QTS_COUNT: number

Static Methods

isChannelPtsUpdate(v: Api.Update | Api.Updates): v is ChannelPtsUpdate
isPtsUpdate(v: Api.Update): v is PtsUpdate
isQtsUpdate(v: Api.Update): v is QtsUpdate