diff --git a/index.js b/index.js index a9617d9..a630aef 100644 --- a/index.js +++ b/index.js @@ -132,6 +132,7 @@ app.post('/sendInteractiveImage', async (req, res) => { // 1) URL publique de votre image const BASE_URL = process.env.BASE_URL || 'https://wa.canguidev.fr'; const imageUrl = `${BASE_URL}/static/logo-merlo-cs-FR.jpg`; + console.log(imageUrl); // 2) Contenu brut du message interactif const rawMessage = { @@ -147,7 +148,6 @@ app.post('/sendInteractiveImage', async (req, res) => { imageMessage: { url: imageUrl }, title: 'Igna', // facultatif subtitle: 'test' , // facultatif - hasMediaAttachment: true }), body: proto.Message.InteractiveMessage.Body.create({ text: caption || 'Description par défaut'