From 395edbd9f47e948543fdeabd95e4c7a6632246b9 Mon Sep 17 00:00:00 2001 From: zhayujie Date: Sun, 6 Aug 2023 16:02:02 +0800 Subject: [PATCH] fix: only filter messages sent by the bot itself in private chat --- channel/wechat/wechat_channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channel/wechat/wechat_channel.py b/channel/wechat/wechat_channel.py index c1ceacd..34bb9b8 100644 --- a/channel/wechat/wechat_channel.py +++ b/channel/wechat/wechat_channel.py @@ -58,7 +58,7 @@ def _check(func): if conf().get("hot_reload") == True and int(create_time) < int(time.time()) - 60: # 跳过1分钟前的历史消息 logger.debug("[WX]history message {} skipped".format(msgId)) return - if cmsg.my_msg: + if cmsg.my_msg and not cmsg.is_group: logger.debug("[WX]my message {} skipped".format(msgId)) return return func(self, cmsg)