Merge pull request #780 from beat4ocean/master

fix: 修复gewechat平台用户本人发消息触发消息回复的bug
This commit is contained in:
Soulter
2025-03-11 21:55:44 +08:00
committed by GitHub
@@ -147,6 +147,11 @@ class SimpleGewechatClient:
abm.type = MessageType.FRIEND_MESSAGE
user_id = from_user_name
# 检查消息是否由自己发送,若是则忽略
if user_id == abm.self_id:
logger.info("忽略自己发送的消息")
return None
abm.message = []
if at_me:
abm.message.insert(0, At(qq=abm.self_id))