Evaluation failed: TypeError: msg.quotedMsgObj is not a function
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
Describe the bug
Error: Evaluation failed: TypeError: msg.quotedMsgObj is not a function at puppeteer_evaluation_script:3:24 at ExecutionContext._evaluateInternal (C:\Users\rendy\OneDrive\Desktop\kuhong-bot-v3\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async ExecutionContext.evaluate (C:\Users\rendy\OneDrive\Desktop\kuhong-bot-v3\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16) at async Message.getQuotedMessage (C:\Users\rendy\OneDrive\Desktop\kuhong-bot-v3\node_modules\whatsapp-web.js\src\structures\Message.js:307:27) at async Object.handler (C:\Users\rendy\OneDrive\Desktop\kuhong-bot-v3\main.js:1748:18)
Expected behavior
Steps to Reproduce the Bug or Issue
When the <Message>.getQuotedMessage()
function called
Relevant Code
Browser Type
Google Chrome
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
OS: Windows 10 Enterprise whatsapp-web.js version: 1.18.3 (latest) WhatsApp Web Version: 2.2244.6 Node.js Version: 16.17.1
Additional context
No response
Issue Analytics
- State:
- Created 10 months ago
- Reactions:6
- Comments:21 (3 by maintainers)
Thanks for reporting, this issue has now been fixed in v1.18.4.
https://github.com/pedroslopez/whatsapp-web.js/blob/a60f5ebf407e4f8183947c497e65bb149a707dc7/src/structures/Message.js#L309
Change this line to:- return msg.getRawQuotedMsgObj().serialize()