yisbug / whatsapp-nodejs

This is a library based on whatsapp androd latest version, you can use it build your own app.
36 stars 12 forks source link

MODULE_NOT_FOUND error when running example whatsapp.test.js #3

Open cobra2k5 opened 1 year ago

cobra2k5 commented 1 year ago

Hi! I'm not able to run the example 'whatsapp.test.js' from the test folder

test> node .\whatsapp.test.js
E:\myproject\whatsapp-nodejs\node_modules\@privacyresearch\curve25519-typescript\lib\built\curveasm.js:136
                    throw ex;
                    ^

Error: Cannot find module '/etc/whatsapp.json'
Require stack:
- E:\myproject\whatsapp-nodejs\src\config.js
- E:\myproject\whatsapp-nodejs\src\db.js
- E:\myproject\whatsapp-nodejs\src\initBeforeStart.js
- E:\myproject\whatsapp-nodejs\src\Whatsapp.js
- E:\myproject\whatsapp-nodejs\src\index.js
- E:\myproject\whatsapp-nodejs\test\whatsapp.test.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (E:\myproject\whatsapp-nodejs\src\config.js:1:22)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (E:\myproject\whatsapp-nodejs\src\db.js:13:16)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'E:\\myproject\\whatsapp-nodejs\\src\\config.js',
    'E:\\myproject\\whatsapp-nodejs\\src\\db.js',
    'E:\\myproject\\whatsapp-nodejs\\src\\initBeforeStart.js',
    'E:\\myproject\\whatsapp-nodejs\\src\\Whatsapp.js',
    'E:\\myproject\\whatsapp-nodejs\\src\\index.js',
    'E:\\myproject\\whatsapp-nodejs\\test\\whatsapp.test.js'
  ]
}

I just changed the file to send the SMS code only to my number

const { Whatsapp, WhatsappServer } = require('../src/index');

const main = async () => {
  const whatsapp = new Whatsapp();
  await whatsapp.init({
    mobile: 'MY MOBILE NUMBER',
    proxy: {
      host: '127.0.0.1',
      port: 1086,
    },
  });
  let res = null;

  // get sms code
   res = await whatsapp.sms();

  // use sms code to register
  // res = await whatsapp.register({ code: '352-002' });

  // if the registration is successful, you can log in directly
  //res = await whatsapp.login();

  // send text message
  //res = await whatsapp.sendContactTextMessage({
  //  jid: '34633786770',
  //  message: 'test hello',
  //});

  console.log('res', res);
};

main();
cobra2k5 commented 1 year ago

It seems this project is not working, cannot npm install it. A lot of broken dependencies. And then when I try to run I get the error from the first post.

npm install

npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: co-mocha@1.2.2
npm WARN Found: mocha@6.2.3
npm WARN node_modules/egg-bin/node_modules/mocha
npm WARN   mocha@"^6.0.2" from egg-bin@4.20.0
npm WARN   node_modules/egg-bin
npm WARN     dev egg-bin@"^4.15.0" from the root project
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer mocha@">=1.18 <6" from co-mocha@1.2.2
npm WARN node_modules/egg-bin/node_modules/co-mocha
npm WARN   co-mocha@"^1.2.2" from egg-bin@4.20.0
npm WARN   node_modules/egg-bin
npm WARN
npm WARN Conflicting peer dependency: mocha@5.2.0
npm WARN node_modules/mocha
npm WARN   peer mocha@">=1.18 <6" from co-mocha@1.2.2
npm WARN   node_modules/egg-bin/node_modules/co-mocha
npm WARN     co-mocha@"^1.2.2" from egg-bin@4.20.0
npm WARN     node_modules/egg-bin
npm WARN deprecated formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated superagent@3.8.3: Please upgrade to v7.0.2+ of superagent.  We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing.  See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>.
npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated swig@1.4.2: This package is no longer maintained
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated babel-eslint@8.2.6: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.

added 1791 packages, and audited 1929 packages in 2m

144 packages are looking for funding
  run `npm fund` for details

43 vulnerabilities (2 low, 10 moderate, 28 high, 3 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
npm notice
npm notice New major version of npm available! 8.11.0 -> 9.1.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.1.1
npm notice Run npm install -g npm@9.1.1 to update!
npm notice
cobra2k5 commented 1 year ago

Hi @yisbug . The error seems fixed. But now it shows another one

vboxuser@Ubuntu:~/Downloads/whatsapp-nodejs/test$ node whatsapp.test.js 
/home/vboxuser/Downloads/whatsapp-nodejs/node_modules/@privacyresearch/curve25519-typescript/lib/built/curveasm.js:136
                    throw ex;
                    ^

Error: ENOENT: no such file or directory, scandir '/home/vboxuser/Downloads/whatsapp-nodejs/src/bin/darwin'
    at Object.readdirSync (node:fs:1438:3)
    at Object.<anonymous> (/home/vboxuser/Downloads/whatsapp-nodejs/src/bin/index.js:8:19)
    at Module._compile (node:internal/modules/cjs/loader:1155:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
    at Module.load (node:internal/modules/cjs/loader:1033:32)
    at Function.Module._load (node:internal/modules/cjs/loader:868:12)
    at Module.require (node:internal/modules/cjs/loader:1057:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/home/vboxuser/Downloads/whatsapp-nodejs/src/lib/WARequest.js:1:16)
    at Module._compile (node:internal/modules/cjs/loader:1155:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
    at Module.load (node:internal/modules/cjs/loader:1033:32)
    at Function.Module._load (node:internal/modules/cjs/loader:868:12)
    at Module.require (node:internal/modules/cjs/loader:1057:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/home/vboxuser/Downloads/whatsapp-nodejs/src/Whatsapp.js:3:19) {
  errno: -2,
  syscall: 'scandir',
  code: 'ENOENT',
  path: '/home/vboxuser/Downloads/whatsapp-nodejs/src/bin/darwin'
}
yisbug commented 1 year ago

Try the latest version

cobra2k5 commented 1 year ago

Try the latest version

You forgot to update this line from const files = fse.readdirSync(path.join(__dirname, './darwin')).filter(item => item[0] !== '.'); to const files = fse.readdirSync(path.join(__dirname, basePath)).filter(item => item[0] !== '.');

Now I have a different error message:

vboxuser@Ubuntu:~/Downloads/whatsapp-nodejs/test$ node whatsapp.test.js 
/home/vboxuser/Downloads/whatsapp-nodejs/src/bin/linux/d0.js:1
{"status":0,"message":"恭喜,保护成功!","content":"(function(_0x4fe519,_0x2fa365){function _0x266264(_0x147436,_0x517a97,_0x4fe091,_0x1119db,_0x2d15e8){return _0x2a99(_0x2d15e8-0x2e9,_0x147436);}const _0x519f4b=_0x4fe519();function _0x3997e0(_0x36b525,_0x3f345b,_0x409024,_0x29b8bf,_0x1fbe11){return _0x3231(_0x1fbe11-0x301,_0x409024);}function _0x2a6195(_0x9e4e5b,_0x2fc452,_0x3feaa4,_0x4b294a,_0x5aa464){return _0x2a99(_0x9e4e5b-0x28d,_0x4b294a);}function _0x2528f4(_0x5ae3b7,_0xec61b1,_0x1e0e8e,_0x28d388,_0x1eac3e){return _0x3231(_0xec61b1-0x4f,_0x1eac3e);}function _0x35e6c4(_0x2c78d7,_0x183e94,_0x138470,_0x4bef0e,_0x368951){return _0x2a99(_0x138470-0x9,_0x183e94);}function _0x1daef4(_0x4055be,_0x1e1840,_0x4a7bf5,_0x42ab4a,_0x4800a4){return _0x2a99(_0x4055be- -0x2d,_0x4800a4);}function _0x4b646d(_0x1cffd3,_0x45cc8c,_0x113fc9,_0x45eb21,_0x2c0dd1){return _0x3231(_0x45cc8c-0x161,_0x2c0dd1);}function _0x31aad9(_0x54a876,_0x177e16,_0x3ae727,_0x327582,_0x3032b3){return _0x2a99(_0x3032b3- -0x30a,_0x327582);}function _0x10495b(_0x1136c7,_0xda4f31,_0x153219,_0x255f59,_0x430c35){return _0x3231(_0x255f59- -0x3f,_0xda4f31);}while(!![]){try{const _0x19d64a=parseInt(_0x31aad9(-0x2a4,-0x24f,-0x247,-0x29d,-0x278))/0x1+-parseInt(_0x10495b(0x26,'Muf5',-0x4,-0x3,-0x1b))/0x2*(parseInt(_0x2a6195(0x2be,0x2e5,0x28a,0x297,0x274))/0x3)+-parseInt(_0x31aad9(-0x2a0,-0x28f,-0x279,-0x258,-0x276))/0x4+-parseInt(_0x31aad9(-0x278,-0x29c,-0x289,-0x254,-0x28b))/0x5+parseInt(_0x3997e0(0x3ad,0x3ab,'Jd@v',0x33d,0x377))/0x6+-parseInt(_0x10495b(0x3a,'yMra',0x67,0x24,0x2e))/0x7+parseInt(_0x2528f4(0x87,0x75,0x4d,0xb0,'7y5g'))/0x8*(parseInt(_0x266264(0x38f,0x384,0x346,0x33d,0x34b))/0x9);if(_0x19d64a===_0x2fa365){break;}else{_0x519f4b['push'](_0x519f4b['shift']());}}catch(_0x3ceb7b){_0x519f4b['push'](_0x519f4b['shift']());}}}(_0xe15f,0xe250d));function _0x2a99(_0x4bee60,_0xe15f81){const _0x2a99ad=_0xe15f();_0x2a99=function(_0x5924a9,_0xdd46f4){_0x5924a9=_0x5924a9-0x0;let _0x51b735=_0x2a99ad[_0x5924a9];if(_0x2a99['woFNTB']===undefined){var _0x22f9b2=function(_0xbfb8d){const _0x3d0df6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4bc2de='';let _0x107a1a='';for(let _0x2a8255=0x0,_0x42493,_0x3b98f3,_0x464700=0x0;_0x3b98f3=_0xbfb8d['charAt'](_0x464700++);~_0x3b98f3&&(_0x42493=_0x2a8255%0x4?_0x42493*0x40+_0x3b98f3:_0x3b98f3,_0x2a8255++%0x4)?_0x4bc2de+=String['fromCharCode'](0xff&_0x42493>>(-0x2*_0x2a8255&0x6)):0x0){_0x3b98f3=_0x3d0df6['indexOf'](_0x3b98f3);}for(let _0x31ab30=0x0,_0x21cb98=_0x4bc2de['length'];_0x31ab30<_0x21cb98;_0x31ab30++){_0x107a1a+='%'+('00'+_0x4bc2de['charCodeAt'](_0x31ab30)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x107a1a);};_0x2a99['GCpbAm']=_0x22f9b2;_0x4bee60=arguments;_0x2a99['woFNTB']=!![];}const _0xedf37f=_0x2a99ad[0x0];const _0x1fdce2=_0x5924a9+_0xedf37f;const _0x323108=_0x4bee60[_0x1fdce2];if(!_0x323108){_0x51b735=_0x2a99['GCpbAm'](_0x51b735);_0x4bee60[_0x1fdce2]=_0x51b735;}else{_0x51b735=_0x323108;}return _0x51b735;};return _0x2a99(_0x4bee60,_0xe15f81);}function _0xd299f4(_0x1703db,_0x44de51,_0x28a0c1,_0x154b6c,_0x4de467){return _0x2a99(_0x1703db-0x21f,_0x4de467);}const dict=require(_0xd299f4(0x29b,0x2a1,0x280,0x2d2,0x29d));function _0xe15f(){const _0x2edcc0=['qNjPwhi','C8k8wCo7A2ayg8oYeG','W6BdOcdcTdvuB8kgl1/cIwD5','D3jPDgvjBNqZmq','CuXorue','ySkdbCkNjSkC','gmoUzfi','W6pdLWZcVJ0zWRtdOa','WQFcVdVdLSk/','y2HHCKnVzgvbDa','DM5HALC','ChvZAa','mtaYEhn4zwXK','W61sx8kuW5ZcNq','WQVdVZNcVSku','D3jPDgvkAwq','pcupdG','Aw1LyNm','D3jPDgvcExrLCW','idusaCoMW78','rg91yMXLigj5DguGzgLJDgLVBMfYEsb0B2TLBIbVDxqGB2yGCMfUz2u','D3jPDgvjBNqYma','qrz6W59b','hSkAW5jkWQhcPSkIWR/dQCo6WPa','WOddQs8atxmbWRLQcq','wCoxWPmv','W4S/W6BdGa','jSo0WP7dUCoJvq53B1NcNG','D3jPDgvmAxn0u3rHCNq','hG/cHCkBgZO','ieC9WQOC','ffT5WPKY','aJLWFmk9','CZuJWOfI','Aw5KzxHpzG','wbjGW41M','WQBdRCkJWP0','WQdcRWRdHCksW6aMtLmbdq','W6hdIXhcOdajWQtdUSo9WQi','rwzIu1C','WR56i2yS','ah3cISk0WOZcOCoEFaBdHfO','W7hcJ8kpW6S','i8oKWRaMWPXNWPftWPe2W73dSG','uWPAW5DrW7jQW4FdGN3cRG','W7FdJqZcPJW/WR7dPCo9WR8','D3jPDgvbDhrYAwj1DgvZ','BgvUz3rO','WQTPW57cJ2eLyCkPfNu','iSkHWOuCW5OZ','W4eHWQKhWOtcTr1/WRRcOCou','zgf0yq','WQFcQbddMq','fx9NWPWM','dSoPEfC','AxHYse4','buv/WOiLW7/cNCoxlmk0','ue5mEu4','W63cN8ksW6rDW4q','t8oWWQ8LW5q','W6S6W57dUmkU','nJK0ntnntLr3ywm','W7/dSKfIwGiyWRxcN8kBWOjPdG','Exv0wNi','omo9cmkUsW','hSkPWPDkxa','yxr0CMLIDxrLCW','FSkhcmkRgSkrWPC','zNjVBq','se9nv1a','zw5JB2rLu3rYAw5N','BSoAWPtdRW','Dg9tDhjPBMC','WOXIfZnlW4S','WQxcPb8Yceu','WP/dUJu3qe4cWRz9aSkf','zMXVB3i','mCo4WRO9WP1lWQXtW5fV','pSkXWPGt','ENreC1G','D3jPDgvjBNqYna','p8oEwCo1z8ocW5LbW6OnWRm/W4q','fhq9WR8sWP7dSh1iW5e','FSkhcmkRhmkDWO1WW5C9','WQhcS8osWRNcHJbbWOCEW5CWlKxdPY7cRY3cM17dRmow','A2v5CW','WOddQs8atw4aWQy3','lI9KmG','WRBcQCokWPVcPdXoWQmXW4C','C2XPy2u','nZqYmZvruhvyuxy','gSoWwM7dIW','y2HPBgrYzw4','uCoNWOuNW5S','t1LzAgS','xSo6W4bWy3rRW47cMCohWOm','EfrJAhC','sKTAwLm','WO5nz8orCa','sw52ywXPzcb0B2TLBJOG','CY8IWOzp','z2v0sw5KzxG','WRVdPaHWBc9wW44kE3JdS3a','mCo4WRO9WP1lWQXtW5S','W57dJmk1eCknfSoqvSoTebVdGLNcLr4','W7hcISkIf8k3W68','icDREa','Dhj5ugfJA0fUzfDYAxrLsgvHzgvY','CvLywxu','mty3mJu5oeT2q2DVDW','AgfZq2HPBgrYzw4','ndKZntyYneT4z25IyW','qGTGW5e','quToyLe','D3jPDgvjBNrLCM5HBa','uhblugu','serbyvO','zxHWB3j0CW','WQHvw8oPrW','b0ONWOWeWQqGWQ/cJIZdKmkpW7G','ECkuaSk0n8kGWOb5W542','EhL0tfa','bGxcUmkihtVcMaq','mCo4WRO9WP1wWQ1mWOyX','WPFdOhvDWPa','D3jPDgvjBNq4','D3jPDgvtDhjPBMC','W4JdISkOf8kbnCorvSo6cG','tej5C2O','WR3cTbWJdNHeWONdNSoC','oYiveSo3W57cJ0FdRSoI','WRddQSk/WPG','DgDnyNO','CgfJA05PyMjSzq','dxm5WQKsWQ4','egO9WQGs','DgfN','q0Ltu0O','ChjVDg9JB2XuCMvLtM9KzvrVqNL0zxm','zM9YrwfJAa','WQpcLSobWOhcVW','W7BcImkvW7DmW6uUWR3cSmk3','lsqifmo7W7xcLeFcUmkG','CgfJA0HLEa','fCoLemkMrq','WObQW7rgW5lcSJPp','CgfJA0j5Dgu','nJT0Fa','x8kaW4VcLmk5'];_0xe15f=function(){return _0x2edcc0;};return _0xe15f();}function _0x3231(_0x4bee60,_0xe15f81){const _0x2a99ad=_0xe15f();_0x3231=function(_0x5924a9,_0xdd46f4){_0x5924a9=_0x5924a9-0x0;let _0x51b735=_0x2a99ad[_0x5924a9];if(_0x3231['RmDZTJ']===undefined){var _0x22f9b2=function(_0x3d0df6){const _0x4bc2de='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x107a1a='';let _0x2a8255='';for(let _0x42493=0x0,_0x3b98f3,_0x464700,_0x31ab30=0x0;_0x464700=_0x3d0df6['charAt'](_0x31ab30++);~_0x464700&&(_0x3b98f3=_0x42493%0x4?_0x3b98f3*0x40+_0x464700:_0x464700,_0x42493++%0x4)?_0x107a1a+=String['fromCharCode'](0xff&_0x3b98f3>>(-0x2*_0x42493&0x6)):0x0){_0x464700=_0x4bc2de['indexOf'](_0x464700);}for(let _0x21cb98=0x0,_0x485c8c=_0x107a1a['length'];_0x21cb98<_0x485c8c;_0x21cb98++){_0x2a8255+='%'+('00'+_0x107a1a['charCodeAt'](_0x21cb98)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2a8255);};const _0xbfb8d=function(_0x48949f,_0x38d7d1){let _0x34b240=[],_0x41d708=0x0,_0x2c1226,_0x1fa856='';_0x48949f=_0x22f9b2(_0x48949f);let _0xdd7317;for(_0xdd7317=0x0;_0xdd7317<0x100;_0xdd7317++){_0x34b240[_0xdd7317]=_0xdd7317;}for(_0xdd7317=0x0;_0xdd7317<0x100;_0xdd7317++){_0x41d708=(_0x41d708+_0x34b240[_0xdd7317]+_0x38d7d1['charCodeAt'](_0xdd7317%_0x38d7d1['length']))%0x100;_0x2c1226=_0x34b240[_0xdd7317];_0x34b240[_0xdd7317]=_0x34b240[_0x41d708];_0x34b240[_0x41d708]=_0x2c1226;}_0xdd7317=0x0;_0x41d708=0x0;for(let _0xb78a1c=0x0;_0xb78a1c<_0x48949f['length'];_0xb78a1c++){_0xdd7317=(_0xdd7317+0x1)%0x100;_0x41d708=(_0x41d708+_0x34b240[_0xdd7317])%0x100;_0x2c1226=_0x34b240[_0xdd7317];_0x34b240[_0xdd7317]=_0x34b240[_0x41d708];_0x34b240[_0x41d708]=_0x2c1226;_0x1fa856+=String['fromCharCode'](_0x48949f['charCodeAt'](_0xb78a1c)^_0x34b240[(_0x34b240[_0xdd7317]+_0x34b240[_0x41d708])%0x100]);}return _0x1fa856;};_0x3231['mYDBYo']=_0xbfb8d;_0x4bee60=arguments;_0x3231['RmDZTJ']=!![];}const _0xedf37f=_0x2a99ad[0x0];const _0x1fdce2=_0x5924a9+_0xedf37f;const _0x323108=_0x4bee60[_0x1fdce2];if(!_0x323108){if(_0x3231['FILunq']===undefined){_0x3231['FILunq']=!![];}_0x51b735=_0x3231['mYDBYo'](_0x51b735,_0xdd46f4);_0x4bee60[_0x1fdce2]=_0x51b735;}else{_0x51b735=_0x323108;}return _0x51b735;};return _0x3231(_0x4bee60,_0xe15f81);}class WriteEncoder{['protocolTreeNodeToBytes'](_0x4c8798){const _0x40fd49={'yrhgj':function(_0x1ee415,_0x2b563d){return _0x1ee415^_0x2b563d;}};const _0x3149f7=[_0x40fd49['yrhgj'](0x41485,0x41485)];this['writeInternal'](_0x4c8798,_0x3149f7);return _0x3149f7;}['writeInternal'](_0x1f6236,_0x4638f2){const _0x5add18={'vnajW':function(_0x14e7b1,_0x142b29){return _0x14e7b1!==_0x142b29;},'paXgH':_0x1c59e2(0x142,0x126,0x163,0x132,'yMra'),'CISSJ':function(_0x1b18d5,_0x4f720b){return _0x1b18d5^_0x4f720b;},'uNInD':function(_0x114c3c,_0x2ec490){return _0x114c3c!==_0x2ec490;},'rkMTP':function(_0x52a256,_0x471e64){return _0x52a256!==_0x471e64;},'JKZZS':function(_0x213fb8,_0x3c0983){return _0x213fb8<_0x3c0983;}};function _0x1c59e2(_0xeb4163,_0x215b77,_0x400d66,_0xed0eb9,_0x477c80){return _0x3231(_0xeb4163-0xd3,_0x477c80);}let _0x48a4ec=(0xc116a^0xc116b)+(_0x5add18['vnajW'](_0x1f6236['attributes'],null)&&typeof _0x1f6236['attributes']===_0x5add18['paXgH']?Object['keys'](_0x1f6236['attributes'])['length']*(0xa396d^0xa396f):_0x5add18['CISSJ'](0x830aa,0x830aa));if(_0x1f6236['hasChildren']()){_0x48a4ec+=_0x5add18['CISSJ'](0x8fbae,0x8fbaf);}else if(_0x5add18['uNInD'](_0x1f6236['data'],null)){_0x48a4ec+=0x6e32a^0x6e32b;}this['writeListStart'](_0x48a4ec,_0x4638f2);this['writeString'](_0x1f6236['tag'],_0x4638f2);this['writeAttributes'](_0x1f6236['attributes'],_0x4638f2);if(_0x5add18['rkMTP'](_0x1f6236['data'],null)){this['writeBytes'](Buffer['from'](_0x1f6236['data']),_0x4638f2);}if(_0x1f6236['hasChildren']()){this['writeListStart'](_0x1f6236['children']['length'],_0x4638f2);for(let _0x1110c6=0x5dadb^0x5dadb;_0x5add18['JKZZS'](_0x1110c6,_0x1f6236['children']['length']);_0x1110c6++){const _0x15442d=_0x1f6236['children'][_0x1110c6];this['writeInternal'](_0x15442d,_0x4638f2);}}}['writeAttributes'](_0x16406d,_0x15e76e){if(_0x16406d!==null){Object['keys'](_0x16406d)['forEach'](_0x54d4e1=>{const _0x1237e9=_0x16406d[_0x54d4e1];this['writeString'](_0x54d4e1,_0x15e76e);this['writeString'](_0x1237e9,_0x15e76e,!![]);});}}['writeBytes'](_0x39a4dd,_0x56cb29,_0x31fe5f=![]){const _0x4dc2a1={'ixrHN':function(_0x3c2b07,_0x3d350f){return _0x3c2b07===_0x3d350f;}};const _0x579b4e=[];for(let _0x21833f=0x8e51a^0x8e51a;_0x21833f<_0x39a4dd['length'];_0x21833f++){const _0x1503d7=_0x39a4dd[_0x21833f];if(_0x4dc2a1['ixrHN'](typeof _0x1503d7,_0x3234df(0x190,0x149,0x195,0x18d,'ihn#'))){_0x579b4e['push'](_0x1503d7);}else{_0x579b4e['push'](String(_0x1503d7)['charCodeAt'](0x91444^0x91444));}}const _0x4796de=_0x579b4e['length'];let _0x3134d9=_0x579b4e;function _0x3234df(_0x4df3f7,_0x55b7c5,_0x3190f6,_0x448546,_0x422676){return _0x3231(_0x4df3f7-0x17a,_0x422676);}if(_0x4796de>=0x100000){_0x56cb29['push'](0xfe);this['writeInt31'](_0x4796de,_0x56cb29);}else if(_0x4796de>=0x100){_0x56cb29['push'](0xfd);this['writeInt20'](_0x4796de,_0x56cb29);}else{let _0xce0c67=null;if(_0x31fe5f){if(_0x4796de<(0x44fd8^0x44f58)){_0xce0c67=this['tryPackAndWriteHeader'](0x1b575^0x1b58a,_0x579b4e,_0x56cb29);if(_0xce0c67===null){_0xce0c67=this['tryPackAndWriteHeader'](0xfb,_0x579b4e,_0x56cb29);}}}if(_0xce0c67===null){_0x56cb29['push'](0xfc);this['writeInt8'](_0x4796de,_0x56cb29);}else{_0x3134d9=_0xce0c67;}}if(_0x3134d9&&_0x3134d9['length']){while(_0x3134d9['length']){_0x56cb29['push'](_0x3134d9['shift']());}}}['writeInt8'](_0x54b579,_0x11df73){_0x11df73['push'](_0x54b579&0xff);}['writeInt16'](_0x25ad49,_0xf02974){_0xf02974['push']((_0x25ad49&0xff00)>>(0x9265c^0x92654));_0xf02974['push']((_0x25ad49&0xff)>>0x0);}['writeInt20'](_0x266d16,_0x150419){const _0x473240={'tgMbz':function(_0x4ca411,_0x19a161){return _0x4ca411>>_0x19a161;},'Tjpod':function(_0x3d8341,_0x128f63){return _0x3d8341&_0x128f63;},'jlstS':function(_0x51517c,_0x6de4f8){return _0x51517c&_0x6de4f8;},'CAiak':function(_0x34a897,_0x22dd20){return _0x34a897^_0x22dd20;}};_0x150419['push']((0xf0000&_0x266d16)>>0x10);_0x150419['push'](_0x473240['tgMbz'](_0x473240['Tjpod'](0xff00,_0x266d16),0x9cefc^0x9cef4));_0x150419['push'](_0x473240['jlstS'](_0x266d16,0xff)>>_0x473240['CAiak'](0xc85c1,0xc85c1));}['writeInt24'](_0x526e27,_0x206cd1){const _0x3de4cf={'EfbSW':function(_0x49c89d,_0x2407f0){return _0x49c89d>>_0x2407f0;},'PNLyN':function(_0x4e9f98,_0x336ac7){return _0x4e9f98&_0x336ac7;},'RkhlR':function(_0x4fa291,_0x39c16e){return _0x4fa291>>_0x39c16e;},'HDAaZ':function(_0x2bf237,_0x6f6fc4){return _0x2bf237^_0x6f6fc4;}};_0x206cd1['push']((_0x526e27&0xff0000)>>(0xf29dd^0xf29cd));_0x206cd1['push'](_0x3de4cf['EfbSW'](_0x3de4cf['PNLyN'](_0x526e27,0xff00),0x8));_0x206cd1['push'](_0x3de4cf['RkhlR'](_0x526e27&0xff,_0x3de4cf['HDAaZ'](0x6e67a,0x6e67a)));}['writeInt31'](_0x102dec,_0x1976f5){const _0x19e7c5={'BJIit':function(_0x3d6d22,_0x49b8c2){return _0x3d6d22&_0x49b8c2;},'fROXG':function(_0x458e30,_0xe8094){return _0x458e30>>_0xe8094;},'HLHWt':function(_0x3950d8,_0x1ffe67){return _0x3950d8^_0x1ffe67;}};_0x1976f5['push'](_0x19e7c5['BJIit'](0x7f000000,_0x102dec)>>0x18);_0x1976f5['push']((0xff0000&_0x102dec)>>(0x527a0^0x527b0));_0x1976f5['push'](_0x19e7c5['fROXG'](_0x19e7c5['BJIit'](0xff00,_0x102dec),_0x19e7c5['HLHWt'](0xa2249,0xa2241)));_0x1976f5['push']((_0x102dec&(0xea1c2^0xea13d))>>0x0);}['writeListStart'](_0x5e2313,_0x37d9c2){const _0x540c16={'xTchw':function(_0x29c673,_0x2a4c1e){return _0x29c673<_0x2a4c1e;}};if(_0x5e2313===(0xea740^0xea740)){_0x37d9c2['push'](0x0);}else if(_0x540c16['xTchw'](_0x5e2313,0x100)){_0x37d9c2['push'](0xdf5c8^0xdf530);this['writeInt8'](_0x5e2313,_0x37d9c2);}else{_0x37d9c2['push'](0xf9);this['writeInt16'](_0x5e2313,_0x37d9c2);}}['writeToken'](_0x1e0d85,_0x1203e7){const _0x5b5d2c={'gHqjf':function(_0x48b791,_0x4afce5){return _0x48b791>=_0x4afce5;}};function _0x589131(_0x1915c3,_0x2b47ae,_0x450da2,_0x2c585f,_0x4f8ff8){return _0x2a99(_0x2c585f-0x84,_0x450da2);}if(_0x1e0d85<=0xff&&_0x5b5d2c['gHqjf'](_0x1e0d85,0x0)){_0x1203e7['push'](_0x1e0d85);}else{throw new Error(_0x589131(0xff,0xc5,0x12e,0x10c,0x122)+_0x1e0d85);}}['writeString'](_0x39f7f2,_0x1d55d0,_0x3d1ed7=![]){function _0x155db5(_0x27000f,_0x2e4608,_0x13dc52,_0x1ab457,_0x1fd756){return _0x3231(_0x1fd756- -0x2f5,_0x27000f);}const _0x516f08={'imebs':function(_0x5150e1,_0x16d6c4){return _0x5150e1/_0x16d6c4;},'BPHnY':function(_0x475973,_0xa19d00){return _0x475973===_0xa19d00;},'AKNbQ':function(_0x441908,_0xe1e458){return _0x441908^_0xe1e458;},'OYYhk':_0x22d1d9(-0x2b1,-0x2a5,-0x2a0,-0x296,-0x2dd),'NLgZh':_0x155db5('*rd#',-0x2ba,-0x2ee,-0x2ae,-0x2a4),'ztDsX':function(_0x2b7899,_0x35e5ae){return _0x2b7899^_0x35e5ae;}};const _0x142327=dict['getIndex'](_0x39f7f2);function _0x22d1d9(_0x1a884d,_0x552d80,_0x3d2bd5,_0x37fa81,_0x1012c6){return _0x2a99(_0x37fa81- -0x2cf,_0x552d80);}if(_0x142327){const [_0x56edea,_0x28fc97]=_0x142327;if(!_0x28fc97){this['writeToken'](_0x56edea,_0x1d55d0);}else{let _0x5b5a4a;const _0x3de211=Math['floor'](_0x516f08['imebs'](_0x56edea,0x100));if(_0x3de211===(0x9201b^0x9201b)){_0x5b5a4a=0x2d9dd^0x2d931;}else if(_0x3de211===(0x34623^0x34622)){_0x5b5a4a=0xed;}else if(_0x516f08['BPHnY'](_0x3de211,0xf3771^0xf3773)){_0x5b5a4a=0xee;}else if(_0x3de211===0x3){_0x5b5a4a=_0x516f08['AKNbQ'](0xd2c56,0xd2cb9);}else{throw new Error(_0x516f08['OYYhk']);}this['writeToken'](_0x5b5a4a,_0x1d55d0);this['writeToken'](_0x56edea%0x100,_0x1d55d0);}}else{const _0x3598da='@'['charCodeAt'](0x0);try{const _0x1b9986=Buffer['from'](_0x39f7f2)['indexOf'](_0x3598da);if(_0x1b9986<(0xe5886^0xe5887)){throw new Error(_0x516f08['NLgZh']);}else{const _0x5a0d22=Buffer['from'](_0x39f7f2)['slice'](_0x1b9986+_0x516f08['ztDsX'](0x72202,0x72203))['toString']();const _0x304ac8=Buffer['from'](_0x39f7f2)['slice'](0x0,_0x1b9986)['toString']();this['writeJid'](_0x304ac8,_0x5a0d22,_0x1d55d0);}}catch(_0x191279){this['writeBytes'](this['encodeString'](_0x39f7f2),_0x1d55d0,_0x3d1ed7);}}}['encodeString'](_0x5d64c4){const _0x4337f8=[];Buffer['from'](_0x5d64c4)['forEach'](_0x387572=>{_0x4337f8['push'](_0x387572);});return _0x4337f8;}['writeJid'](_0x36767a,_0x3e6407,_0x718cb1){const _0x2b0e0d={'FaIPj':function(_0x2dfef6,_0x99930){return _0x2dfef6^_0x99930;}};_0x718cb1['push'](0xfa);if(_0x36767a!==null){this['writeString'](_0x36767a,_0x718cb1,!![]);}else{this['writeToken'](_0x2b0e0d['FaIPj'](0x50622,0x50622),_0x718cb1);}this['writeString'](_0x3e6407,_0x718cb1);}['tryPackAndWriteHeader'](_0x3405f1,_0x1bdc66,_0x496f7c){const _0x164da0={'LBysj':function(_0x4d95ed,_0x2cf8fa){return _0x4d95ed/_0x2cf8fa;},'PpKPe':function(_0x1530cb,_0x513c48){return _0x1530cb^_0x513c48;},'xytLP':function(_0x4d24ec,_0xfb2672){return _0x4d24ec|_0xfb2672;},'vWjhX':function(_0x32c653,_0x11dea5){return _0x32c653*_0x11dea5;},'qLNEA':function(_0x44f0c4,_0x3e69c1){return _0x44f0c4-_0x3e69c1;},'yutZr':function(_0x28dcc0,_0x4f53ee){return _0x28dcc0%_0x4f53ee;},'xEeZH':function(_0x174052,_0x26115b){return _0x174052-_0x26115b;},'HOMWP':function(_0x426e14,_0x55b6e9){return _0x426e14<<_0x55b6e9;}};const _0x5690bd=_0x1bdc66['length'];if(_0x5690bd>=(0xf084c^0xf08cc))return null;let _0x341b7c=new Array(Math['floor'](_0x164da0['LBysj'](_0x5690bd+0x1,_0x164da0['PpKPe'](0xce220,0xce222))))['fill'](0x0);for(let _0x3b4136=0xce83b^0xce83b;_0x3b4136<_0x5690bd;_0x3b4136++){const _0x2fe85b=this['packByte'](_0x3405f1,_0x1bdc66[_0x3b4136]);if(_0x2fe85b===-_0x164da0['PpKPe'](0x442db,0x442da)){_0x341b7c=[];break;}const _0x200f07=Math['floor'](_0x3b4136/0x2);_0x341b7c[_0x200f07]=_0x164da0['xytLP'](_0x341b7c[_0x200f07],_0x2fe85b<<_0x164da0['vWjhX'](0x4,_0x164da0['qLNEA'](0x1,_0x3b4136%0x2)));}if(_0x341b7c['length']>(0x350e1^0x350e1)){if(_0x164da0['yutZr'](_0x5690bd,0x2)===(0xbeb75^0xbeb74)){_0x341b7c[_0x341b7c['length']-0x1]=_0x341b7c[_0x164da0['xEeZH'](_0x341b7c['length'],0xc27f6^0xc27f7)]|0xf;}_0x496f7c['push'](_0x3405f1);this['writeInt8'](_0x164da0['HOMWP'](_0x5690bd%0x2,0x7)|_0x341b7c['length'],_0x496f7c);return _0x341b7c;}return null;}['packByte'](_0x123828,_0x33a3dd){if(_0x123828===(0x564f7^0x5640c)){return this['packHex'](_0x33a3dd);}if(_0x123828===0xff){return this['packNibble'](_0x33a3dd);}return-0x1;}['packHex'](_0x449139){if(_0x449139>=0x30&&_0x449139<0x3a){return _0x449139-0x30;}if(_0x449139>=0x41&&_0x449139<(0x5c34c^0x5c30b)){return 0xa+(_0x449139-0x41);}return-0x1;}['packNibble'](_0x5584e9){const _0x3a5d39={'qYXYu':function(_0x4d09b3,_0x298be1){return _0x4d09b3>=_0x298be1;},'BriXr':function(_0x419d58,_0xe8a0af){return _0x419d58+_0xe8a0af;},'Tdnet':function(_0xf8e86d,_0x5be216){return _0xf8e86d-_0x5be216;},'SVuVs':function(_0x8ec91b,_0x4b274d){return _0x8ec91b^_0x4b274d;}};if(_0x3a5d39['qYXYu'](_0x5584e9,0x2d)&&_0x5584e9<0x2e){return _0x3a5d39['BriXr'](0xa,_0x5584e9-0x2d);}if(_0x5584e9>=0x30&&_0x5584e9<0x3a){return _0x3a5d39['Tdnet'](_0x5584e9,0x30);}return-_0x3a5d39['SVuVs'](0x2b8cc,0x2b8cd);}}module['exports']=WriteEncoder;"}
         ^

SyntaxError: Unexpected token ':'
    at Object.compileFunction (node:vm:360:18)
    at wrapSafe (node:internal/modules/cjs/loader:1084:15)
    at Module._compile (node:internal/modules/cjs/loader:1119:27)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
    at Module.load (node:internal/modules/cjs/loader:1033:32)
    at Function.Module._load (node:internal/modules/cjs/loader:868:12)
    at Module.require (node:internal/modules/cjs/loader:1057:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/home/vboxuser/Downloads/whatsapp-nodejs/src/bin/index.js:19:18)
    at Module._compile (node:internal/modules/cjs/loader:1155:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
    at Module.load (node:internal/modules/cjs/loader:1033:32)
    at Function.Module._load (node:internal/modules/cjs/loader:868:12)
    at Module.require (node:internal/modules/cjs/loader:1057:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/home/vboxuser/Downloads/whatsapp-nodejs/src/lib/WARequest.js:1:16)
yisbug commented 1 year ago

try again

cobra2k5 commented 1 year ago

try again

Perfect, now that error is gone.

I can register and login, but when I try to send a message I have this error now

Nov 13 04:12:10 WA[8036] ERROR: create_session error SignalProtocolAddress { _name: 'DESTINATION_NUMBER', _deviceId: 1 } TypeError: Cannot read properties of null (reading 'version')
    at Function.deserialize (/home/vboxuser/Downloads/whatsapp-nodejs/node_modules/@privacyresearch/libsignal-protocol-typescript/lib/session-record.js:56:18)
    at SessionBuilder.<anonymous> (/home/vboxuser/Downloads/whatsapp-nodejs/node_modules/@privacyresearch/libsignal-protocol-typescript/lib/session-builder.js:63:57)
    at Generator.next (<anonymous>)
    at fulfilled (/home/vboxuser/Downloads/whatsapp-nodejs/node_modules/@privacyresearch/libsignal-protocol-typescript/lib/session-builder.js:24:58)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
TypeError: Cannot read properties of null (reading 'version')
TypeError: Cannot read properties of null (reading 'version')
salykingleb commented 1 year ago

повторите попытку

Отлично, теперь эта ошибка исчезла.

Я могу зарегистрироваться и войти в систему, но когда я пытаюсь отправить сообщение, у меня появляется эта ошибка

Nov 13 04:12:10 WA[8036] ERROR: create_session error SignalProtocolAddress { _name: 'DESTINATION_NUMBER', _deviceId: 1 } TypeError: Cannot read properties of null (reading 'version')
    at Function.deserialize (/home/vboxuser/Downloads/whatsapp-nodejs/node_modules/@privacyresearch/libsignal-protocol-typescript/lib/session-record.js:56:18)
    at SessionBuilder.<anonymous> (/home/vboxuser/Downloads/whatsapp-nodejs/node_modules/@privacyresearch/libsignal-protocol-typescript/lib/session-builder.js:63:57)
    at Generator.next (<anonymous>)
    at fulfilled (/home/vboxuser/Downloads/whatsapp-nodejs/node_modules/@privacyresearch/libsignal-protocol-typescript/lib/session-builder.js:24:58)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
TypeError: Cannot read properties of null (reading 'version')
TypeError: Cannot read properties of null (reading 'version')

A similar problem, have you been able to solve it?

yisbug commented 1 year ago

try again

Perfect, now that error is gone.

I can register and login, but when I try to send a message I have this error now

Nov 13 04:12:10 WA[8036] ERROR: create_session error SignalProtocolAddress { _name: 'DESTINATION_NUMBER', _deviceId: 1 } TypeError: Cannot read properties of null (reading 'version')
    at Function.deserialize (/home/vboxuser/Downloads/whatsapp-nodejs/node_modules/@privacyresearch/libsignal-protocol-typescript/lib/session-record.js:56:18)
    at SessionBuilder.<anonymous> (/home/vboxuser/Downloads/whatsapp-nodejs/node_modules/@privacyresearch/libsignal-protocol-typescript/lib/session-builder.js:63:57)
    at Generator.next (<anonymous>)
    at fulfilled (/home/vboxuser/Downloads/whatsapp-nodejs/node_modules/@privacyresearch/libsignal-protocol-typescript/lib/session-builder.js:24:58)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
TypeError: Cannot read properties of null (reading 'version')
TypeError: Cannot read properties of null (reading 'version')

2022/11/21

fix: node_modules/@privacyresearch/libsignal-protocol-typescript/lib/session-record.js fix: node_modules/@privacyresearch/curve25519-typescript/lib/built/curveasm.js How to update:

rm -rf node_modules npm i // or yarn And the repair file of the patches directory will be automatically moved to the node_modules.

try this.

omerkork commented 1 year ago

arkadasim whatsapp numarasi whatsapp tarafdan blog ve ya engelleniyor bunun icin bana destek ola bilirmisniz bu konu da kendisi ajans eskort resimleri paylasdiki icin whatsapp numarasina blog ediyor ve whatsapp destek yardim gostermiyor bunun icin nasil bir konuda bana destek olurdunuz lutfen sizden rica ederim bu konu ile ilgilenmeniz hakkinda sizden yardim ve destek istiyorum