RawApi
Represents the raw Telegram Bot API with all methods specified 1:1 as documented on the website (https://
Every method takes an optional Abort
object that allows to cancel the API call if desired.
Type
ts
[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]>>;