class Client
extends ClientAbstract
import { Client } from "https://deno.land/x/mtkruto@0.0.820/client/client.ts";
Constructors
new
Client(session?: Session,
apiId?,
apiHash?,
params?: { transportProvider?: TransportProvider; appVersion?: string; deviceModel?: string; langCode?: string; langPack?: string; systemLangCode?: string; systemVersion?: string; },
Properties
private
promises: Map<bigint, { resolve: (obj: MaybeVectorTLObject) => void; reject: (err: MaybeVectorTLObject) => void; }>updatesHandler: UpdatesHandler
Methods
private
pingLoop()private
receiveLoop()authorize(params: string | types.AuthExportedAuthorization | AuthorizeUserParams)
connect()
invoke<T extends (functions.Function<unknown> | types.Type) = functions.Function<unknown>>(function_: T): Promise<T extends functions.Function<unknown> ? T["__R"] : void>
invoke<T extends (functions.Function<unknown> | types.Type) = functions.Function<unknown>>(function_: T, noWait: true): Promise<void>
send<T extends (functions.Function<unknown> | types.Type) = functions.Function<unknown>>(function_: T)