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.31 kB
JavaScript
const a36_0x3cd141=a36_0x3e93;function a36_0x298b(){const _0x3c8234=['434600iTuzYm','string','5613680WLQpXl','intsToByteHighAndLow','signatureKey','SENDERKEY_DISTRIBUTION_TYPE','exports','serialized','5712Jcczan','getIteration','260421FEAbiy','7390PiIEnm','4857EHWVzv','serialize','getChainKey','getId','SenderKeyDistributionMessage','440AqmRMw','25227zKiuav','2000jMPSZQ','from','signingKey','./ciphertext_message','chainKey','concat','base64','create','finish','CURRENT_VERSION','615807NkscBt'];a36_0x298b=function(){return _0x3c8234;};return a36_0x298b();}(function(_0x38ecc6,_0xe0dd99){const _0x2d4ee1=a36_0x3e93,_0x53a763=_0x38ecc6();while(!![]){try{const _0x59a575=-parseInt(_0x2d4ee1(0x98))/0x1+parseInt(_0x2d4ee1(0x99))/0x2+parseInt(_0x2d4ee1(0x87))/0x3*(-parseInt(_0x2d4ee1(0x8c))/0x4)+parseInt(_0x2d4ee1(0x8e))/0x5*(-parseInt(_0x2d4ee1(0x83))/0x6)+-parseInt(_0x2d4ee1(0x85))/0x7+-parseInt(_0x2d4ee1(0x9b))/0x8+-parseInt(_0x2d4ee1(0x8d))/0x9*(-parseInt(_0x2d4ee1(0x86))/0xa);if(_0x59a575===_0xe0dd99)break;else _0x53a763['push'](_0x53a763['shift']());}catch(_0x273297){_0x53a763['push'](_0x53a763['shift']());}}}(a36_0x298b,0x5b943));const CiphertextMessage=require(a36_0x3cd141(0x91)),protobufs=require('./protobufs');class SenderKeyDistributionMessage extends CiphertextMessage{constructor(_0x5a57bb=null,_0x43bb69=null,_0x432d01=null,_0x226d49=null,_0x31a8c0=null){const _0x58f8aa=a36_0x3cd141;super();if(_0x31a8c0)try{const _0x47cdc2=_0x31a8c0[0x0],_0x526b53=_0x31a8c0['slice'](0x1),_0x798fc3=protobufs['SenderKeyDistributionMessage']['decode'](_0x526b53)['toJSON']();this[_0x58f8aa(0x82)]=_0x31a8c0,this['id']=_0x798fc3['id'],this['iteration']=_0x798fc3['iteration'],this['chainKey']=_0x798fc3['chainKey'],this[_0x58f8aa(0x9d)]=_0x798fc3[_0x58f8aa(0x90)];}catch(_0x48afac){throw new Error(_0x48afac);}else{const _0x4ea75a=this[_0x58f8aa(0x9c)](this[_0x58f8aa(0x97)],this[_0x58f8aa(0x97)]);this['id']=_0x5a57bb,this['iteration']=_0x43bb69,this[_0x58f8aa(0x92)]=_0x432d01,this[_0x58f8aa(0x9d)]=_0x226d49;const _0x33fd18=protobufs[_0x58f8aa(0x8b)]['encode'](protobufs[_0x58f8aa(0x8b)][_0x58f8aa(0x95)]({'id':_0x5a57bb,'iteration':_0x43bb69,'chainKey':_0x432d01,'signingKey':this['signatureKey']}))[_0x58f8aa(0x96)]();this[_0x58f8aa(0x82)]=Buffer[_0x58f8aa(0x93)]([Buffer[_0x58f8aa(0x8f)]([_0x4ea75a]),_0x33fd18]);}}[a36_0x3cd141(0x9c)](_0x414f57,_0xc52063){return((_0x414f57<<0x4|_0xc52063)&0xff)%0x100;}[a36_0x3cd141(0x88)](){const _0x4a4df4=a36_0x3cd141;return this[_0x4a4df4(0x82)];}['getType'](){const _0x18e74d=a36_0x3cd141;return this[_0x18e74d(0x9e)];}[a36_0x3cd141(0x84)](){return this['iteration'];}[a36_0x3cd141(0x89)](){const _0x5172af=a36_0x3cd141;return typeof this['chainKey']===_0x5172af(0x9a)?Buffer[_0x5172af(0x8f)](this[_0x5172af(0x92)],_0x5172af(0x94)):this[_0x5172af(0x92)];}['getSignatureKey'](){const _0xede70b=a36_0x3cd141;return typeof this[_0xede70b(0x9d)]===_0xede70b(0x9a)?Buffer['from'](this[_0xede70b(0x9d)],_0xede70b(0x94)):this[_0xede70b(0x9d)];}[a36_0x3cd141(0x8a)](){return this['id'];}}function a36_0x3e93(_0x547375,_0x3cef8a){const _0x298b47=a36_0x298b();return a36_0x3e93=function(_0x3e932,_0x3bc0d0){_0x3e932=_0x3e932-0x81;let _0x10907f=_0x298b47[_0x3e932];return _0x10907f;},a36_0x3e93(_0x547375,_0x3cef8a);}module[a36_0x3cd141(0x81)]=SenderKeyDistributionMessage;