Mensagem não é exibida em novas versões do WhatsApp quando a mensagem possui botões
mhanelia opened this issue · comments
mhanelia commented
Description
Ao enviar mensagem com botão, não exibe mensagem com os botões nas novas versões do WhatsApp
Environment
- WPPConnect version(s): 1.29.0
- WA-JS version(s): 2.28.1
- WhatsApp version: 2.2409.2 e 2.2407.10
- Plataforma: Web, mobile e aplicativo PC
Steps to Reproduce
- Enviar mensagem com botões
- Verificar em uma versão anterior do WhatsApp
- Verificar em uma versão nova do WhatsApp
Your Code
await session.sendText(isValidNumber.id._serialized, content, {
useTemplateButtons: true, // False for legacy
buttons: [
{
url: 'https://wppconnect.io/',
text: 'WPPConnect Site'
},
{
phoneNumber: '+55 11 22334455',
text: 'Call me'
},
{
id: 'your custom id 1',
text: 'Some text'
},
{
id: 'another id 2',
text: 'Another text'
}
],
title: 'Title text', // Optional
footer: 'Footer text' // Optional
});
return response.status(200).json({
status: true,
message: 'Sua mensagem foi enviada com sucesso.',
status_code: 200
});
Additional context / Screenshot
Cleiton Carvalho commented
Olá @mhanelia , os botões foram descontinuados, não tem como envia-los mais.