diff --git a/index.js b/index.js index 3c94bd5..73ecfea 100644 --- a/index.js +++ b/index.js @@ -128,7 +128,7 @@ app.post('/sendInteractiveImage', async (req, res) => { try { const imagePath = path.join(__dirname, 'public', 'logo-merlo-cs-FR.jpg'); const sharp = require('sharp'); - const resizedBuffer = await sharp(imagePath).resize(458, 400).toBuffer(); + const resizedBuffer = await sharp(imagePath).resize(458, 40).toBuffer(); await sock.sendMessage(`${phone}@s.whatsapp.net`, { image: resizedBuffer, @@ -142,14 +142,14 @@ app.post('/sendInteractiveImage', async (req, res) => { name: 'cta_url', buttonParamsJson: JSON.stringify({ display_text: 'Proposition', - url: 'https://weidemann-ch.com/uploads/offre/250312_0012345_02497.pdf' + url: 'https://merlo-ch.com/uploads/proposition/f_p_250505_0000136_00008_EB00001909.pdf' }) }, { name: 'cta_url', buttonParamsJson: JSON.stringify({ - display_text: 'Spec', - url: 'https://weidemann-ch.com/uploads/offre/250312_0012345_02497.pdf' + display_text: 'Spec machine', + url: 'https://merlo-ch.com/uploads/proposition/d_p_250505_0000136_00008_EB00001909.pdf' }) } ]