GramIO API Reference / gramio/dist / Hooks / OnErrorContext
Type Alias: OnErrorContext<Ctx, T>
OnErrorContext<
Ctx,T> =ErrorHandlerParams<Ctx,"TELEGRAM",AnyTelegramError> |ErrorHandlerParams<Ctx,"UNKNOWN",Error> |{ [K in keyof T]: ErrorHandlerParams<Ctx, K & string, T[K & string]> }[keyofT]
Defined in: gramio/index.d.ts:692
Argument type for OnError
Type Parameters
| Type Parameter |
|---|
Ctx extends Context<AnyBot> |
T extends ErrorDefinitions |