mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
chore: update proto
This commit is contained in:
@@ -35,10 +35,10 @@ async function findAppModules() {
|
||||
}
|
||||
const baseURL = 'https://web.whatsapp.com'
|
||||
const index = await request.get(baseURL, ua)
|
||||
const bootstrapQRID = index.match(/src="\/bootstrap_qr.([0-9a-z]{10,}).js"/)[1]
|
||||
const bootstrapQRURL = baseURL + '/bootstrap_qr.' + bootstrapQRID + '.js'
|
||||
const bootstrapQRID = index.match(/src="\/app.([0-9a-z]{10,}).js"/)[1]
|
||||
const bootstrapQRURL = baseURL + '/app.' + bootstrapQRID + '.js'
|
||||
|
||||
console.error('Found bootstrap_qr.js URL:', bootstrapQRURL)
|
||||
console.error('Found source JS URL:', bootstrapQRURL)
|
||||
|
||||
const qrData = await request.get(bootstrapQRURL, ua)
|
||||
const waVersion = qrData.match(/appVersion:"(\d\.\d+\.\d+)"/)[1]
|
||||
|
||||
Reference in New Issue
Block a user