diff --git a/lib/utils/create-bot-factory.util.ts b/lib/utils/create-bot-factory.util.ts index 9dbde0e3..b0440cff 100644 --- a/lib/utils/create-bot-factory.util.ts +++ b/lib/utils/create-bot-factory.util.ts @@ -9,7 +9,14 @@ export async function createBotFactory( bot.use(...(options.middlewares ?? [])); if (options.launchOptions !== false) { - bot.launch(options.launchOptions); + bot + .launch(options.launchOptions) + .catch((err: Error) => + console.error( + "Bot launch error. It won't be available until the app restarts.\n", + err, + ), + ); } return bot;