This commit is contained in:
julien 2025-05-06 14:51:58 +02:00
parent 536accabd9
commit fd81981af0

View File

@ -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, 80).toBuffer();
const resizedBuffer = await sharp(imagePath).resize(229, 40).toBuffer();
await sock.sendMessage(`${phone}@s.whatsapp.net`, {
image: resizedBuffer,