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

x/grammy/core/client.ts>RawApi

The Telegram Bot Framework.
Very Popular
Go to Latest
type alias RawApi
import { type RawApi } from "https://deno.land/x/grammy@v1.30.0/core/client.ts";

Represents the raw Telegram Bot API with all methods specified 1:1 as documented on the website (https://core.telegram.org/bots/api).

Every method takes an optional AbortSignal object that allows to cancel the API call if desired.

definition: [M in keyof Telegram]: Parameters<Telegram[M]>[0] extends undefined ? (signal?: AbortSignal) => Promise<ReturnType<Telegram[M]>> : (args: Opts<M>, signal?: AbortSignal) => Promise<ReturnType<Telegram[M]>>