Skip to main content
Deno 2 is finally here 🎉️
Learn more
Very Popular
Go to Latest
interface WebhookOptions
import { type WebhookOptions } from "https://deno.land/x/grammy@v1.15.3/convenience/webhook.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