class BotError extends Errorimport { BotError } from "https://dotland.deno.dev/x/grammy@v1.31.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. ConstructorsnewBotError(error: unknown, ctx: C)Type ParametersoptionalC extends Context = Contextimport BotErrorimport { BotError } from "https://dotland.deno.dev/x/grammy@v1.31.1/mod.ts";