natureco-cli 1.0.35 → 1.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -244,10 +244,16 @@ async function startWhatsAppProvider(sessionDir, config) {
|
|
|
244
244
|
|
|
245
245
|
const messageText = msg.message?.conversation ||
|
|
246
246
|
msg.message?.extendedTextMessage?.text ||
|
|
247
|
+
msg.message?.imageMessage?.caption ||
|
|
248
|
+
msg.message?.videoMessage?.caption ||
|
|
249
|
+
msg.message?.buttonsResponseMessage?.selectedDisplayText ||
|
|
250
|
+
msg.message?.listResponseMessage?.title ||
|
|
251
|
+
msg.message?.ephemeralMessage?.message?.conversation ||
|
|
252
|
+
msg.message?.viewOnceMessage?.message?.conversation ||
|
|
247
253
|
'';
|
|
248
254
|
|
|
249
255
|
if (!messageText) {
|
|
250
|
-
log('whatsapp',
|
|
256
|
+
log('whatsapp', `Message without text content. Keys: ${Object.keys(msg.message || {}).join(', ')}`, 'gray');
|
|
251
257
|
continue;
|
|
252
258
|
}
|
|
253
259
|
|