type alias ErrorHandlerimport { type ErrorHandler } from "https://dotland.deno.dev/x/grammy@v1.27.0/bot.ts"; Error handler that can be installed on a bot to catch error thrown by middleware. Type ParametersoptionalC extends Context = Contextdefinition: (error: BotError<C>) => unknown