@itd-api/chat-bot / ChatBotErrorHandler
Type Alias: ChatBotErrorHandler<C>
ts
type ChatBotErrorHandler<C> = (error, context) => unknown | Promise<unknown>;Defined in: packages/chat-bot/src/bot.ts:47
Обработчик ошибки команды или middleware.
Type Parameters
C
C extends ChatContext = ChatContext
Parameters
error
unknown
context
C
Returns
unknown | Promise<unknown>