devlikeapro / waha

WAHA - WhatsApp HTTP API (REST API) that you can configure in a click! Two engines: chromium-based WEBJS and pure-websocket NOWEB
https://waha.devlike.pro/
Apache License 2.0
943 stars 283 forks source link

new feature - message with button #210

Closed JLENF closed 1 year ago

JLENF commented 1 year ago

I use your API and it works great. The only feature it doesn't have is the possibility of sending a message with a button for the person to click and respond to a pre-defined message.

In this project they have this functionality, but I would like to use your API. https://github.com/salman0ansari/whatsapp-api-nodejs

Congratulations on the project.

allburov commented 1 year ago

Have you tested buttons in that project? It probably doesn't work. this is why https://dev.to/purpshell/buttons-and-lists-get-deprecated-by-many-libraries-54h

You can use polls instead (but it's availalbe in NOWEB engine only) https://waha.devlike.pro/docs/how-to/polls/

JLENF commented 1 year ago

"Have you tested buttons in that project? It probably doesn't work."

yes, its working.

That's why I opened this issue, so you can check how he did it.

allburov commented 1 year ago

Weird, even the engine that the project above use doesn't support it anymore https://github.com/WhiskeySockets/Baileys/issues/56

So if it's fine for you to use noweb engine (it's an alias for WhiskeySockets/Baileys) - you can use polls instead, it covers the case!

JLENF commented 1 year ago

Hi, this feature i need..

IMG_5762

JLENF commented 1 year ago
Captura de Tela 2023-09-26 às 14 34 51 Captura de Tela 2023-09-26 às 14 35 08
JLENF commented 1 year ago

Now I understand that there is a difference between button and reply message. Can I use reply message with your project?

allburov commented 1 year ago

Can I use reply message with your project? I don't think so.

Can't it be done with Polls? https://waha.devlike.pro/docs/how-to/polls/ So you'll have two options

image