diff --git a/index.js b/index.js index 0d9c0e3..52dfa33 100644 --- a/index.js +++ b/index.js @@ -73,8 +73,19 @@ app.post('/sendButtons', async (req, res) => { if (!sock || !isConnected) return res.status(400).json({ error: 'Non connecté' }); try { const btnMsg = { - text: message, - buttons: buttons.map((b, i) => ({ buttonId: `btn_${i}`, buttonText: { displayText: b }, type: 1 })), + text: 'Choisis une option :', + buttons: [ + { + buttonId: 'produits', + buttonText: { displayText: 'Voir produits' }, + type: 1 + }, + { + buttonId: 'support', + buttonText: { displayText: 'Contacter support' }, + type: 1 + } + ], headerType: 1 }; console.log(btnMsg);