mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
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:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user