From eebfc2954004793b11dc10e07c862bc2c84ec18d Mon Sep 17 00:00:00 2001 From: Daniil Date: Fri, 7 Apr 2023 11:49:21 +0300 Subject: [PATCH] Update multibot.py --- examples/multibot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/multibot.py b/examples/multibot.py index b6a324cd..978165f7 100644 --- a/examples/multibot.py +++ b/examples/multibot.py @@ -45,7 +45,7 @@ async def command_add_bot(message: Message, command: CommandObject, bot: Bot) -> try: bot_user = await new_bot.get_me() except TelegramUnauthorizedError: - return message.answer("Invalid token") + return await message.answer("Invalid token") await new_bot.delete_webhook(drop_pending_updates=True) await new_bot.set_webhook(OTHER_BOTS_URL.format(bot_token=command.args)) return await message.answer(f"Bot @{bot_user.username} successful added")