From edd514c994b9d15f7dd0998c36de4b625d74ac9f Mon Sep 17 00:00:00 2001 From: nikyoff Date: Wed, 30 Nov 2022 14:57:27 +0300 Subject: [PATCH] fix: remove await before bot.launch --- lib/utils/create-bot-factory.util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/create-bot-factory.util.ts b/lib/utils/create-bot-factory.util.ts index f1ae787..9dbde0e 100644 --- a/lib/utils/create-bot-factory.util.ts +++ b/lib/utils/create-bot-factory.util.ts @@ -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;