mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 18:01:04 +00:00
Fix docs and examples (#864)
* Update magic_data Allowed handlers * Fix ChatMemberUpdated example * Fix examples with `.in_(...)` and delete with `@` * Fix commands in examples * Change List to Set
This commit is contained in:
parent
b50500e28d
commit
a37bbba38c
7 changed files with 22 additions and 14 deletions
|
|
@ -40,7 +40,7 @@ def is_bot_token(value: str) -> Union[bool, Dict[str, Any]]:
|
|||
|
||||
|
||||
@main_router.message(Command(commands=["add"], command_magic=F.args.func(is_bot_token)))
|
||||
async def command_add_bot(message: Message, command: CommandObject, bot: Bot):
|
||||
async def command_add_bot(message: Message, command: CommandObject, bot: Bot) -> Any:
|
||||
new_bot = Bot(token=command.args, session=bot.session)
|
||||
try:
|
||||
bot_user = await new_bot.get_me()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue