From a768bfac7d404cc574b2a0f178c86150325b5143 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 16 Apr 2024 11:36:15 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=B6=88=E6=81=AF=E6=8F=90=E7=A4=BA:?= =?UTF-8?q?=20unsupported?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/channel/whatsappUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/channel/whatsappUtils.js b/src/channel/whatsappUtils.js index 1c7fc54..b4ca30e 100644 --- a/src/channel/whatsappUtils.js +++ b/src/channel/whatsappUtils.js @@ -421,7 +421,7 @@ export const whatsappMsgTypeMapped = { // unsupported: { type: 'system', data: (msg) => ({ text: 'Message type is currently not supported.' }) }, unsupported: { type: 'text', - data: (msg) => ({ id: msg.wamid, text: `[暂不支持此消息类型](${msg.wamid})`, dateString: `${dayjs(msg.sendTime).format('MM-DD HH:mm')} [未知的消息类型] WhatsApp未提供消息内容, \n可询问客人截图/详细内容 或 忽略 📌` }), + data: (msg) => ({ id: msg.wamid, text: `[暂不支持此消息类型](${msg.wamid})`, dateString: `${dayjs(msg.sendTime).format('MM-DD HH:mm')} [ WhatsApp未提供消息内容 ] 可能是客人删除消息, \n可询问客人截图/详细内容 或 忽略 📌` }), renderForReply: (msg) => ({ id: msg?.wamid || msg.id, text: `[Message type unsupported](${msg.wamid})` }), }, reaction: {