fix: remove await before bot.launch

This commit is contained in:
nikyoff 2022-11-30 14:57:27 +03:00
parent fbb2ef4f81
commit edd514c994

View File

@ -9,7 +9,7 @@ export async function createBotFactory(
bot.use(...(options.middlewares ?? []));
if (options.launchOptions !== false) {
await bot.launch(options.launchOptions);
bot.launch(options.launchOptions);
}
return bot;