mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-24 23:14:39 +03:00
fix: wrong telegraf errors handling
This commit is contained in:
parent
5eb3b5abe8
commit
e66035df7f
@ -21,8 +21,11 @@ export class TelegrafProvider extends Telegraf<Context>
|
|||||||
}
|
}
|
||||||
|
|
||||||
async onApplicationBootstrap() {
|
async onApplicationBootstrap() {
|
||||||
this.catch((e) => {
|
this.catch((err, ctx: Context) => {
|
||||||
this.logger.error(e);
|
this.logger.error(
|
||||||
|
`Encountered an error for ${ctx.updateType} update type`,
|
||||||
|
err,
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
await this.launch(this.launchOptions);
|
await this.launch(this.launchOptions);
|
||||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nestjs-telegraf",
|
"name": "nestjs-telegraf",
|
||||||
"version": "1.2.0",
|
"version": "1.2.1",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nestjs-telegraf",
|
"name": "nestjs-telegraf",
|
||||||
"version": "1.2.0",
|
"version": "1.2.1",
|
||||||
"description": "Telegraf module for NestJS",
|
"description": "Telegraf module for NestJS",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"nest",
|
"nest",
|
||||||
|
Loading…
Reference in New Issue
Block a user