diff --git a/src/bots/factory/bots/approved/index.ts b/src/bots/factory/bots/approved/index.ts index a5c1993..b7c86d6 100644 --- a/src/bots/factory/bots/approved/index.ts +++ b/src/bots/factory/bots/approved/index.ts @@ -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); });