nestjs-telegraf/lib/interfaces/TelegramErrorHandler.ts

6 lines
160 B
TypeScript
Raw Normal View History

2019-02-28 11:29:26 +03:00
import { ContextMessageUpdate } from 'telegraf'
export interface TelegramErrorHandler<E = any> {
catch(ctx: ContextMessageUpdate, error: E): Promise<void>
}