Update version to fix 405 response (#1247)

Fixes the issue mentioned in #1246.
Requires scanning the qr again, otherwise it'll give 401 response.
This commit is contained in:
ShellTear
2022-02-17 07:12:34 +02:00
committed by GitHub
parent 913b38493c
commit d427de0302

View File

@@ -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<any> = {
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 = ''
export const KEY_BUNDLE_TYPE = ''