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

[MD] Issues with Buttons and Lists

Open Inevitable-Dev opened this issue 3 years ago • 29 comments

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

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

Library

  • Browser [Chrome / Chromium]: Chrome
  • NodeJS version (node -v): v16.4.1
  • npm or yarn version (npm -v): 7.18.1
  • whatsapp-web.js version: Clone Git 14/10/2021

Other

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

Additional context

Add any other context about the problem here. = = / / = =

Inevitable-Dev avatar Oct 14 '21 21:10 Inevitable-Dev

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..

purpshell avatar Oct 14 '21 22:10 purpshell

Same Here on multidevice

user3470 avatar Nov 07 '21 07:11 user3470

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

user3470 avatar Feb 04 '22 16:02 user3470

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?

user3470 avatar Feb 04 '22 18:02 user3470

Im using this older APK and it works with the library

https://we.tl/t-DjsWdiW3KO

ARKbr avatar Feb 04 '22 19:02 ARKbr

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

user3470 avatar Feb 05 '22 17:02 user3470

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.

purpshell avatar Feb 19 '22 19:02 purpshell

Any news?

italodeveloper avatar Jun 03 '22 18:06 italodeveloper

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.

Yuri-Lima avatar Jun 05 '22 17:06 Yuri-Lima

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.

esteves67 avatar Jun 06 '22 03:06 esteves67

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

ARKbr avatar Jun 06 '22 18:06 ARKbr

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"));

chrystianfarias avatar Jun 13 '22 14:06 chrystianfarias

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!!

dafner avatar Jun 22 '22 21:06 dafner

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

Yuri-Lima avatar Jun 24 '22 06:06 Yuri-Lima

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

affanhanifathtarech avatar Jun 25 '22 13:06 affanhanifathtarech

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

love it if somebody can fix it

affanhanifathtarech avatar Jun 25 '22 13:06 affanhanifathtarech

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

The lists keep working, replace the buttons with them.

chrystianfarias avatar Jun 25 '22 14:06 chrystianfarias

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

allandersson avatar Jun 25 '22 17:06 allandersson

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.

chrystianfarias avatar Jun 25 '22 22:06 chrystianfarias

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

nizarfadlan avatar Jul 12 '22 10:07 nizarfadlan

same error image

BagasNS avatar Jul 13 '22 17:07 BagasNS

same error image

Same here

otomay avatar Jul 18 '22 18:07 otomay

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

purpshell avatar Aug 04 '22 00:08 purpshell

semi done :D

purpshell avatar Aug 10 '22 11:08 purpshell

Hey, I got the same issue here. :D

image

arbisyarifudin avatar Oct 04 '22 08:10 arbisyarifudin

any update?

leandroribeir0 avatar Oct 15 '22 14:10 leandroribeir0

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

aloisoinac avatar Nov 23 '22 22:11 aloisoinac

same error

husna3305 avatar Mar 21 '23 15:03 husna3305

same error

legendbr94 avatar May 06 '23 17:05 legendbr94

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

Chronos093 avatar Jul 05 '23 15:07 Chronos093

Is this issue still pending?

SahilAggarwal2004 avatar Jul 25 '23 13:07 SahilAggarwal2004