Module

x/grammy/mod.ts

The Telegram Bot Framework.
Go to Latest
interface WebhookOptions
import { type WebhookOptions } from "https://deno.land/x/grammy@v1.10.1/mod.ts";

Properties

optional
onTimeout: "throw" | "return" | ((...args: any[]) => unknown)

An optional strategy to handle timeouts (default: 'throw')

optional
timeoutMilliseconds: number

An optional number of timeout milliseconds (default: 10_000)

optional
secretToken: string

An optional string to compare to X-Telegram-Bot-Api-Secret-Token