mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-23 22:52:59 +03:00
Merge pull request #1003 from NikyOFF/main
fix: remove await before bot.launch
This commit is contained in:
commit
36f4260bc8
@ -9,7 +9,7 @@ export async function createBotFactory(
|
|||||||
bot.use(...(options.middlewares ?? []));
|
bot.use(...(options.middlewares ?? []));
|
||||||
|
|
||||||
if (options.launchOptions !== false) {
|
if (options.launchOptions !== false) {
|
||||||
await bot.launch(options.launchOptions);
|
bot.launch(options.launchOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
return bot;
|
return bot;
|
||||||
|
Loading…
Reference in New Issue
Block a user