Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
Labels
bug Something isn't working

Comments

@Hasnen-mr
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

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

@Hasnen-mr Hasnen-mr added the bug Something isn't working label Jun 6, 2024
@JuanRa012012

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants