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

x/mtkruto/mod.ts>ClientPlain#invoke

Cross-runtime JavaScript library for building Telegram clients
Latest
method ClientPlain.prototype.invoke
Re-export
import { ClientPlain } 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

Returns

Promise<R>