消息类型: 系统消息

dev/chat
Lei OT 1 year ago
parent 269f64d2bc
commit 17b9ad50a5

@ -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 }),

Loading…
Cancel
Save