Baileys
Baileys copied to clipboard
[BUG] Template message , Button Messages and List messages are not going to whatsapp app
Template message , Button Messages and List messages are not going to whatsapp app but its visible on whatsapp web.
Everything was working fine but after I updated my whatsapp app today template messages are not visible on whatsapp app , text message is working fine.
anyone know about this ? Any help will be apprecialble
+1
+1
+1
+1
me too Same problem no work in android or IPhone
Any Fix ?
@imReCoder https://github.com/adiwajshing/Baileys/pull/1990/commits/0c3824eb366f319007a47b1a65d646c1a6bfc8c1
@mateuscdor Thanks very much!! it's working again!!!
Patch Works for WhatsApp on IOS but not on Android.
@mateuscdor Thanks very much!! it's working again!!!
Is it working for android and ios both?
@mateuscdor Thanks very much!! it's working again!!!
Is it working for android and ios both?
which whatsapp version do you use?
Hi,
I installed this version: npm install github:adiwajshing/baileys
and then modify the following file ( lib/Utils/message.js) so that the patchMessageForMdIfRequired function is as shown below:
/**
- this is an experimental patch to make buttons work
- Don't know how it works, but it does for now */ const patchMessageForMdIfRequired = (message) => { const requiresPatch = !!(message.buttonsMessage || message.templateMessage || message.listMessage); if (requiresPatch) { message = { viewOnceMessage: { message: { messageContextInfo: generateContextInfo(), ...message } } }; } return message; };
By the way, I found that the function sendReadReceipt is not available any more.
It's there any other method to mark as read one message by id?
Not work for iPhone, only work on Android
Template message , Button Messages and List messages are not going to whatsapp app but its visible on whatsapp web.
Everything was working fine but after I updated my whatsapp app today template messages are not visible on whatsapp app , text message is working fine.
anyone know about this ? Any help will be apprecialble
Have you already tried using the Baileys version from github? is the version that contains the patch, try using:
npm i github:adiwajshing/Baileys
or
yarn add github:adiwajshing/Baileys
Practically the problem would already be solved.
@AbuYoga I have updated to latest version but same problem.
I think, whatsapp disabled sending Template message (Button, List messages) for non-business accounts. Now only verified business accounts can send.
@ORMiK0 this may possible but not sure. Template messages are visible on whatsapp web, its just not showing on app
I think, whatsapp disabled sending Template message (Button, List messages) for non-business accounts. Now only verified business accounts can send.
not true, I have here another number that is not verified and buttons are working.
I think, whatsapp disabled sending Template message (Button, List messages) for non-business accounts. Now only verified business accounts can send.
not true, I have here another number that is not verified and buttons are working.
this feature is disabled on whatsapp version
- ios : 2.22.16.77 or higher
working with android version (2.22.16.75) or higher
That means end of template message with baileyas. Very sad...
buttons for non verified are working for iphone and android just test with another bot number.
@100n0m3 I have tested with lots of numbers but its same. Have you updated your whatsapp app to latest version because its working if you are using previous version of whatsapp app.
@100n0m3 I have tested with lots of numbers but its same. Have you updated your whatsapp app to latest version because its working if you are using previous version of whatsapp app.
Working both for me
sorry @100n0m3 , but what means "... its working if you are using previous version of whatsapp app"? I have power off the phone and the whatsapp app is not updated since the last session when scanned the QR. Could you explain me in more details? because I tested my bot in 3 iphone and not only not work the buttons also the whatsapp app in iphone crash with the last update of Bailey library from github
Thanks for your help!
The funny thing is that it works in private chats but not in groups.
More funny things is that how its working for you in private also. Its not working anywhere except whatsapp web.
What I'm trying to say is that the list buttons etc... are working in the latest version available either whatsapp normal or business including the beta version and on the iphone too, I just don't know which lib they are using, so whatever the problem is with this lib and not with whatsapp.
With this lib the buttons work 100%. See what they did and tweak the baileys.
https://github.com/wppconnect-team/wa-js/releases/download/v2.10.1/wppconnect-wa.js
To send buttons, use:
WPP.chat.sendTextMessage('[email protected]','Se liga na novidade: Novos botões voltando na Versão MD!', { useTemplateButtons: true, createChat: true, buttons: [ { url: 'https://wa.me/558196302385', text: 'Fale conosco' }, { url: 'https://www.hci.com.br/', text: 'Acesse nosso site' }, { id: '001', text: 'Curti' }, { id: '002', text: 'Show de Bola' } ],
footer: 'Este é um teste de uma conta normal, usando a Versão Beta MultiDevice' // Optional
}
);
Hi @mikelustosa I see that in this proyect also report this problem since 2 days ago and there is not solution by the moment: https://github.com/wppconnect-team/wa-js/issues/584
any updates guys ?
+1
any update guys? +1
+1
+1
+1
+1
+1
info coeg
Template message , Button Messages and List messages are not going to whatsapp app but its visible on whatsapp web.
Everything was working fine but after I updated my whatsapp app today template messages are not visible on whatsapp app , text message is working fine.
anyone know about this ? Any help will be apprecialble
+1
+1, replied in another open issue. Baileys sends the message just fine and whatsapp web receives them properly. It seems to be a phone app thing. In my case, not working with: v 2.22.16.77 for iOS
+1
Any updates?
anyone help how to add template message in webhook?
Is this solved?
Can someone who has the business account try to to send a template message to the jetbreak ios's whatsapp and use frida to capture the xmpp message ,send the msg to here ,maybe someone can help?
thanks,guys!
Hi,
Also have the same issue. I Can see it on whatsapp web but not the phone
any update?
hope someone who has the business API can capture the templates packages to here ,maybe we can find out the difference between NOT API's and the API's.
@andersling
@andersling
@artmerlop thanks very much for your cooperation,sir! Your message demo is useful: I compare for the android working structure which no show correctly on iOS, I found that the android version let the deviceListMetadata to null, but your working one on iOS's WA has a value to it. Can you show up more detail for these message sub structures? thanks!
I really hope that this can help to template buttons working on iOS again 🙏
El 23/08/2022 a las 10:38 a. m., andersling escribió:
@andersling <https://github.com/andersling> A965D305-F353-4EAB-976E-ED90ED328CE9 <https://user-images.githubusercontent.com/50642674/186119892-58fa0d88-da29-45d5-a6d7-1a3656a502a9.png>
@artmerlop https://github.com/artmerlop thanks very much for your cooperation,sir! Your message demo is useful: I compare for the android working structure which no show correctly on iOS, I found that the android version let the deviceListMetadata to null, but your working one on iOS's WA has a value to it. Can you show up more detail for these message sub structures? thanks!
— Reply to this email directly, view it on GitHub https://github.com/adiwajshing/Baileys/issues/2006#issuecomment-1224091063, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACR6455NDGSWLNHMME3WUBLV2TH6JANCNFSM556EHPFQ. You are receiving this because you commented.Message ID: @.***>
I really hope that this can help to template buttons working on iOS again El 23/08/2022 a las 10:38 a. m., andersling escribió: … @andersling https://github.com/andersling A965D305-F353-4EAB-976E-ED90ED328CE9 https://user-images.githubusercontent.com/50642674/186119892-58fa0d88-da29-45d5-a6d7-1a3656a502a9.png @artmerlop https://github.com/artmerlop thanks very much for your cooperation,sir! Your message demo is useful: I compare for the android working structure which no show correctly on iOS, I found that the android version let the deviceListMetadata to null, but your working one on iOS's WA has a value to it. Can you show up more detail for these message sub structures? thanks! — Reply to this email directly, view it on GitHub <#2006 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACR6455NDGSWLNHMME3WUBLV2TH6JANCNFSM556EHPFQ. You are receiving this because you commented.Message ID: @.***> @dafner we all will try our best,sir! But as for me , I don't have the business API account which can send working temlate message to iOS's WA (with jailbreak iOS and frida) ,so that we can compare what is wrong with the iOS version but working well on andorid version. btw, do you have the bussiness API account that can send some demo template message? sir
good luck to all,guys!
@andersling more details:


@andersling more details:
![]()
![]()
This JSON is Invalid in json formatter.
@andersling more details:
![]()
![]()
@artmerlop Thanks for your useful information,sir! After a lot tries base on your message info ,I found that maybe iOS issue is relati DeviceListMetadata ,but this important information are lacked in your message struct, would you do me a favor to send it here? thanks a lot!
have a nice day!
@andersling here is the full json.
{ "key":{ "remoteJid":"[email protected]", "fromMe":false, "id":"----------------" }, "messageTimestamp":1661316832, "pushName":"----------------", "message":{ "templateMessage":{ "hydratedTemplate":{ "hydratedTitleText":"Titulo", "hydratedContentText":"Contenido", "hydratedFooterText":"Pie", "hydratedButtons":[ {"quickReplyButton":{"displayText":"prueba","id":"boton 1"},"index":0}, {"quickReplyButton":{"displayText":"otra prueba","id":"otra boton 2"},"index":1}, {"quickReplyButton":{"displayText":"última prueba","id":"boton 3"},"index":2} ], "templateId":"----------------" } }, "messageContextInfo":{ "deviceListMetadata":{ "recipientKeyHash":"tes1Rqv2/uRgeP==", "recipientTimestamp":"1661316713" }, "deviceListMetadataVersion":2 } }, "verifiedBizName":"Test Number" }
@andersling here is the full json.
{ "key":{ "remoteJid":"[email protected]", "fromMe":false, "id":"----------------" }, "messageTimestamp":1661316832, "pushName":"----------------", "message":{ "templateMessage":{ "hydratedTemplate":{ "hydratedTitleText":"Titulo", "hydratedContentText":"Contenido", "hydratedFooterText":"Pie", "hydratedButtons":[ {"quickReplyButton":{"displayText":"prueba","id":"boton 1"},"index":0}, {"quickReplyButton":{"displayText":"otra prueba","id":"otra boton 2"},"index":1}, {"quickReplyButton":{"displayText":"última prueba","id":"boton 3"},"index":2} ], "templateId":"----------------" } }, "messageContextInfo":{ "deviceListMetadata":{ "recipientKeyHash":"tes1Rqv2/uRgeP==", "recipientTimestamp":"1661316713" }, "deviceListMetadataVersion":2 } }, "verifiedBizName":"Test Number" }
thank you,sir! I will try to solve it as soon as possible ,and report the result to you!
BTW, what is you iOS WA version? 2.22.16.77 or so?
have a nice day!
For me, using WA version 2.2228.8 (Latest) solved the problem.
For me, using WA version 2.2228.8 (Latest) solved the problem.
Your device is iPhone or web? WA iOS version current is 2.22.16.77 or so , android version is 2.22.17.77 or so
thanks!
@andersling my version is 2.22.16.77
For me, using WA version 2.2228.8 (Latest) solved the problem.
This is when starting the instance in baileys?
Hi guys!
I am solved the problem. In my case the reason is when the list text is empty.
This works fine for me. I add a single space in the text.
const listMessage = { text: " ", footer: "", title: "Seleccione un operador", buttonText: "Operadores disponibles", sections }
For me, using WA version 2.2228.8 (Latest) solved the problem.
This is when starting the instance in baileys?
Yes!
Didn't work for me on 2.22.16.77
@andersling my version is 2.22.16.77 @artmerlop @artmerlop thank you! the same as mime! and by the way, how do you get your json message, use frida on iOS? as to now, I think the difference between android version's template message and the iOS is that the metadatalist: android can accept it as nil and show correctly, but iOS not , just show it as empty message . anyone has other idea? and , would you do me a favor to send a template message to my iOS device? my num is : 212656688319
thanks a lot!
@artmerlop hi,sir ,do you like to join TG ( https://t.me/Premium_SMS_Messenger ) which created by salykingleb on another thread: https://github.com/adiwajshing/Baileys/issues/2077
have a nice day!
@artmerlop hi,sir ,do you like to join TG ( https://t.me/Premium_SMS_Messenger ) which created by salykingleb on another thread: #2077
have a nice day!
Created a chat on this issue - join us https://t.me/+V6GroUtzFxM0YzEy A little different link
Hi guys!
I am solved the problem. In my case the reason is when the list text is empty.
This works fine for me. I add a single space in the text.
const listMessage = { text: " ", footer: "", title: "Seleccione un operador", buttonText: "Operadores disponibles", sections }
Did it work with someone else?
Hi,
I was able to send the example message below to an iPhone 13 pro max, ios 15.6.1 and whatsapp 2.22.16.77
async sendMediaMessage(to, message) { const jid = this.getWhatsAppId(to)
await this.verifyId(jid) /* const data = await this.instance.sock?.sendMessage( jid, message ) .then(handler.addMessage); */ const buttons = [ {buttonId: 'id1', buttonText: {displayText: 'Button 1'}, type: 1}, {buttonId: 'id2', buttonText: {displayText: 'Button 2'}, type: 1}, {buttonId: 'id3', buttonText: {displayText: 'Button 3'}, type: 1} ]
const buttonMessage = { text: "Hi it's button message", footer: 'Hello World', buttons: buttons, headerType: 1 }
const sendMsg = await this.instance.sock?.sendMessage(jid, buttonMessage)
return data }
El 29/08/2022 a las 09:24 a. m., Ricardo Crivelli escribió:
Hi guys! I am solved the problem. In my case the reason is when the list text is empty. This works fine for me. I add a single space in the text. |const listMessage = { text: " ", footer: "", title: "Seleccione un operador", buttonText: "Operadores disponibles", sections }|
Did it work with someone else?
— Reply to this email directly, view it on GitHub https://github.com/adiwajshing/Baileys/issues/2006#issuecomment-1230215164, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACR6454XAKA2VLJHKFCJDALV3STX7ANCNFSM556EHPFQ. You are receiving this because you were mentioned.Message ID: @.***>
follow on this
button, template and list message not appear when phone closed all the apps whatsapp. not running in background the message not appear.
test on IOS