#msg.reply works with isViewOnce: true?
1 messages · Page 1 of 1 (latest)
I try to reply with a media and use viewonce but not work
This dont work: msg.reply(media, { isViewOnce: true });
this works: await client.sendMessage(chat, media, { isViewOnce: true });
where is the problem?
msg.reply(media, undefined, { isViewOnce: true })
/home/antek/WM-BOT/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221
throw new Error('Evaluation failed: ' + helper_js_1.helper.getExceptionMessage(exceptionDetails));
^
Error: Evaluation failed: TypeError: e.match is not a function
at t.validateAndGetParts (https://web.whatsapp.com/app.9bf7959578bdb7663582.js:89:284304)
at new _ (https://web.whatsapp.com/app.9bf7959578bdb7663582.js:89:273299)
at Object.d [as createWid] (https://web.whatsapp.com/app.9bf7959578bdb7663582.js:89:279407)
at puppeteer_evaluation_script:2:53
at ExecutionContext._evaluateInternal (/home/antek/WM-BOT/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ExecutionContext.evaluate (/home/antek/WM-BOT/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16)
at async Client.sendMessage (/home/antek/WM-BOT/node_modules/whatsapp-web.js/src/Client.js:869:28)
Node.js v18.17.1
i get this error with msg.reply(media, msg.from, { isViewOnce: true });
msg.reply(media, undefined, { extra: { isViewOnce: true } })