diff --git a/package.json b/package.json index 9ce59c4b..8512f0ef 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "amqplib": "^0.10.3", "@aws-sdk/client-sqs": "^3.569.0", "axios": "^1.6.5", - "@whiskeysockets/baileys": "6.6.0", + "@whiskeysockets/baileys": "^6.7.2", "class-validator": "^0.14.1", "compression": "^1.7.4", "cors": "^2.8.5", diff --git a/src/api/services/channels/whatsapp.baileys.service.ts b/src/api/services/channels/whatsapp.baileys.service.ts index f6a4a4b8..1369aa0a 100644 --- a/src/api/services/channels/whatsapp.baileys.service.ts +++ b/src/api/services/channels/whatsapp.baileys.service.ts @@ -540,7 +540,7 @@ export class BaileysStartupService extends ChannelStartupService { printQRInTerminal: false, mobile, browser: number ? ['Chrome (Linux)', session.NAME, release()] : browser, - version, + version: [2, 2413, 1], markOnlineOnConnect: this.localSettings.always_online, retryRequestDelayMs: 10, connectTimeoutMs: 60_000, @@ -671,7 +671,7 @@ export class BaileysStartupService extends ChannelStartupService { try { this.instance.authState = await this.defineAuthState(); - const { version } = await fetchLatestBaileysVersion(); + // const { version } = await fetchLatestBaileysVersion(); const session = this.configService.get('CONFIG_SESSION_PHONE'); const browser: WABrowserDescription = [session.CLIENT, session.NAME, release()]; @@ -711,7 +711,7 @@ export class BaileysStartupService extends ChannelStartupService { logger: P({ level: this.logBaileys }), printQRInTerminal: false, browser: this.phoneNumber ? ['Chrome (Linux)', session.NAME, release()] : browser, - version, + version: [2, 2413, 1], markOnlineOnConnect: this.localSettings.always_online, retryRequestDelayMs: 10, connectTimeoutMs: 60_000,