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

x/grammy/core/client.ts>ApiCallFn

The Telegram Bot Framework.
Very Popular
Latest
type alias ApiCallFn
import { type ApiCallFn } from "https://deno.land/x/grammy@v1.31.0/core/client.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>>>