From 5c893f50860f0f2f2da6130c6cfad2cca790517c Mon Sep 17 00:00:00 2001 From: justundertaker <806792561@qq.com> Date: Fri, 21 Oct 2022 15:45:47 +0800 Subject: [PATCH] =?UTF-8?q?:ambulance:=E4=BF=AE=E5=A4=8D=E8=87=AA=E8=BA=AB?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E4=B8=8A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ntchat_client/wechat/wechat.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ntchat_client/wechat/wechat.py b/ntchat_client/wechat/wechat.py index c00abbb..1b572a0 100644 --- a/ntchat_client/wechat/wechat.py +++ b/ntchat_client/wechat/wechat.py @@ -214,6 +214,9 @@ def on_message(self, _: ntchat.WeChat, message: dict) -> None: msgtype = message["type"] if msgtype in self.msg_fiter: return + wx_id = message["data"].get("from_wxid") + if wx_id == self.self_id and not self.config.report_self: + return logger.success(f"wechat - 收到wechat消息:{escape_tag(str(message))}") if self.loop is not None: if self.loop.is_running: