mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-23 14:42:59 +03:00
fix: remove await before bot.launch
This commit is contained in:
parent
fbb2ef4f81
commit
edd514c994
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user