Closed tolgakocadag closed 2 weeks ago
"@whiskeysockets/baileys": "^6.7.9",
let buttons = []; req.body.buttons.forEach((button,index) => { buttons.push({ buttonId: "id"+index, buttonText: { displayText: button }, type:1}); }); result = await spc.whatsapp.sock.sendMessage(`${phoneNumber}@s.whatsapp.net`, { text: message, buttons: buttons, headerType: 1 });
The text content is gone but the buttons are not coming. How can I do it?
"@whiskeysockets/baileys": "^6.7.9",