Update error capture

This commit is contained in:
2022-08-06 12:58:04 +03:00
parent da03051517
commit 553b87e1ba

View File

@@ -441,8 +441,8 @@ export async function createApprovedBot(token: string, state: BotState): Promise
}
});
bot.catch((err) => {
console.log(err);
bot.catch((err, ctx: Context) => {
console.log(err, ctx);
Sentry.captureException(err);
});