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

x/grammy/mod.ts>WebhookOptions

The Telegram Bot Framework.
Very Popular
Latest
interface WebhookOptions
import { type WebhookOptions } from "https://deno.land/x/grammy@v1.32.0/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