From ee8acc82eae18d88bdf1ef3cac7b0310cf35313c Mon Sep 17 00:00:00 2001 From: julien Date: Wed, 7 May 2025 11:07:37 +0200 Subject: [PATCH] sdsdsdsd --- index.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index 75f4ecd..5a43288 100644 --- a/index.js +++ b/index.js @@ -128,16 +128,17 @@ const initBaileys = async () => { } } }); + sock.ev.on('messages.update', async (updates) => { + broadcastToClients({ + messageId, + status, + jid + }); + }); }; initBaileys(); -sock.ev.on('messages.update', async (updates) => { - broadcastToClients({ - messageId, - status, - jid - }); -}); + app.use('/static', express.static(path.join(__dirname, 'public')));