whatsapp-web.js icon indicating copy to clipboard operation
whatsapp-web.js copied to clipboard

Sending bas64 Media Converts to String on web refresh

Open user3470 opened this issue 3 years ago • 7 comments

Bug description

I'm sending QR Code generated with const QRCode = require("easyqrcodejs-nodejs");

It sends an image but after refresh or app restart the image on web converts to a long string

image

Reproduction steps

image image Send Image Reload

Expected behavior

Send a qr code image and when reload remain QR Code

WhatsApp

Account type [Standard / Business]: Standard Device OS [iOS / Android]: Android WhatsApp Web version [run await client.getWWebVersion()]: 2.2142.12 Library

Browser [Chrome / Chromium]: Chrome NodeJS version (node -v): v14.18.0 npm or yarn version (npm -v): yarn 1.22.15 whatsapp-web.js version: "whatsapp-web.js": "github:pedroslopez/whatsapp-web.js#multidevice" Other

Operating system (the one running node) [Linux / MacOS / Windows]: Linux Operating system version (ex. Windows 10): Ubuntu 21

user3470 avatar Nov 08 '21 11:11 user3470

I can confirm this here too.

tinyCoder32 avatar Nov 11 '21 22:11 tinyCoder32

  • same issue on pdfs.

bhavya32 avatar Feb 20 '22 04:02 bhavya32

Hello, I'm having the same issue, do we have any update on this issue? Any workaround?

andremellow avatar Mar 22 '22 02:03 andremellow

Has anybody figure out a fix for this yet?

tinyCoder32 avatar Mar 28 '22 21:03 tinyCoder32

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 27 '22 22:04 stale[bot]

Has anybody figure out a fix for this yet?

Murilandrade avatar Jun 12 '22 18:06 Murilandrade

There is an error in utils, where every message is sent with the type 'chat', just change to :

type: attOptions.__x_type? attOptions.__x_type : 'chat',

Murilandrade avatar Jun 14 '22 03:06 Murilandrade

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 13 '22 05:08 stale[bot]