From 87d329d51400e9be90ab9266e89d61ff70153a92 Mon Sep 17 00:00:00 2001 From: Changhua Date: Wed, 10 May 2023 11:07:38 +0800 Subject: [PATCH] Fix is_at --- python/wcferry/wxmsg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/wcferry/wxmsg.py b/python/wcferry/wxmsg.py index 6b3aaf1..a445c7c 100644 --- a/python/wcferry/wxmsg.py +++ b/python/wcferry/wxmsg.py @@ -50,7 +50,7 @@ class WxMsg(): def is_at(self, wxid) -> bool: """是否被 @:群消息,在 @ 名单里,并且不是 @ 所有人""" return self.from_group() and re.findall( - f".*({wxid}).*", self.xml) and not re.findall(r"@(?:所有人|all)", self.xml) + f".*({wxid}).*", self.xml) and not re.findall(r"@(?:所有人|all|All)", self.content) def is_text(self) -> bool: """是否文本消息"""