mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2025-11-07 17:21:22 +03:00
fix: wrong telegraf errors handling
This commit is contained in:
@@ -21,8 +21,11 @@ export class TelegrafProvider extends Telegraf<Context>
|
||||
}
|
||||
|
||||
async onApplicationBootstrap() {
|
||||
this.catch((e) => {
|
||||
this.logger.error(e);
|
||||
this.catch((err, ctx: Context) => {
|
||||
this.logger.error(
|
||||
`Encountered an error for ${ctx.updateType} update type`,
|
||||
err,
|
||||
);
|
||||
});
|
||||
|
||||
await this.launch(this.launchOptions);
|
||||
|
||||
Reference in New Issue
Block a user