import { BotError } from "https://deno.land/x/grammy@v1.31.0/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)