ddd
This commit is contained in:
parent
6e869b564f
commit
f2df504c39
2
index.js
2
index.js
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user