dddd
This commit is contained in:
parent
0dd6b755f5
commit
536accabd9
2
index.js
2
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(600, 400).toBuffer();
|
||||
const resizedBuffer = await sharp(imagePath).resize(458, 80).toBuffer();
|
||||
|
||||
await sock.sendMessage(`${phone}@s.whatsapp.net`, {
|
||||
image: resizedBuffer,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user