Closed TramontaG closed 2 years ago
@TramontaG thanks a lot for filling the issue tempalte.
I think there's a problem with your code:
client.sendButtons(requester, "TestButtons", [
{
id: `!google web ${args.immediate}`,
text: 'Pesquisa Web',
},
{
id: `!google image ${args.immediate}`,
text: 'Imagens',
},
"" // <=== Why is this empty string part of the buttons array?
])
Instead, try this:
client.sendButtons(requester, "TestButtons", [
{
id: `!google web ${args.immediate}`,
text: 'Pesquisa Web',
},
{
id: `!google image ${args.immediate}`,
text: 'Imagens',
}
], "", "")
I have tested the former and it results in no message being sent. The latter sends the message successfully.
Thanks
@smashah can't send buttons in MD version, prompt insider version. How do I solve this?
@smashah can't send buttons in MD version, prompt insider version. How do I solve this?
Hey Erik, you can get an insider's license or wait until MD buttons become Generally available/ MD is no longer beta and everyone is forced to use it.
Are you using the latest version of the library?
Are you using Multi-device?
Current Behavior
I was using buttons just fine. However today I started to experience a crash on puppeteer when trying to send buttons. It is not related to my code because it remained unchanged.
Here is an example: My whatsapp bot is capable of doing google searches. When an user wants to search my bot gives two options: web search or image search.
args.immediate
is just text someone typed like a search bar.When I try to send those buttons, I get nothing. No crash, no output, nothing, it's like I've never called this method.:
It was working fine like two hours ago. My code hasn't changed. I guess something just updated on the whatsapp web client and it changed how buttons are sent.
Expected Behavior
Send buttons normally again, maybe with some changes in the code.
Steps To Reproduce
Try to evoke
Mode
My own code
create() code
DEBUG INFO
Environment
Screenshots
No response
Anything else?
No response