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
Latest
class UpdateManager
import { UpdateManager } from "https://deno.land/x/mtkruto@0.6.3/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[], context: ReadObject)
processResult(result: ReadObject)
processUpdates(
updates: Api.Update | Api.Updates,
checkGap: boolean,
call?: Api.AnyObject | null,
callback?: () => void,
)
processUsers(users: Api.User[], context: ReadObject)
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