const bot = new Telegraf<any>(options.token, options.options);
bot.use(...(options.middlewares ?? []));
bot.catch((err, ctx) =>
Logger.error(err, `Telegraf: ${ctx.botInfo.username}`), // that not help
);
if (options.launchOptions !== false) {
bot.launch(options.launchOptions); // here thrown error
}
if (options.launchOptions !== false) {
bot
.launch(options.launchOptions)
.catch((err) => Logger.error(err.stack, 'Telegraf')); // that
}
Generate error what is not handled by nest logger if wrong token is passed for example https://github.com/robot-mafia/nestjs-telegraf/blob/194419dc799f0872fcf4000a5e1266c462dac8c7/lib/utils/create-bot-factory.util.ts#L16
Can catch it with