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
commit 36f4260bc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;