messageMedia.downloadMedia() not working for attachement file etc. PDF, Docs Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'Msg') #3082
Labels
bug
Something isn't working
Is there an existing issue for this?
Describe the bug
Gettng error while download media for Attachment type.
messageMedia.downloadMedia()
Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'Msg')
Expected behavior
Expected is download file
Steps to Reproduce the Bug or Issue
Receive any Attachement file
After message receive , for file download use this function
const messageMedia = await client.getMessageById(message?.id._serialized);
const originalMedia = await messageMedia.downloadMedia()
Getting this error
Relevant Code
const messageMedia = await client.getMessageById(message?.id._serialized);
const originalMedia = await messageMedia.downloadMedia()
Browser Type
Chromium
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
Node.js Version : 18.15.0
whatsapp-web.js : 1.23.1-alpha.5
WhatsApp Web version : 2.2412.54.html
Additional context
No response
The text was updated successfully, but these errors were encountered: