|
|
|
@ -255,14 +255,15 @@ export const whatsappMsgTypeMapped = {
|
|
|
|
|
},
|
|
|
|
|
}),
|
|
|
|
|
},
|
|
|
|
|
unsupported: { type: 'system', data: (msg) => ({ text: 'Message type is currently not supported.' }) },
|
|
|
|
|
// unsupported: { type: 'system', data: (msg) => ({ text: 'Message type is currently not supported.' }) },
|
|
|
|
|
unsupported: { type: 'text', data: (msg) => ({ text: '[暂不支持此消息类型]' }) },
|
|
|
|
|
reaction: {
|
|
|
|
|
type: 'text',
|
|
|
|
|
data: (msg) => ({ id: msg.wamid, text: msg.reaction?.emoji || '', }),
|
|
|
|
|
},
|
|
|
|
|
document: {
|
|
|
|
|
type: 'file',
|
|
|
|
|
data: (msg) => ({ id: msg.wamid, text: msg.document.filename, data: { uri: msg.document.link, extension: 'PDF', status: { click: false, loading: 0, } } }),
|
|
|
|
|
data: (msg) => ({ id: msg.wamid, title: msg.document?.filename || '', text: msg.document?.caption || msg.document?.filename || '', data: { uri: msg.document.link, extension: 'PDF', status: { click: false, download: true, loading: 0, } } }),
|
|
|
|
|
},
|
|
|
|
|
// location: 'location',
|
|
|
|
|
// contact: 'contact',
|
|
|
|
|