fix(whatsapp): restore group @ replies with LID matching and send fallback

Match bot mentions across JID/LID formats, accept reply-to-bot triggers, keep raw quote participants, and fall back to plain text when quoted sends fail.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-06-04 19:41:33 +08:00
parent a218139da6
commit 9657b313a3
4 changed files with 171 additions and 39 deletions

View file

@ -707,6 +707,7 @@ def process_inbound_payload(payload: dict[str, Any]) -> dict[str, Any]:
bot_jid=bot_jid,
require_mention=group_policy.require_mention,
triggers=list(group_policy.triggers),
metadata=inbound.metadata if isinstance(inbound.metadata, dict) else {},
):
return {"ok": True, "replies": []}
reply = ""