mirror of
https://github.com/Xtao-Labs/iShotaBot.git
synced 2024-11-22 07:07:52 +00:00
🐛 Fix bilibili handler filter
This commit is contained in:
parent
b40ee45919
commit
06301fe648
@ -21,7 +21,10 @@ from scheduler import scheduler
|
|||||||
filters.incoming
|
filters.incoming
|
||||||
& filters.text
|
& 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.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):
|
async def bili_resolve(_: Client, message: Message):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user