Baileys
Baileys copied to clipboard
[BUG] Buttons not working!
After today's whatsapp update, the Android and IOS APPs stopped receiving the templates buttons and buttons lists.
same
with version 2.22.16.75 I'm having the same problem, I don't get buttons and send list from lib.
Same bug
+1
Same here
+1
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" }
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
Up de Herbert
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
same issue here
Do try this: https://github.com/adiwajshing/Baileys/commit/9f3b00d58d4f6b1527db42069acafff01123cbf8
I have tested, now the button can be sent back, the issue can be closed @mmhospedagem
Thanks @adiwajshing
I just did the test, with buttons and list I received normally in app version 2.22.16.75
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?
Try modif files https://github.com/adiwajshing/Baileys/pull/1990
And work normally again
templatesButtons in send only buttonMessage are sent!
templatesButtons in send only buttonMessage are sent!
Here too, just buttonMessage and buttonList. templateMessage doesn't work.
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
any update for iPhones?
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
Not solved
Not solved
On iOS version app: 22.16.77 , it is not OK! maybe is relate the the meta data metioned by [noiseXfragment]
It's working on iOS ONLY when the recipient conversation is open.
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 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 thank you very much,sir!!
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
no stale
Hi @adiwajshing and @artmerlop , is there something we could do to help solving this? Thanks!
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
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).