Merge pull request #1003 from NikyOFF/main

fix: remove await before bot.launch
This commit is contained in:
Alexander Bukhalo
2022-12-01 11:05:56 +03:00
committed by GitHub

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;