diff --git a/index.js b/index.js index 647ddf3..6636c74 100644 --- a/index.js +++ b/index.js @@ -454,7 +454,7 @@ app.post('/sendProductMessage', async (req, res) => { try { const jid = `${phone}@s.whatsapp.net`; - await client.sendMessage( + await sock.sendMessage( jid, { product: {