ddd
This commit is contained in:
parent
fd81981af0
commit
b5219f9311
6
index.js
6
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(229, 40).toBuffer();
|
||||
const resizedBuffer = await sharp(imagePath).resize(458, 400).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://www.google.com'
|
||||
url: 'https://weidemann-ch.com/uploads/offre/250312_0012345_02497.pdf'
|
||||
})
|
||||
},
|
||||
{
|
||||
name: 'cta_url',
|
||||
buttonParamsJson: JSON.stringify({
|
||||
display_text: 'Spec',
|
||||
url: 'https://www.google.com'
|
||||
url: 'https://weidemann-ch.com/uploads/offre/250312_0012345_02497.pdf'
|
||||
})
|
||||
}
|
||||
]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user