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

x/mtkruto/mod.ts>ClientEncrypted#invoke

Cross-runtime JavaScript library for building Telegram clients
Latest
method ClientEncrypted.prototype.invoke
Re-export
import { ClientEncrypted } from "https://deno.land/x/mtkruto@0.6.3/mod.ts";

Type Parameters

T extends Api.AnyObject
optional
R = T extends Api.AnyGenericFunction<infer X> ? Api.ReturnType<X> : T["_"] extends keyof Api.Functions ? Api.ReturnType<T> extends never ? Api.ReturnType<Api.Functions[T["_"]]> : never : never

Parameters

function_: T
optional
noWait: boolean

Returns

Promise<R | void>