whatsapp-web.js: Evaluation failed: TypeError: msg.quotedMsgObj is not a function

Is 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

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 6
  • Comments: 21 (6 by maintainers)

Most upvoted comments

Thanks for reporting, this issue has now been fixed in v1.18.4.

basic and business

work option msg[‘_quotedMsgObj’].serialize()

let quotedMsgObj = (‘quotedMsgObj’ in msg) ? msg.quotedMsgObj() : msg.getRawQuotedMsgObj();

return quotedMsgObj.serialize();