whatsapp-web.js
whatsapp-web.js copied to clipboard
[MD] Issues with Buttons and Lists
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):
- 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. = = / / = =
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..
Same Here on multidevice
Anyone working on this, or it's not fixable?
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?
Im using this older APK and it works with the library
https://we.tl/t-DjsWdiW3KO
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.
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.
Any news?
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.
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.
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
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"));
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!!
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
has anybody fixed this issue? i need to use this feature
has anybody fixed this issue? i need to use this feature
love it if somebody can fix it
has anybody fixed this issue? i need to use this feature
The lists keep working, replace the buttons with them.
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
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.
I'm use version "whatsapp-web.js": "^1.17.1" and WhatsApp Business 2.22.9.78 not work this solution
same error
same error
Same here
Working on this, will make a joint effort with the contributors on the discord to get this done with
semi done :D
Hey, I got the same issue here. :D
any update?
When turn off WiFI and use 4G/5G messages arrives up. Issue looks when mobile is connected to WIFI
same error
same error
Hello, I'm like same problem. Any solutions?
Is this issue still pending?