Rewrite filters

This commit is contained in:
Alex Root Junior 2022-08-14 21:43:33 +03:00
parent 3f57c69d4f
commit 8d2aae77c1
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC
24 changed files with 311 additions and 539 deletions

View file

@ -39,7 +39,7 @@ def is_bot_token(value: str) -> Union[bool, Dict[str, Any]]:
return True
@main_router.message(Command(commands=["add"], command_magic=F.args.func(is_bot_token)))
@main_router.message(Command(commands=["add"], magic=F.args.func(is_bot_token)))
async def command_add_bot(message: Message, command: CommandObject, bot: Bot) -> Any:
new_bot = Bot(token=command.args, session=bot.session)
try: