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

x/mtkruto/client/1_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.1.157/client/1_update_manager.ts";

Constructors

new
UpdateManager(c: C)

Methods

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

Static Properties

readonly
MAIN_BOX_ID: bigint