perf: unsupported 消息的提示

dev/timezone
Lei OT 2 years ago
parent 3c88d0c572
commit f39bb5ac8f

@ -412,7 +412,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})` }),
data: (msg) => ({ id: msg.wamid, text: `[暂不支持此消息类型](${msg.wamid})`, dateString: `${dayjs(msg.sendTime).format('MM-DD HH:mm')} [未知的消息类型] WhatsApp未提供消息内容, 可询问客人截图或详细内容 📌` }),
renderForReply: (msg) => ({ id: msg?.wamid || msg.id, text: `[Message type unsupported](${msg.wamid})` }),
},
reaction: {

Loading…
Cancel
Save