mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Update multibot.py
This commit is contained in:
parent
fea1b7b0a3
commit
eebfc29540
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue