This commit is contained in:
julien 2025-05-06 12:44:09 +02:00
parent 6e869b564f
commit f2df504c39

View File

@ -125,7 +125,7 @@ app.post('/sendButtons', async (req, res) => {
const { phone } = req.body;
if (!sock || !isConnected) return res.status(400).json({ error: 'Non connecté' });
try {
await sendInteractive(sock, `${phone}@s.whatsapp.net`, 'https://wa.canguidev.fr/public/logo-merlo-cs-FR.jpg');
await sendInteractive(sock, `${phone}@s.whatsapp.net`, 'https://picsum.photos/200/300');
res.json({ success: true });
} catch (e) {
console.error(e);