Module

x/grammy/mod.ts>ApiCallFn

The Telegram Bot Framework.
Very Popular
Go to Latest
type alias ApiCallFn
import { type ApiCallFn } from "https://dotland.deno.dev/x/grammy@v1.12.0/mod.ts";

Type of a function that can perform an API call. Used for Transformers.

Type Parameters

optional
R extends RawApi = RawApi
definition: <M extends Methods<R>>(
method: M,
payload: Payload<M, R>,
signal?: AbortSignal,
) => Promise<ApiResponse<ApiCallResult<M, R>>>