pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
15.08k stars 3.59k forks source link

Wrong mimetype & filename undefined #1793

Closed IrfanMaulana00 closed 9 months ago

IrfanMaulana00 commented 1 year ago

Is there an existing issue for this?

Describe the bug

i'm receive png, but in downloadMedia mimetype is jpeg & filename undefined, how to solved ?

image

image

image

Expected behavior

  1. my account receive image from user
  2. download media with downloadMedia()

Steps to Reproduce the Bug or Issue

-

Relevant Code

No response

Browser Type

Google Chrome

WhatsApp Account Type

WhatsApp Business

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

OS : Windows Phone OS : Android whatsapp-web.js version 1.18.2 Node.js

Additional context

No response

fogolin commented 1 year ago

Facing the same issue.