From e4c33adbc91abf90bb22beb6dbcba21ccc223361 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Mon, 15 Dec 2025 11:58:23 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=A7=A3=E5=86=B3=20WA=20=E8=BF=87?= =?UTF-8?q?=E6=9C=9F=EF=BC=8C=E5=8D=87=E7=BA=A7=20baileys=206.7.21?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wai-server/core/baileys/index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wai-server/core/baileys/index.js b/wai-server/core/baileys/index.js index 2171e1c..0456547 100644 --- a/wai-server/core/baileys/index.js +++ b/wai-server/core/baileys/index.js @@ -3,6 +3,7 @@ const { Browsers, DisconnectReason, makeCacheableSignalKeyStore, + fetchLatestWaWebVersion, getMessageFromStore, useMultiFileAuthState, downloadMediaMessage, @@ -35,9 +36,10 @@ const createWhatsApp = async phone => { const authStateFolder = './baileys_auth_info/' + phone; const { state, saveCreds } = await useMultiFileAuthState(authStateFolder); // https://git.../WhiskeySockets/.../src/Utils/generics.ts - // const fetchLatestWaWebVersion - // https://web.whatsapp.com/sw.js, client_revision: 1027426813 - const whatsAppVersion = [2, 3000, 1027426813]; + // const fetchLatestWaWebVersion, fetchLatestWaWebVersion + // https://web.whatsapp.com/sw.js, client_revision: 1031072708 + const { version, isLatest } = await fetchLatestWaWebVersion(); + const whatsAppVersion = version;//[2, 3000, 1031072708]; const stop = () => {