superchats
Version:
SuperChats is a premium library with unique features that control Whatsapp functions. With Superchats you can build service bots, multiservice chats or any system that uses whatsapp
1 lines • 3.4 kB
JavaScript
const a36_0x5aa479=a36_0x5c3b;function a36_0x5c3b(_0x34dd18,_0x1d7a8b){const _0x3281bb=a36_0x3281();return a36_0x5c3b=function(_0x5c3b97,_0xee147e){_0x5c3b97=_0x5c3b97-0xce;let _0x9220a4=_0x3281bb[_0x5c3b97];return _0x9220a4;},a36_0x5c3b(_0x34dd18,_0x1d7a8b);}function a36_0x3281(){const _0xd5a182=['642744LECCFd','toJSON','345012NQBbNT','signingKey','571970xmhpwZ','56hgTapN','exports','532xWsPDZ','SENDERKEY_DISTRIBUTION_TYPE','./protobufs','SenderKeyDistributionMessage','string','getId','getSignatureKey','chainKey','getType','create','base64','458649SkRVCH','2858570exrLJm','serialize','serialized','iteration','from','15CjBmKj','getIteration','1045722ZfPaSD','566XUSOwR','concat','signatureKey','CURRENT_VERSION','intsToByteHighAndLow'];a36_0x3281=function(){return _0xd5a182;};return a36_0x3281();}(function(_0x17e81f,_0x548ff7){const _0x3c7414=a36_0x5c3b,_0x290290=_0x17e81f();while(!![]){try{const _0x1c6317=parseInt(_0x3c7414(0xe9))/0x1*(parseInt(_0x3c7414(0xdd))/0x2)+parseInt(_0x3c7414(0xdc))/0x3+parseInt(_0x3c7414(0xe4))/0x4*(-parseInt(_0x3c7414(0xda))/0x5)+parseInt(_0x3c7414(0xe2))/0x6+-parseInt(_0x3c7414(0xe6))/0x7+parseInt(_0x3c7414(0xe7))/0x8*(-parseInt(_0x3c7414(0xd4))/0x9)+parseInt(_0x3c7414(0xd5))/0xa;if(_0x1c6317===_0x548ff7)break;else _0x290290['push'](_0x290290['shift']());}catch(_0xd20ca2){_0x290290['push'](_0x290290['shift']());}}}(a36_0x3281,0x2f963));const CiphertextMessage=require('./ciphertext_message'),protobufs=require(a36_0x5aa479(0xeb));class SenderKeyDistributionMessage extends CiphertextMessage{constructor(_0x11e0c2=null,_0x18271c=null,_0x36b8a0=null,_0x24395b=null,_0x2149a9=null){const _0x2c4ebc=a36_0x5aa479;super();if(_0x2149a9)try{const _0x112a00=_0x2149a9[0x0],_0x4eb61b=_0x2149a9['slice'](0x1),_0x29c8e2=protobufs[_0x2c4ebc(0xec)]['decode'](_0x4eb61b)[_0x2c4ebc(0xe3)]();this[_0x2c4ebc(0xd7)]=_0x2149a9,this['id']=_0x29c8e2['id'],this[_0x2c4ebc(0xd8)]=_0x29c8e2[_0x2c4ebc(0xd8)],this[_0x2c4ebc(0xd0)]=_0x29c8e2[_0x2c4ebc(0xd0)],this[_0x2c4ebc(0xdf)]=_0x29c8e2[_0x2c4ebc(0xe5)];}catch(_0x21ea0c){throw new Error(_0x21ea0c);}else{const _0x31f237=this[_0x2c4ebc(0xe1)](this[_0x2c4ebc(0xe0)],this[_0x2c4ebc(0xe0)]);this['id']=_0x11e0c2,this[_0x2c4ebc(0xd8)]=_0x18271c,this[_0x2c4ebc(0xd0)]=_0x36b8a0,this[_0x2c4ebc(0xdf)]=_0x24395b;const _0x57931a=protobufs[_0x2c4ebc(0xec)]['encode'](protobufs[_0x2c4ebc(0xec)][_0x2c4ebc(0xd2)]({'id':_0x11e0c2,'iteration':_0x18271c,'chainKey':_0x36b8a0,'signingKey':this[_0x2c4ebc(0xdf)]}))['finish']();this[_0x2c4ebc(0xd7)]=Buffer[_0x2c4ebc(0xde)]([Buffer[_0x2c4ebc(0xd9)]([_0x31f237]),_0x57931a]);}}[a36_0x5aa479(0xe1)](_0x160c73,_0x1ec955){return((_0x160c73<<0x4|_0x1ec955)&0xff)%0x100;}[a36_0x5aa479(0xd6)](){const _0x2b3eba=a36_0x5aa479;return this[_0x2b3eba(0xd7)];}[a36_0x5aa479(0xd1)](){const _0x21d46a=a36_0x5aa479;return this[_0x21d46a(0xea)];}[a36_0x5aa479(0xdb)](){const _0x1d995a=a36_0x5aa479;return this[_0x1d995a(0xd8)];}['getChainKey'](){const _0x15ce01=a36_0x5aa479;return typeof this[_0x15ce01(0xd0)]===_0x15ce01(0xed)?Buffer[_0x15ce01(0xd9)](this[_0x15ce01(0xd0)],_0x15ce01(0xd3)):this[_0x15ce01(0xd0)];}[a36_0x5aa479(0xcf)](){const _0x3f0a4b=a36_0x5aa479;return typeof this[_0x3f0a4b(0xdf)]===_0x3f0a4b(0xed)?Buffer[_0x3f0a4b(0xd9)](this[_0x3f0a4b(0xdf)],_0x3f0a4b(0xd3)):this['signatureKey'];}[a36_0x5aa479(0xce)](){return this['id'];}}module[a36_0x5aa479(0xe8)]=SenderKeyDistributionMessage;