From 06301fe648e7672473f3e19c7ae1e810edcfe46b Mon Sep 17 00:00:00 2001 From: xtaodada Date: Fri, 18 Aug 2023 22:26:05 +0800 Subject: [PATCH] :bug: Fix bilibili handler filter --- modules/bilibili.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/bilibili.py b/modules/bilibili.py index be0d5bb..f6e17db 100644 --- a/modules/bilibili.py +++ b/modules/bilibili.py @@ -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): """