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.1k stars 3.6k forks source link

Buttons and List Message is Not Sending #1691

Closed innovatorssoft closed 1 year ago

innovatorssoft commented 2 years ago

Is there an existing issue for this?

Describe the bug

Buttons and List Message is Not Sending These features were working well some time ago, but unfortunately from a few days buttons and list message are not sending through WhatsApp Web.js. Kindly Resolve this issue as soon as possible. Thanks

Expected behavior

Buttons and List Message is Not Sending

Steps to Reproduce the Bug or Issue

Buttons and List Message is Not Sending

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

No, I am not using Multi Device

Environment

Windows Android WhatsApp-web.js Latest Node.js 12

Additional context

Buttons and List Message is Not Sending

gilangkurniiawant commented 2 years ago

same lur

islamelgaidi commented 2 years ago

me too Buttons and List Message is Not Sending

simanja commented 2 years ago

Solved https://github.com/pedroslopez/whatsapp-web.js/pull/1636 ?

innovatorssoft commented 2 years ago

Still Facing the same problem Capture

d0v3riz commented 2 years ago

ll Facing the same problem

Weird, I tried PR and it worked smoothly. Make sure you read the tutorial correctly.

innovatorssoft commented 2 years ago

Here is My Code Capture

innovatorssoft commented 2 years ago

Cany Anyone Please help me out of this issue. . .

Omrishoham commented 2 years ago

please help same issue

guigavbs commented 2 years ago

estou com o mesmo problema

iamdroppy commented 2 years ago

same issue

shiftcryptomyid commented 2 years ago

try use npm i github:pedroslopez/whatsapp-web.js#fix-buttons-list

mochamadwiby commented 2 years ago

try use npm i github:pedroslopez/whatsapp-web.js#fix-buttons-list

thankyou, solved

innovatorssoft commented 2 years ago

Not Wroking npm i github:pedroslopez/whatsapp-web.js#fix-buttons-list @mochamadwiby @shiftcryptomyid Capture

muhadimulyana commented 2 years ago

npm i github:pedroslopez/whatsapp-web.js#fix-buttons-list

thanks, its solved my problem

elhumbertoz commented 2 years ago

Hi, (npm i github:pedroslopez/whatsapp-web.js#fix-buttons-list) solved the problem.

But, I can send three bottons only.

[{"body": "button1"}, {"body": "button2"}, {"body": "button3"}, {"body": "button4"}]

image

shiftcryptomyid commented 1 year ago

Hi, (npm i github:pedroslopez/whatsapp-web.js#fix-buttons-list) solved the problem.

But, I can send three bottons only.

[{"body": "button1"}, {"body": "button2"}, {"body": "button3"}, {"body": "button4"}]

image

you could find it here https://github.com/pedroslopez/whatsapp-web.js/pull/1636/files#diff-739746895f014bf1a6db8b9c4cb8768f7d4b64c102593ffca22930c3468bf95bR80-R90

// Limit the buttons (max 3 of regular and 3 of special buttons) 5 buttons total at the same time

Omrishoham commented 1 year ago

try use npm i github:pedroslopez/whatsapp-web.js#fix-buttons-list

can you tell me please what are your versions of node and npm?

Omrishoham commented 1 year ago

try use npm i github:pedroslopez/whatsapp-web.js#fix-buttons-list

thankyou, solved

please , can tell me versions of node and npm?

mochamadwiby commented 1 year ago

try use npm i github:pedroslopez/whatsapp-web.js#fix-buttons-list

thankyou, solved

please , can tell me versions of node and npm?

image

MltrCyber commented 1 year ago

try use npm i github:pedroslopez/whatsapp-web.js#fix-buttons-list

thankyou, solved

please , can tell me versions of node and npm?

image

sir? can i see your button code?

`Client is ready! node:internal/process/promises:288 triggerUncaughtException(err, true / fromPromise /); ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "URL buttons are not supported yet".] { code: 'ERR_UNHANDLED_REJECTION' }

Node.js v18.5.0`

@mochamadwiby mochamadwiby hehe

error bang ga bisa hadehh

mochamadwiby commented 1 year ago

try use npm i github:pedroslopez/whatsapp-web.js#fix-buttons-list

thankyou, solved

please , can tell me versions of node and npm?

image

sir? can i see your button code?

`Client is ready! node:internal/process/promises:288 triggerUncaughtException(err, true / fromPromise /); ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "URL buttons are not supported yet".] { code: 'ERR_UNHANDLED_REJECTION' }

Node.js v18.5.0`

@mochamadwiby mochamadwiby hehe

error bang ga bisa hadehh

Wah gimana itu, soalnya kalau yg issue bug list aplikasinya harus running normal dulu cuman listnya nggk muncul di whatsapp interface kebetulan belum sempat try catch di listnya ternyata sudah solve dengan update tersebut,

shiftcryptomyid commented 1 year ago

try use npm i github:pedroslopez/whatsapp-web.js#fix-buttons-list

thankyou, solved

please , can tell me versions of node and npm?

image

sir? can i see your button code?

`Client is ready! node:internal/process/promises:288 triggerUncaughtException(err, true / fromPromise /); ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "URL buttons are not supported yet".] { code: 'ERR_UNHANDLED_REJECTION' }

Node.js v18.5.0`

@mochamadwiby mochamadwiby hehe

error bang ga bisa hadehh

coba buka file ini https://github.com/pedroslopez/whatsapp-web.js/pull/1636/files#diff-739746895f014bf1a6db8b9c4cb8768f7d4b64c102593ffca22930c3468bf95bR80-R90 di dalam node_modules/whatsapp-web.js/src/structures di bawah URL buttons are not supported yet -> diapus comment ny

innovatorssoft commented 1 year ago

@shiftcryptomyid Capture

MltrCyber commented 1 year ago

else if (message.body === 'bt') { let button = new Buttons('Button body',[{body:'bt1'},{body:'bt2'},{body:'bt3'}],'title','footer'); client.sendMessage(message.from, button); } else if (message.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(message.from, list);

KJoaquin commented 1 year ago

Does anyone else have the problem that the buttons are not visible on the iPhone?

attached test images.

image

Captura de Pantalla 2022-09-22 a la(s) 3 17 47
amit-onappr commented 1 year ago

Is it allowed to use rich messaging format available in WhatsApp cloud APIs. It may lead to ban?

salsawij commented 1 year ago

else if (message.body === 'bt') { let button = new Buttons('Button body',[{body:'bt1'},{body:'bt2'},{body:'bt3'}],'title','footer'); client.sendMessage(message.from, button); } else if (message.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(message.from, list);

image list works, buttons aren't quite working

nactruji commented 1 year ago

Hey, anybody could fix that? We are trying to send buttons but we aren't lucky. And we try sending lists but something strange happen, i can see from my cellphone (qr connected) that some lists were sent but in the receiver cellphone lists aren't received

marlon33 commented 1 year ago

Ei, alguém poderia consertar isso? Estamos tentando enviar botões, mas não temos sorte. E tentamos enviar listas mas acontece algo estranho, vejo pelo meu celular (qr conectado) que algumas listas foram enviadas mas no celular do receptor as listas não são recebidas

The same issue here,

RafaelIngenium commented 1 year ago

Here with the same situation of not being able to send buttons

PurpShell commented 1 year ago

Hey, anybody could fix that? We are trying to send buttons but we aren't lucky. And we try sending lists but something strange happen, i can see from my cellphone (qr connected) that some lists were sent but in the receiver cellphone lists aren't received

What exactly is happening? Haven't heard of this before.

PurpShell commented 1 year ago

Hey! This is a old/necro post. I'll be locking it, expand discussion on the current PR.

1636

shirser121 commented 1 year ago

Buttons and lists currently not supported