Module

x/grammy/mod.ts>BotError

The Telegram Bot Framework.
Very Popular
Go to Latest
class BotError
extends Error
import { BotError } from "https://dotland.deno.dev/x/grammy@v1.19.1/mod.ts";

This error is thrown when middleware throws. It simply wraps the original error (accessible via the error property), but also provides access to the respective context object that was processed while the error occurred.

Constructors

new
BotError(error: unknown, ctx: C)

Type Parameters

optional
C extends Context = Context
import BotError
import { BotError } from "https://dotland.deno.dev/x/grammy@v1.19.1/mod.ts";