mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2025-09-23 09:49:06 +03:00
feat: add initial code
This commit is contained in:
5
lib/interfaces/TelegramErrorHandler.ts
Normal file
5
lib/interfaces/TelegramErrorHandler.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { ContextMessageUpdate } from 'telegraf'
|
||||
|
||||
export interface TelegramErrorHandler<E = any> {
|
||||
catch(ctx: ContextMessageUpdate, error: E): Promise<void>
|
||||
}
|
Reference in New Issue
Block a user