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

x/mtkruto/client/1_types.ts>C

Cross-runtime JavaScript library for building Telegram clients
Latest
interface C
import { type C } from "https://deno.land/x/mtkruto@0.6.3/client/1_types.ts";

Properties

id: number
messageStorage: StorageOperations
guaranteeUpdateDelivery: boolean
setConnectionState: (connectionState: ConnectionState) => void
resetConnectionState: () => void
getSelfId: () => Promise<number>
getInputPeer: (id: ID) => Promise<Api.InputPeer>
getInputChannel: (id: ID) => Promise<Api.inputChannel | Api.inputChannelFromMessage>
getInputUser: (id: ID) => Promise<Api.inputUser | Api.inputUserFromMessage>
getEntity: EntityGetter
handleUpdate: (update: Update) => void
parseMode: ParseMode
getCdnConnection: GetCdnConnection
getCdnConnectionPool: GetCdnConnectionPool
outgoingMessages:
| "none"
| "business"
| "all"
| null
cdn: boolean
optional
dropPendingUpdates: boolean
invoke: Invoke
disconnected: () => boolean