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")