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

[MD] Issues with Buttons and Lists #923

Closed Inevitable-Dev closed 1 year ago

Inevitable-Dev commented 2 years ago

Bug description

When Whatsapp-Web is opened visibly pointed at Headless, all messages disappear when a button message is sent as a reply, this does not happen with messages of any other type, only with button messages. In App Whatsapp it works normally. This problem occurs in both WA-Business and WA-Conventional.

https://user-images.githubusercontent.com/73140494/137400450-2638cf8e-f2bb-4bc7-81f6-b502662f8c96.mp4

After that when selecting another chat and going back to it, the messages are shown again, but when trying to view the message history they disappear again and also when receiving any other type of message they disappear again

Environment (please complete the following information):

WhatsApp

Library

Other

PurpShell commented 2 years ago

Hello! Thank you for taking the time to fill out this bug report, but sadly, this bug that you seem to be facing is not linked to whatsapp-web.js (from the data you have given me as well as the data I know of), and is just another WhatsApp Web bug..

user3470 commented 2 years ago

Anyone working on this, or it's not fixable?

user3470 commented 2 years ago

Anyone working on this? please. My app depends on it due to forced Whatsapp update to multi device.

How do I switch back if anyone know?

ARKbr commented 2 years ago

Im using this older APK and it works with the library

https://we.tl/t-DjsWdiW3KO

user3470 commented 2 years ago

Im using this older APK and it works with the library

https://we.tl/t-DjsWdiW3KO

Thanks, it's nice not to have another phone always online anyway. I wish I know where to begin for a PR :( I really really need this.

Console Error

PurpShell commented 2 years ago

The issue here is that we will have to modify whatsapp's own source code then distribute which is copyright infringement and could get this project out for good..

I'll look about other ways around this, but they aren't so elegant.

italodeveloper commented 2 years ago

Any news?

Yuri-Lima commented 2 years ago

but they aren't so elegant.

No problem at all. If you know somehow how o do that even if it is ugly, no problem.

esteves67 commented 2 years ago

Im using this older APK and it works with the library

https://we.tl/t-DjsWdiW3KO

For anyone looking in which old version still works, as @ARKbr link expired.

I searched (any apk website) and tested couple WA versions, and found that the Business 2.22.9.78 version, the buttons still works as im using it now with no problem yet.

ARKbr commented 2 years ago

Im using this older APK and it works with the library https://we.tl/t-DjsWdiW3KO

For anyone looking in which old version still works, as @ARKbr link expired.

I searched (any apk website) and tested couple WA versions, and found that the Business 2.22.9.78 version, the buttons still works as im using it now with no problem yet.

Still have it if anyone needs https://drive.google.com/file/d/19oCOm4r_4eS0BSvWr8mJPN153iEu_XP8/view?usp=sharing

chrystianfarias commented 2 years ago

Still have it if anyone needs https://drive.google.com/file/d/19oCOm4r_4eS0BSvWr8mJPN153iEu_XP8/view?usp=sharing

I still couldn't get it to work even with this version I'm using LocalAuth

and the part of the buttons is like this:

msg.reply(new Buttons("teste", [{id: "event_yes", body: "Confirmar presença ✅"}, {id: "event_no", body: "Não participar ❌"}], `Olá! Evento novo do SharkRunners`, "Selecione uma opção"));
dafner commented 2 years ago

Hello everyone, I am testing the example.js file and found that the Buttons and List still not working with WA Business MD!

Is there any patch available or an example where Buttons and List work correctly?

Here I leave the lines of the example.js file from line 187:

} else if (msg.body === '!buttons') {
    let button = new Buttons('Button body',[{body:'bt1'},{body:'bt2'},{body:'bt3'}],'title','footer');
    client.sendMessage(msg.from, button);
} else if (msg.body === '!list') {
    let sections = [{title:'sectionTitle',rows:[{title:'ListItem1', description: 'desc'},{title:'ListItem2'}]}];
    let list = new List('List body','btnText',sections,'Title','footer');
    client.sendMessage(msg.from, list);

Any kind of help will be appreciate!

Thanks!!

Yuri-Lima commented 2 years ago

The issue here is that we will have to modify whatsapp's own source code then distribute which is copyright infringement and could get this project out for good..

I'll look about other ways around this, but they aren't so elegant.

@dafner

affanhanifathtarech commented 2 years ago

has anybody fixed this issue? i need to use this feature

affanhanifathtarech commented 2 years ago

has anybody fixed this issue? i need to use this feature

love it if somebody can fix it

chrystianfarias commented 2 years ago

has anybody fixed this issue? i need to use this feature

The lists keep working, replace the buttons with them.

allandersson commented 2 years ago

alguém corrigiu esse problema? eu preciso usar esse recurso

As listas continuam funcionando, substitua os botões por eles.

aqui quando uso a lista ele da Crash

chrystianfarias commented 2 years ago

alguém corrigiu esse problema? eu preciso usar esse recurso

As listas continuam funcionando, substitua os botões por eles.

aqui quando uso a lista ele da Crash

what error is it giving? Lists don't work on WhatsApp Business. I'm using the latest version on WhatsappJs, WhatsApp and WhatsAppWeb.

nizarfadlan commented 2 years ago

I'm use version "whatsapp-web.js": "^1.17.1" and WhatsApp Business 2.22.9.78 not work this solution

BagasNS commented 2 years ago

same error

image
otomay commented 2 years ago

same error image

Same here

PurpShell commented 2 years ago

Working on this, will make a joint effort with the contributors on the discord to get this done with

PurpShell commented 2 years ago

semi done :D

arbisyarifudin commented 2 years ago

Hey, I got the same issue here. :D

image

leandroribeir0 commented 1 year ago

any update?

aloisoinac commented 1 year ago

When turn off WiFI and use 4G/5G messages arrives up. Issue looks when mobile is connected to WIFI

husna3305 commented 1 year ago

same error

legendbr94 commented 1 year ago

same error

Chronos093 commented 1 year ago

Hello, I'm like same problem. Any solutions?

SahilAggarwal2004 commented 1 year ago

Is this issue still pending?

shirser121 commented 1 year ago

Buttons and lists not working currently