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.46k stars 3.68k forks source link

Buttons sending stop working after update #1749

Closed Eonus21 closed 2 years ago

Eonus21 commented 2 years ago

Is there an existing issue for this?

Describe the bug

After latest update, buttorns dont work anymore. Sending returns status ok , but in whatsapp web it looks like a loading message. image

Expected behavior

As a user, I expect that buttons will be sended to recipient

Steps to Reproduce the Bug or Issue

  1. Install WW and authorize account
  2. Try to send a message with buttons

Relevant Code

const convertedButtons = []
for (let i = 0; i < buttons.length; i++) {
      convertedButtons.push({ body: buttons[i].src })
 }
const button = new Buttons(message.text, convertedButtons)
let result = await client.sendMessage(message.to + "@c.us", button)

Browser Type

Google Chrome

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

linux android latest WW node v16

Additional context

No response

danieldwipaska commented 2 years ago

same problem here

alechkos commented 2 years ago

the update to v1.18.0 doesn't include the buttons/lists fix PR you have to install it by yourself just use npm i github:pedroslopez/whatsapp-web.js#fix-buttons-list more info here #1636

danieldwipaska commented 2 years ago

the update to v1.18.0 doesn't include the buttons/lists fix PR you have to install it by yourself just use npm i github:pedroslopez/whatsapp-web.js#fix-buttons-list more info here #1636

I have tried that. it still doesn't work. When I did that, another problem happened. 'message' event couldn't not triggered.

esteban020987 commented 2 years ago

la actualización a v1.18.0 no incluye los botones/listas arreglar PR tienes que instalarlo tú mismo solo usa npm i github:pedroslopez/whatsapp-web.js#fix-buttons-list más información aquí #1636

También hice lo mismo, y tampoco funcionó

NonameASecret commented 2 years ago

the update to v1.18.0 doesn't include the buttons/lists fix PR you have to install it by yourself just use npm i github:pedroslopez/whatsapp-web.js#fix-buttons-list more info here #1636

I have tried that. it still doesn't work. When I did that, another problem happened. 'message' event couldn't not triggered.

yes,same issue for me

NonameASecret commented 2 years ago

the update to v1.18.0 doesn't include the buttons/lists fix PR you have to install it by yourself just use npm i github:pedroslopez/whatsapp-web.js#fix-buttons-list more info here #1636

I have tried that. it still doesn't work. When I did that, another problem happened. 'message' event couldn't not triggered.

yes,same issue for me

@PurpShell why fix-buttons-list (#1636 ) Branch 'message' event not triggered ?

jllerenaa commented 2 years ago

the update to v1.18.0 doesn't include the buttons/lists fix PR you have to install it by yourself just use npm i github:pedroslopez/whatsapp-web.js#fix-buttons-list more info here #1636

I have tried that. it still doesn't work. When I did that, another problem happened. 'message' event couldn't not triggered.

yes,same issue for me

@PurpShell why fix-buttons-list (#1636 ) Branch 'message' event not triggered ?

I have exactly the same Issue, message event is not being triggered from yesterday 2022-10-20 on fix-buttons-list branch

esteban020987 commented 2 years ago

la actualización a v1.18.0 no incluye los botones/listas arreglar PR tienes que instalarlo tú mismo solo usa npm i github:pedroslopez/whatsapp-web.js#fix-buttons-listmás información aquí #1636

He intentado eso. todavía no funciona Cuando hice eso, ocurrió otro problema. El evento 'mensaje' no pudo desencadenarse.

si, el mismo problema para mi

@PurpShell¿Por qué fix-buttons-list( #1636 ) el evento 'mensaje' de la rama no se activó?

Tengo exactamente el mismo problema, el messageevento no se activa desde ayer 2022-10-20 en la fix-buttons-listrama

Alguien que sepa como corregir ésto?

mochamadwiby commented 2 years ago

the update to v1.18.0 doesn't include the buttons/lists fix PR you have to install it by yourself just use npm i github:pedroslopez/whatsapp-web.js#fix-buttons-list more info here #1636

I have tried that. it still doesn't work. When I did that, another problem happened. 'message' event couldn't not triggered.

yes,same issue for me

@PurpShell why fix-buttons-list (#1636 ) Branch 'message' event not triggered ?

yup

esteban020987 commented 2 years ago

Corregí el problema de los botones y listas agregando nuevamente la parte de botones (#1636 ) en el archivo Injected.js

alechkos commented 2 years ago

the update to v1.18.0 doesn't include the buttons/lists fix PR you have to install it by yourself just use npm i github:pedroslopez/whatsapp-web.js#fix-buttons-list more info here #1636

I have tried that. it still doesn't work. When I did that, another problem happened. 'message' event couldn't not triggered.

temporary solution https://discord.com/channels/698610475432411196/1033022800367202364/1033230333988044810

Eonus21 commented 2 years ago

Resolved with https://github.com/pedroslopez/whatsapp-web.js/pull/1636. I hope this changes will be merged into main branch.