Module

x/grammy/bot.ts>ErrorHandler

The Telegram Bot Framework.
Very Popular
Go to Latest
type alias ErrorHandler
import { type ErrorHandler } from "https://dotland.deno.dev/x/grammy@v1.18.3/bot.ts";

Error handler that can be installed on a bot to catch error thrown by middleware.

Type Parameters

optional
C extends Context = Context
definition: (error: BotError<C>) => unknown