🐛 Fix bilibili handler filter

This commit is contained in:
xtaodada 2023-08-18 22:26:05 +08:00
parent b40ee45919
commit 06301fe648
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -21,7 +21,10 @@ from scheduler import scheduler
filters.incoming
& filters.text
& filters.regex(r"av(\d{1,12})|BV(1[A-Za-z0-9]{2}4.1.7[A-Za-z0-9]{2})|b23.tv")
& ~(filters.command(["download", "bilibili_fav"]) & filters.user(bili_auth_user))
& ~(
filters.command(["download", "bilibili_fav"])
& (filters.user(bili_auth_user) | filters.chat(bili_auth_chat))
)
)
async def bili_resolve(_: Client, message: Message):
"""