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.21k stars 3.63k forks source link

Media Messages fetching as chat #1668

Closed ouzbalkn closed 10 months ago

ouzbalkn commented 2 years ago

Is there an existing issue for this?

Describe the bug

I send media messages, and everything works perfect, I fetch the media messages that I sent to chat window and I can see the document there.

But after restarting node, the media messages that I sent appear as chat message even they look normal on official wp applications.

Expected behavior

I expected to see the type as document but they are chat.

Steps to Reproduce the Bug or Issue

const media = new MessageMedia(resp.fileType, resp.base64, resp.fileName); await client.sendMessage(nummerDetails._serialized, media, {caption: 'test', sendMediaAsDocument: true})

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

No, I am not using Multi Device

Environment

OS: Mac Phone OS: iOS whatsapp-web.js version 1.17.1

Additional context

No response

ceringo commented 2 years ago

update last version

ouzbalkn commented 2 years ago

update last version

thats not a solution at all.

alan2797 commented 2 years ago

aquí con el mismo problema, alguna solución?

039710 commented 1 year ago

any solution for this?

i am also having problem when fetching a document (xlsx,csv, or any types of document) appeared as type of chat, and cant get the media.