You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
messageMedia.downloadMedia() not working for attachement file etc. PDF, Docs Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'Msg')
#3082
Open
1 task done
Hasnen-mr opened this issue
Jun 6, 2024
· 1 comment
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()
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: