whatsapp-web.js icon indicating copy to clipboard operation
whatsapp-web.js copied to clipboard

Evaluation failed: TypeError: quotedMessage.canReply is not a function

Open zerodark17 opened this issue 2 years ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Describe the bug

0|index | Error: Evaluation failed: TypeError: quotedMessage.canReply is not a function 0|index | at window.WWebJS.sendMessage (puppeteer_evaluation_script:33:31) 0|index | at puppeteer_evaluation_script:10:45 0|index | at ExecutionContext._evaluateInternal (/root/bot/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19) 0|index | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 0|index | at async ExecutionContext.evaluate (/root/bot/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16) 0|index | at async Client.sendMessage (/root/bot/node_modules/whatsapp-web.js/src/Client.js:686:28)

Expected behavior

When updating to the latest version I get that error

Steps to Reproduce the Bug or Issue

no idea

Relevant Code

No response

Browser Type

Google Chrome

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

Linux

Additional context

No response

zerodark17 avatar Jan 15 '23 21:01 zerodark17

This was fixed in https://github.com/pedroslopez/whatsapp-web.js/pull/1765, please update to the latest version of the library (1.19.2 at the time of writing) and try again.

pedroslopez avatar Jan 15 '23 22:01 pedroslopez

ok, now it works. But now the lists and buttons are not sent.

This was fixed in #1765, please update to the latest version of the library (1.19.2 at the time of writing) and try again.

zerodark17 avatar Jan 16 '23 20:01 zerodark17