From a09871b998c005d86806411ede8376054001a6a3 Mon Sep 17 00:00:00 2001 From: julien Date: Tue, 6 May 2025 15:27:20 +0200 Subject: [PATCH] fdfdfd --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 01b03fc..eae641d 100644 --- a/index.js +++ b/index.js @@ -127,8 +127,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(600, 400).toBuffer(); + const resizedBuffer = fs.readFileSync(imagePath); await sock.sendMessage(`${phone}@s.whatsapp.net`, { image: resizedBuffer,