Merge pull request #2265 from 6vision/feat0825

Support configuration whether to be @ in group chat.
This commit is contained in:
Saboteur7
2024-08-29 11:30:46 +08:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -202,7 +202,7 @@ class WechatChannel(ChatChannel):
logger.debug(f"[WX]receive attachment msg, file_name={cmsg.content}")
else:
logger.debug("[WX]receive group msg: {}".format(cmsg.content))
context = self._compose_context(cmsg.ctype, cmsg.content, isgroup=True, msg=cmsg)
context = self._compose_context(cmsg.ctype, cmsg.content, isgroup=True, msg=cmsg, no_need_at=conf().get("no_need_at", False))
if context:
self.produce(context)