Baileys icon indicating copy to clipboard operation
Baileys copied to clipboard

[BUG] Buttons not working!

Open mmhospedagem opened this issue 1 year ago • 22 comments

After today's whatsapp update, the Android and IOS APPs stopped receiving the templates buttons and buttons lists.

mmhospedagem avatar Aug 04 '22 01:08 mmhospedagem

same

mateuscdor avatar Aug 04 '22 01:08 mateuscdor

with version 2.22.16.75 I'm having the same problem, I don't get buttons and send list from lib.

w3nder avatar Aug 04 '22 02:08 w3nder

Same bug

rafaeldalbosco avatar Aug 04 '22 02:08 rafaeldalbosco

+1

igortrust avatar Aug 04 '22 02:08 igortrust

Same here

makanSukros avatar Aug 04 '22 02:08 makanSukros

+1

zennn08 avatar Aug 04 '22 02:08 zennn08

Same here

result from message upsert:

{ "key": { "remoteJid": "[email protected]", "fromMe": true, "id": "BAE5DCD2CF0F06FF" }, "message": { "buttonsMessage": { "contentText": "Content Test", "footerText": "Footer", "buttons": [ { "buttonId": "id0", "buttonText": { "displayText": "Button A" }, "type": "RESPONSE" }, { "buttonId": "id1", "buttonText": { "displayText": "Button B" }, "type": "RESPONSE" }, { "buttonId": "id2", "buttonText": { "displayText": "Button C" }, "type": "RESPONSE" } ], "headerType": "EMPTY" } }, "messageTimestamp": "1659581541", "status": "PENDING" }

makanSukros avatar Aug 04 '22 02:08 makanSukros

Same here

result from message upsert:

{ "key": { "remoteJid": "[email protected]", "fromMe": true, "id": "BAE5DCD2CF0F06FF" }, "message": { "buttonsMessage": { "contentText": "Content Test", "footerText": "Footer", "buttons": [ { "buttonId": "id0", "buttonText": { "displayText": "Button A" }, "type": "RESPONSE" }, { "buttonId": "id1", "buttonText": { "displayText": "Button B" }, "type": "RESPONSE" }, { "buttonId": "id2", "buttonText": { "displayText": "Button C" }, "type": "RESPONSE" } ], "headerType": "EMPTY" } }, "messageTimestamp": "1659581541", "status": "PENDING" }

Message always pending state

makanSukros avatar Aug 04 '22 02:08 makanSukros

Up de Herbert

CarlaFeldens avatar Aug 04 '22 03:08 CarlaFeldens

Same here, I have downgraded the version also it doesn't work.

Then I get a message from a verified account and send a button message, I get this in the message object section, I don't know if this has an effect or not

image

noiseXfragment avatar Aug 04 '22 04:08 noiseXfragment

same issue here

Buzier avatar Aug 04 '22 05:08 Buzier

Do try this: https://github.com/adiwajshing/Baileys/commit/9f3b00d58d4f6b1527db42069acafff01123cbf8

adiwajshing avatar Aug 04 '22 05:08 adiwajshing

I have tested, now the button can be sent back, the issue can be closed @mmhospedagem

Thanks @adiwajshing

makanSukros avatar Aug 04 '22 06:08 makanSukros

I just did the test, with buttons and list I received normally in app version 2.22.16.75

w3nder avatar Aug 04 '22 06:08 w3nder

Do try this: 9f3b00d

Works for button only Templates and list not work

maulalwi avatar Aug 04 '22 08:08 maulalwi

I just did the test, with buttons and list I received normally in app version 2.22.16.75

You use WA beta or WA version normally?

maulalwi avatar Aug 04 '22 08:08 maulalwi

Try modif files https://github.com/adiwajshing/Baileys/pull/1990

And work normally again

maulalwi avatar Aug 04 '22 09:08 maulalwi

templatesButtons in send only buttonMessage are sent!

mmhospedagem avatar Aug 04 '22 18:08 mmhospedagem

templatesButtons in send only buttonMessage are sent!

Here too, just buttonMessage and buttonList. templateMessage doesn't work.

rafaeldalbosco avatar Aug 05 '22 14:08 rafaeldalbosco

Try modif files #1990

And work normally again

this fix template message on Android, but on iPhone the app chash when receive buttons or templateButtons

enoksaju avatar Aug 06 '22 02:08 enoksaju

any update for iPhones?

enoksaju avatar Aug 08 '22 17:08 enoksaju

This issue is stale because it has been open 6 days with no activity. Remove the stale label or comment or this will be closed in 2 days

github-actions[bot] avatar Aug 16 '22 03:08 github-actions[bot]

Not solved

enoksaju avatar Aug 16 '22 05:08 enoksaju

Not solved

artmerlop avatar Aug 21 '22 00:08 artmerlop

On iOS version app: 22.16.77 , it is not OK! maybe is relate the the meta data metioned by [noiseXfragment]

image

andersling avatar Aug 21 '22 01:08 andersling

It's working on iOS ONLY when the recipient conversation is open.

artmerlop avatar Aug 21 '22 01:08 artmerlop

It's working on iOS ONLY when the recipient conversation is open.

hi,sir! how to do it in detail? thanks!!

Would you do me a favor to give a detail example message structure?

have a nice day,sir!

andersling avatar Aug 21 '22 05:08 andersling

@andersling this is the message structure.

const options = JSON.parse(optionsJson).map((item, key) => {
        const object = {buttonId: `button${key}`, buttonText: {displayText: item}, type: 1}
        return object
})
const buttonMessage = {
        text: body.message,
        buttons: options,
        headerType: 1
}
await sendMessage('521' + phone + '@s.whatsapp.net', buttonMessage)

If you send the message with the recipient phone unlocked and the conversation open the message will arrive even on iOS, but if the app is in background or in another conversation the message won't arrive.

artmerlop avatar Aug 21 '22 23:08 artmerlop

@artmerlop thank you very much,sir!!

andersling avatar Aug 22 '22 01:08 andersling

This issue is stale because it has been open 6 days with no activity. Remove the stale label or comment or this will be closed in 2 days

github-actions[bot] avatar Aug 28 '22 03:08 github-actions[bot]

no stale

FaizBastomi avatar Aug 28 '22 22:08 FaizBastomi

Hi @adiwajshing and @artmerlop , is there something we could do to help solving this? Thanks!

lu4t avatar Sep 02 '22 06:09 lu4t

Hi @adiwajshing and @artmerlop , is there something we could do to help solving this? Thanks!

I don't think so, probably Mark Zuckerberg could explain 💀 Latest whatsapp version doesn't really support button messages anymore ig

salsawij avatar Sep 04 '22 04:09 salsawij

Hi @adiwajshing and @artmerlop , is there something we could do to help solving this? Thanks!

I don't think so, probably Mark Zuckerberg could explain skull Latest whatsapp version doesn't really support button messages anymore ig

Thanks, I was not aware of that. So I guess we should just close this issue (and all related issues).

lu4t avatar Sep 04 '22 08:09 lu4t