From 25d9048ac2fc8c2726d6db131e40564acd6f3eea Mon Sep 17 00:00:00 2001 From: Lei OT Date: Thu, 7 Mar 2024 15:33:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF=E7=B1=BB=E5=9E=8B:=20?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/msgUtils.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/msgUtils.js b/src/lib/msgUtils.js index cf87a18..cee8e80 100644 --- a/src/lib/msgUtils.js +++ b/src/lib/msgUtils.js @@ -239,6 +239,10 @@ export const whatsappMsgTypeMapped = { type: (_m) => ({ type: 'system' }), data: (msg) => ({ id: msg.wamid, text: msg.errorCode ? msg.errorMessage : msg.text.body }), }, + system: { + type: 'system', + data: (msg) => ({ id: msg.wamid, text: msg.system.body }), + }, text: { type: 'text', data: (msg) => ({ id: msg.wamid, text: autoLinkText(msg.text.body), originText: msg.text.body }),