From d427de0302205d5da7e9df37002337cb1617459e Mon Sep 17 00:00:00 2001 From: ShellTear Date: Thu, 17 Feb 2022 07:12:34 +0200 Subject: [PATCH] Update version to fix 405 response (#1247) Fixes the issue mentioned in #1246. Requires scanning the qr again, otherwise it'll give 401 response. --- src/Defaults/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Defaults/index.ts b/src/Defaults/index.ts index aaa2b7f..09003d9 100644 --- a/src/Defaults/index.ts +++ b/src/Defaults/index.ts @@ -18,7 +18,7 @@ export const NOISE_WA_HEADER = new Uint8Array([87, 65, 5, 2]) // last is "DICT_V export const URL_REGEX = /[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)?/gi const BASE_CONNECTION_CONFIG: CommonSocketConfig = { - version: [2, 2202, 12], + version: [2, 2204, 13], browser: Browsers.baileys('Chrome'), waWebSocketUrl: 'wss://web.whatsapp.com/ws/chat', @@ -56,4 +56,4 @@ export const MEDIA_PATH_MAP: { [T in MediaType]: string } = { export const MEDIA_KEYS = Object.keys(MEDIA_PATH_MAP) as MediaType[] -export const KEY_BUNDLE_TYPE = '' \ No newline at end of file +export const KEY_BUNDLE_TYPE = ''