-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
9 lines (9 loc) · 30 KB
/
index.js
1
2
3
4
5
6
7
8
9
/**
* Base By Dika Ardnt.
* Recode By GuaAbuzz
* Kalau Mau Recode, Edit Aja Di confiq.js
* Script No enc? DiJual 20k No Enc
* Contact Me On wa.me/6289636827082
* Follow https://github.com/Abuzzpoet
*/
const _0x41891f=_0x1ee8;(function(_0x11e8ac,_0x4cb019){const _0x12882b=_0x1ee8,_0x4aeef4=_0x11e8ac();while(!![]){try{const _0x335e1f=-parseInt(_0x12882b(0x224))/0x1*(parseInt(_0x12882b(0x26d))/0x2)+-parseInt(_0x12882b(0x277))/0x3+parseInt(_0x12882b(0x208))/0x4+-parseInt(_0x12882b(0x1f2))/0x5+parseInt(_0x12882b(0x255))/0x6+parseInt(_0x12882b(0x205))/0x7+parseInt(_0x12882b(0x1eb))/0x8;if(_0x335e1f===_0x4cb019)break;else _0x4aeef4['push'](_0x4aeef4['shift']());}catch(_0x18470c){_0x4aeef4['push'](_0x4aeef4['shift']());}}}(_0x5e1f,0x77ccb),require(_0x41891f(0x23e)));const {default:hisokaConnect,useSingleFileAuthState,DisconnectReason,fetchLatestBaileysVersion,generateForwardMessageContent,prepareWAMessageMedia,generateWAMessageFromContent,generateMessageID,downloadContentFromMessage,makeInMemoryStore,jidDecode,proto}=require(_0x41891f(0x278)),{state,saveState}=useSingleFileAuthState('./'+sessionName+_0x41891f(0x1cd)),pino=require(_0x41891f(0x20a)),{Boom}=require(_0x41891f(0x235)),fs=require('fs'),yargs=require('yargs/yargs'),chalk=require('chalk'),FileType=require('file-type'),path=require(_0x41891f(0x1e1)),_=require('lodash'),axios=require(_0x41891f(0x24e)),PhoneNumber=require(_0x41891f(0x20f)),{imageToWebp,videoToWebp,writeExifImg,writeExifVid}=require(_0x41891f(0x226)),{smsg,isUrl,generateMessageTag,getBuffer,getSizeMedia,fetchJson,await,sleep}=require(_0x41891f(0x229));var low;try{low=require(_0x41891f(0x234));}catch(_0x52d11d){low=require(_0x41891f(0x26f));}const {Low,JSONFile}=low,mongoDB=require(_0x41891f(0x281));global[_0x41891f(0x1fc)]=(_0x1c7186,_0x1df938='/',_0x1a9b81={},_0x176493)=>(_0x1c7186 in global['APIs']?global[_0x41891f(0x269)][_0x1c7186]:_0x1c7186)+_0x1df938+(_0x1a9b81||_0x176493?'?'+new URLSearchParams(Object[_0x41891f(0x26e)]({..._0x1a9b81,..._0x176493?{[_0x176493]:global[_0x41891f(0x1d8)][_0x1c7186 in global[_0x41891f(0x269)]?global[_0x41891f(0x269)][_0x1c7186]:_0x1c7186]}:{}})):'');const store=makeInMemoryStore({'logger':pino()[_0x41891f(0x218)]({'level':_0x41891f(0x27a),'stream':_0x41891f(0x219)})});function _0x5e1f(){const _0xcfb567=['push','BEGIN:VCARD\x0aVERSION:3.0\x0aN:','Unknown\x20DisconnectReason:\x20','groups.update','awesome-phonenumber','restartRequired','content-type','https://shortlink.hisokaarridho.my.id/rg1oT','split','includes','ephemeralMessage','replace','connectionClosed','child','store','GuaAbuzz\x20Multi\x20Device','loadDatabase','Group\x20Settings\x20Change\x20Message','matchAll','READ','send5ButMsg','BAE5','sendMedia','call-creator','logout','450710OmmMjF','sendImage','./lib/exif','tag','fromMe','./lib/myfunc','connection.update','user','connectionLost','bind','data','writeFile','block','sendMessage','「\x20Group\x20Settings\x20Change\x20」\x0a\x0aGroup\x20telah\x20ditutup\x20oleh\x20admin,\x20Sekarang\x20hanya\x20admin\x20yang\x20dapat\x20mengirim\x20pesan\x20!','\x0aitem1.X-ABLabel:Ponsel\x0aitem2.EMAIL;type=INTERNET:[email protected]\x0aitem2.X-ABLabel:Email\x0aitem3.URL:https://tiktok.com/@guaabuzz\x0aitem3.X-ABLabel:TikTok\x0aitem4.ADR:;;Indonesia;;;;\x0aitem4.X-ABLabel:Region\x0aEND:VCARD','lowdb','@hapi/boom','decodeJid','https://i0.wp.com/www.gambarunik.id/wp-content/uploads/2019/06/Top-Gambar-Foto-Profil-Kosong-Lucu-Tergokil-.jpg','from','promises','「\x20Group\x20Settings\x20Change\x20」\x0a\x0aInfo\x20group\x20telah\x20dibatasi,\x20Sekarang\x20hanya\x20admin\x20yang\x20dapat\x20mengedit\x20info\x20group\x20!','downloadMediaMessage','viewOnceMessage','gif','./config','concat','base64','serializeM','set','\x0aFN:','read','Restart\x20Required,\x20Restarting...','send5ButImg','server','announce','Sistem\x20otomatis\x20block!\x0aJangan\x20menelpon\x20bot!\x0aSilahkan\x20Hubungi\x20Owner\x20Untuk\x20Dibuka\x20!','status@broadcast','[email protected]','mimetype','resolve','axios','readFileSync','creds.update','end','profilePictureUrl','timedOut','「\x20Group\x20Settings\x20Change\x20」\x0a\x0aGroup\x20Subject\x20telah\x20diganti\x20menjadi\x20*','3785064tEpneL','message','content','caption','remoteJid','isBuffer','CB:call','@broadcast','\x20To\x20Group\x20','downloadAndSaveMediaMessage','sendListMsg','Connection\x20Lost\x20from\x20Server,\x20reconnecting...','contextInfo','attrs','map','audio/mpeg','participant','contacts.update','length','WhatsApp','APIs','fromObject','join','subject','2zJejeS','entries','./lib/lowdb','loggedOut','key','msg','viewOnce','Connection\x20Replaced,\x20Another\x20New\x20Session\x20Opened,\x20Please\x20Close\x20Current\x20Session\x20First','updateBlockStatus','DATABASE','980409iWVthM','@adiwajshing/baileys','videoMessage','silent','imageMessage','ext','document','restrict','cMod','「\x20Group\x20Settings\x20Change\x20」\x0a\x0aGroup\x20telah\x20dibuka\x20oleh\x20admin,\x20Sekarang\x20peserta\x20dapat\x20mengirim\x20pesan\x20!','./lib/mongoDB','messages','readViewOnce','name','\x20👋','contacts','video/mp4','@s.whatsapp.net','output','application/pdf','Sayonaraa\x20@','utf-8','../src/','participants','audio','write','relayMessage','Message','author','video','sendVideo','image','messages.upsert','parse','asDocument','setStatus','close','sendImageAsSticker','.json','add','log','public','endsWith','query','「\x20Group\x20Settings\x20Change\x20」\x0a\x0aInfo\x20group\x20telah\x20dibuka,\x20Sekarang\x20peserta\x20dapat\x20mengedit\x20info\x20group\x20!','Connection\x20TimedOut,\x20Reconnecting...','headers','image/webp','action','APIKeys','waUploadToServer','alloc','Welcome\x20@','owner','Device\x20Logged\x20Out,\x20Please\x20Scan\x20Again\x20And\x20Run.','existsSync','sendVideoAsSticker','ignore','path','cache','send5ButGif','toString','sendContact','unlink','json','Connected...','fromBuffer','error','2886320SmATPt','notify','test','string','mtype','badSession','exitProcess','3746275JhGhhf','status','groupMetadata','text','asSticker','watchFile','chain','categories','1.0.0','international','api','keys','Connection\x20closed,\x20reconnecting....','connectionReplaced','@g.us','packname','writeFileSync','getNumber','.bin','5325096yiAWHJ','getName','sendTextWithMentions','1060420RQKvMx','unwatchFile','pino'];_0x5e1f=function(){return _0xcfb567;};return _0x5e1f();}global['opts']=new Object(yargs(process['argv']['slice'](0x2))[_0x41891f(0x1f1)](![])['parse']()),global['db']=new Low(/https?:\/\//[_0x41891f(0x1ed)](opts['db']||'')?new cloudDBAdapter(opts['db']):/mongodb/[_0x41891f(0x1ed)](opts['db'])?new mongoDB(opts['db']):new JSONFile('src/database.json')),global[_0x41891f(0x276)]=global['db'],global[_0x41891f(0x21b)]=async function loadDatabase(){const _0x5cac3a=_0x41891f;if(global['db'][_0x5cac3a(0x21e)])return new Promise(_0xab0188=>setInterval(function(){const _0xe906a8=_0x5cac3a;!global['db'][_0xe906a8(0x21e)]?(clearInterval(this),_0xab0188(global['db']==null?global[_0xe906a8(0x21b)]():global['db'])):null;},0x1*0x3e8));if(global['db']!==null)return;global['db']['READ']=!![],await global['db'][_0x5cac3a(0x244)](),global['db'][_0x5cac3a(0x21e)]=![],global['db']={'users':{},'chats':{},'database':{},'game':{},'settings':{},'others':{},'sticker':{},...global['db']||{}},global['db'][_0x5cac3a(0x1f8)]=_['chain'](global['db']);},loadDatabase();if(global['db'])setInterval(async()=>{const _0x40dbf0=_0x41891f;if(global['db'][_0x40dbf0(0x22e)])await global['db'][_0x40dbf0(0x1c0)]();},0x1e*0x3e8);async function startHisoka(){const _0x1cc447=_0x41891f,_0x5e24de=hisokaConnect({'logger':pino({'level':_0x1cc447(0x27a)}),'printQRInTerminal':!![],'browser':[_0x1cc447(0x21a),'Safari',_0x1cc447(0x1fa)],'auth':state});return store[_0x1cc447(0x22d)](_0x5e24de['ev']),_0x5e24de['ws']['on'](_0x1cc447(0x25b),async _0x2f6164=>{const _0xbfb7d9=_0x1cc447,_0x18b58a=_0x2f6164[_0xbfb7d9(0x257)][0x0][_0xbfb7d9(0x262)][_0xbfb7d9(0x222)];if(_0x2f6164['content'][0x0][_0xbfb7d9(0x227)]=='offer'){let _0xb41a22=await _0x5e24de[_0xbfb7d9(0x1e5)](_0x18b58a,global[_0xbfb7d9(0x1dc)]);_0x5e24de['sendMessage'](_0x18b58a,{'text':_0xbfb7d9(0x249)},{'quoted':_0xb41a22}),await sleep(0x1f40),await _0x5e24de[_0xbfb7d9(0x275)](_0x18b58a,_0xbfb7d9(0x230));}}),_0x5e24de['ev']['on'](_0x1cc447(0x1c7),async _0x357c5e=>{const _0x500b85=_0x1cc447;try{mek=_0x357c5e[_0x500b85(0x282)][0x0];if(!mek[_0x500b85(0x256)])return;mek[_0x500b85(0x256)]=Object['keys'](mek[_0x500b85(0x256)])[0x0]===_0x500b85(0x215)?mek[_0x500b85(0x256)][_0x500b85(0x215)][_0x500b85(0x256)]:mek[_0x500b85(0x256)];if(mek['key']&&mek['key']['remoteJid']===_0x500b85(0x24a))return;if(!_0x5e24de[_0x500b85(0x1d0)]&&!mek[_0x500b85(0x271)][_0x500b85(0x228)]&&_0x357c5e['type']===_0x500b85(0x1ec))return;if(mek[_0x500b85(0x271)]['id']['startsWith'](_0x500b85(0x220))&&mek['key']['id'][_0x500b85(0x267)]===0x10)return;m=smsg(_0x5e24de,mek,store),require('./hisoka')(_0x5e24de,m,_0x357c5e,store);}catch(_0x36e7a2){console['log'](_0x36e7a2);}}),_0x5e24de['ev']['on'](_0x1cc447(0x20e),async _0x3d79d9=>{const _0x3293a3=_0x1cc447;try{ppgc=await _0x5e24de['profilePictureUrl'](_0x3d79d9[0x0]['id'],_0x3293a3(0x1c6));}catch{ppgc=_0x3293a3(0x212);}let _0x4e1935={'url':ppgc};if(_0x3d79d9[0x0][_0x3293a3(0x248)]==!![])_0x5e24de[_0x3293a3(0x246)](_0x3d79d9[0x0]['id'],_0x3293a3(0x232),_0x3293a3(0x21c),_0x4e1935,[]);else{if(_0x3d79d9[0x0][_0x3293a3(0x248)]==![])_0x5e24de[_0x3293a3(0x246)](_0x3d79d9[0x0]['id'],_0x3293a3(0x280),_0x3293a3(0x21c),_0x4e1935,[]);else{if(_0x3d79d9[0x0]['restrict']==!![])_0x5e24de['send5ButImg'](_0x3d79d9[0x0]['id'],_0x3293a3(0x23a),_0x3293a3(0x21c),_0x4e1935,[]);else _0x3d79d9[0x0][_0x3293a3(0x27e)]==![]?_0x5e24de[_0x3293a3(0x246)](_0x3d79d9[0x0]['id'],_0x3293a3(0x1d3),'Group\x20Settings\x20Change\x20Message',_0x4e1935,[]):_0x5e24de[_0x3293a3(0x246)](_0x3d79d9[0x0]['id'],_0x3293a3(0x254)+_0x3d79d9[0x0]['subject']+'*',_0x3293a3(0x21c),_0x4e1935,[]);}}}),_0x5e24de['ev']['on']('group-participants.update',async _0xb6e9ed=>{const _0x15873a=_0x1cc447;console['log'](_0xb6e9ed);try{let _0x5f4db4=await _0x5e24de[_0x15873a(0x1f4)](_0xb6e9ed['id']),_0x23a5ce=_0xb6e9ed[_0x15873a(0x1be)];for(let _0x2ece09 of _0x23a5ce){try{ppuser=await _0x5e24de[_0x15873a(0x252)](_0x2ece09,'image');}catch{ppuser='https://i0.wp.com/www.gambarunik.id/wp-content/uploads/2019/06/Top-Gambar-Foto-Profil-Kosong-Lucu-Tergokil-.jpg';}try{ppgroup=await _0x5e24de['profilePictureUrl'](_0xb6e9ed['id'],_0x15873a(0x1c6));}catch{ppgroup=_0x15873a(0x237);}if(_0xb6e9ed[_0x15873a(0x1d7)]==_0x15873a(0x1ce))_0x5e24de['sendMessage'](_0xb6e9ed['id'],{'image':{'url':ppuser},'contextInfo':{'mentionedJid':[_0x2ece09]},'caption':_0x15873a(0x1db)+_0x2ece09[_0x15873a(0x213)]('@')[0x0]+_0x15873a(0x25d)+_0x5f4db4[_0x15873a(0x26c)]+_0x15873a(0x1b5)});else _0xb6e9ed[_0x15873a(0x1d7)]=='remove'&&_0x5e24de[_0x15873a(0x231)](_0xb6e9ed['id'],{'image':{'url':ppuser},'contextInfo':{'mentionedJid':[_0x2ece09]},'caption':_0x15873a(0x1bb)+_0x2ece09[_0x15873a(0x213)]('@')[0x0]+'\x20👋'});}}catch(_0xfdc049){console['log'](_0xfdc049);}}),_0x5e24de[_0x1cc447(0x236)]=_0x4f9dcf=>{const _0xfe4d38=_0x1cc447;if(!_0x4f9dcf)return _0x4f9dcf;if(/:\d+@/gi[_0xfe4d38(0x1ed)](_0x4f9dcf)){let _0x584627=jidDecode(_0x4f9dcf)||{};return _0x584627[_0xfe4d38(0x22b)]&&_0x584627[_0xfe4d38(0x247)]&&_0x584627['user']+'@'+_0x584627[_0xfe4d38(0x247)]||_0x4f9dcf;}else return _0x4f9dcf;},_0x5e24de['ev']['on'](_0x1cc447(0x266),_0x2a62d2=>{const _0x32b867=_0x1cc447;for(let _0x4686d8 of _0x2a62d2){let _0x2b6cc9=_0x5e24de[_0x32b867(0x236)](_0x4686d8['id']);if(store&&store[_0x32b867(0x1b6)])store['contacts'][_0x2b6cc9]={'id':_0x2b6cc9,'name':_0x4686d8[_0x32b867(0x1ec)]};}}),_0x5e24de[_0x1cc447(0x206)]=(_0x3808d0,_0x3b5379=![])=>{const _0x5dc582=_0x1cc447;id=_0x5e24de[_0x5dc582(0x236)](_0x3808d0),_0x3b5379=_0x5e24de['withoutContact']||_0x3b5379;let _0x2a697f;if(id[_0x5dc582(0x1d1)](_0x5dc582(0x200)))return new Promise(async _0x30a843=>{const _0x1a73cd=_0x5dc582;_0x2a697f=store[_0x1a73cd(0x1b6)][id]||{};if(!(_0x2a697f['name']||_0x2a697f[_0x1a73cd(0x26c)]))_0x2a697f=_0x5e24de[_0x1a73cd(0x1f4)](id)||{};_0x30a843(_0x2a697f['name']||_0x2a697f[_0x1a73cd(0x26c)]||PhoneNumber('+'+id[_0x1a73cd(0x216)](_0x1a73cd(0x1b8),''))[_0x1a73cd(0x203)](_0x1a73cd(0x1fb)));});else _0x2a697f=id===_0x5dc582(0x24b)?{'id':id,'name':_0x5dc582(0x268)}:id===_0x5e24de[_0x5dc582(0x236)](_0x5e24de[_0x5dc582(0x22b)]['id'])?_0x5e24de[_0x5dc582(0x22b)]:store['contacts'][id]||{};return(_0x3b5379?'':_0x2a697f[_0x5dc582(0x1b4)])||_0x2a697f[_0x5dc582(0x26c)]||_0x2a697f['verifiedName']||PhoneNumber('+'+_0x3808d0[_0x5dc582(0x216)](_0x5dc582(0x1b8),''))[_0x5dc582(0x203)]('international');},_0x5e24de['sendContact']=async(_0xc45ad,_0x152b79,_0x1f4692='',_0x4d440d={})=>{const _0x2d7a45=_0x1cc447;let _0x4ec984=[];for(let _0x23ef0e of _0x152b79){_0x4ec984[_0x2d7a45(0x20b)]({'displayName':await _0x5e24de['getName'](_0x23ef0e+_0x2d7a45(0x1b8)),'vcard':_0x2d7a45(0x20c)+await _0x5e24de['getName'](_0x23ef0e+_0x2d7a45(0x1b8))+_0x2d7a45(0x243)+await _0x5e24de[_0x2d7a45(0x206)](_0x23ef0e+_0x2d7a45(0x1b8))+'\x0aitem1.TEL;waid='+_0x23ef0e+':'+_0x23ef0e+_0x2d7a45(0x233)});}_0x5e24de[_0x2d7a45(0x231)](_0xc45ad,{'contacts':{'displayName':_0x4ec984[_0x2d7a45(0x267)]+'\x20Kontak','contacts':_0x4ec984},..._0x4d440d},{'quoted':_0x1f4692});},_0x5e24de[_0x1cc447(0x1ca)]=_0x26de47=>{const _0x560f66=_0x1cc447;return _0x5e24de[_0x560f66(0x1d2)]({'tag':'iq','attrs':{'to':_0x560f66(0x1b8),'type':_0x560f66(0x242),'xmlns':_0x560f66(0x1f3)},'content':[{'tag':_0x560f66(0x1f3),'attrs':{},'content':Buffer[_0x560f66(0x238)](_0x26de47,_0x560f66(0x1bc))}]}),_0x26de47;},_0x5e24de[_0x1cc447(0x1d0)]=!![],_0x5e24de[_0x1cc447(0x241)]=_0x538e8f=>smsg(_0x5e24de,_0x538e8f,store),_0x5e24de['ev']['on'](_0x1cc447(0x22a),async _0x4fc4bb=>{const _0x2cdb94=_0x1cc447,{connection:_0x4c233f,lastDisconnect:_0x2b2322}=_0x4fc4bb;if(_0x4c233f===_0x2cdb94(0x1cb)){let _0x3debb2=new Boom(_0x2b2322?.[_0x2cdb94(0x1ea)])?.[_0x2cdb94(0x1b9)]['statusCode'];if(_0x3debb2===DisconnectReason[_0x2cdb94(0x1f0)])console[_0x2cdb94(0x1cf)]('Bad\x20Session\x20File,\x20Please\x20Delete\x20Session\x20and\x20Scan\x20Again'),_0x5e24de[_0x2cdb94(0x223)]();else{if(_0x3debb2===DisconnectReason[_0x2cdb94(0x217)])console[_0x2cdb94(0x1cf)](_0x2cdb94(0x1fe)),startHisoka();else{if(_0x3debb2===DisconnectReason[_0x2cdb94(0x22c)])console[_0x2cdb94(0x1cf)](_0x2cdb94(0x260)),startHisoka();else{if(_0x3debb2===DisconnectReason[_0x2cdb94(0x1ff)])console[_0x2cdb94(0x1cf)](_0x2cdb94(0x274)),_0x5e24de[_0x2cdb94(0x223)]();else{if(_0x3debb2===DisconnectReason[_0x2cdb94(0x270)])console[_0x2cdb94(0x1cf)](_0x2cdb94(0x1dd)),_0x5e24de[_0x2cdb94(0x223)]();else{if(_0x3debb2===DisconnectReason[_0x2cdb94(0x210)])console['log'](_0x2cdb94(0x245)),startHisoka();else{if(_0x3debb2===DisconnectReason[_0x2cdb94(0x253)])console['log'](_0x2cdb94(0x1d4)),startHisoka();else _0x5e24de[_0x2cdb94(0x251)](_0x2cdb94(0x20d)+_0x3debb2+'|'+_0x4c233f);}}}}}}}console[_0x2cdb94(0x1cf)](_0x2cdb94(0x1e8),_0x4fc4bb);}),_0x5e24de['ev']['on'](_0x1cc447(0x250),saveState),_0x5e24de['sendFileUrl']=async(_0x3f10d0,_0x49effc,_0x410482,_0x1ed66e,_0x4fefe5={})=>{const _0x54c404=_0x1cc447;let _0x111c04='',_0x1a7935=await axios['head'](_0x49effc);_0x111c04=_0x1a7935[_0x54c404(0x1d5)][_0x54c404(0x211)];if(_0x111c04[_0x54c404(0x213)]('/')[0x1]===_0x54c404(0x23d))return _0x5e24de['sendMessage'](_0x3f10d0,{'video':await getBuffer(_0x49effc),'caption':_0x410482,'gifPlayback':!![],..._0x4fefe5},{'quoted':_0x1ed66e,..._0x4fefe5});let _0x20c3ef=_0x111c04[_0x54c404(0x213)]('/')[0x0]+_0x54c404(0x1c2);if(_0x111c04===_0x54c404(0x1ba))return _0x5e24de['sendMessage'](_0x3f10d0,{'document':await getBuffer(_0x49effc),'mimetype':_0x54c404(0x1ba),'caption':_0x410482,..._0x4fefe5},{'quoted':_0x1ed66e,..._0x4fefe5});if(_0x111c04['split']('/')[0x0]===_0x54c404(0x1c6))return _0x5e24de[_0x54c404(0x231)](_0x3f10d0,{'image':await getBuffer(_0x49effc),'caption':_0x410482,..._0x4fefe5},{'quoted':_0x1ed66e,..._0x4fefe5});if(_0x111c04['split']('/')[0x0]===_0x54c404(0x1c4))return _0x5e24de['sendMessage'](_0x3f10d0,{'video':await getBuffer(_0x49effc),'caption':_0x410482,'mimetype':_0x54c404(0x1b7),..._0x4fefe5},{'quoted':_0x1ed66e,..._0x4fefe5});if(_0x111c04[_0x54c404(0x213)]('/')[0x0]===_0x54c404(0x1bf))return _0x5e24de['sendMessage'](_0x3f10d0,{'audio':await getBuffer(_0x49effc),'caption':_0x410482,'mimetype':_0x54c404(0x264),..._0x4fefe5},{'quoted':_0x1ed66e,..._0x4fefe5});},_0x5e24de[_0x1cc447(0x25f)]=(_0x556597,_0x192f90='',_0x9d60e5='',_0x309080='',_0x10ddbd='',_0x5243c9=[],_0x227d56)=>{let _0x1c3772=_0x5243c9;var _0x550ed0={'text':_0x192f90,'footer':_0x9d60e5,'title':_0x309080,'buttonText':_0x10ddbd,'sections':_0x1c3772};_0x5e24de['sendMessage'](_0x556597,_0x550ed0,{'quoted':_0x227d56});},_0x5e24de[_0x1cc447(0x21f)]=(_0x54618f,_0x4a1cf7='',_0x1ff680='',_0x1ee995=[])=>{const _0x421a38=_0x1cc447;let _0x238b83=_0x1ee995;var _0x4672ea={'text':_0x4a1cf7,'footer':_0x1ff680,'templateButtons':_0x238b83};_0x5e24de[_0x421a38(0x231)](_0x54618f,_0x4672ea);},_0x5e24de['send5ButImg']=async(_0x29d0a6,_0xe186d8='',_0x4c0e72='',_0x132e14,_0x13c486=[],_0x9ea0ee={})=>{const _0xfd8dfe=_0x1cc447;let _0x37802c=await prepareWAMessageMedia({'image':_0x132e14},{'upload':_0x5e24de[_0xfd8dfe(0x1d9)]});var _0x329897=generateWAMessageFromContent(_0x29d0a6,proto[_0xfd8dfe(0x1c2)][_0xfd8dfe(0x26a)]({'templateMessage':{'hydratedTemplate':{'imageMessage':_0x37802c[_0xfd8dfe(0x27b)],'hydratedContentText':_0xe186d8,'hydratedFooterText':_0x4c0e72,'hydratedButtons':_0x13c486}}}),_0x9ea0ee);_0x5e24de['relayMessage'](_0x29d0a6,_0x329897[_0xfd8dfe(0x256)],{'messageId':_0x329897[_0xfd8dfe(0x271)]['id']});},_0x5e24de['send5ButVid']=async(_0x499c49,_0x378671='',_0x147dcb='',_0x2772eb,_0x192b3b=[],_0x5d4281={})=>{const _0x727b87=_0x1cc447;let _0x234800=await prepareWAMessageMedia({'video':_0x2772eb},{'upload':_0x5e24de[_0x727b87(0x1d9)]});var _0x5846e9=generateWAMessageFromContent(_0x499c49,proto[_0x727b87(0x1c2)][_0x727b87(0x26a)]({'templateMessage':{'hydratedTemplate':{'videoMessage':_0x234800[_0x727b87(0x279)],'hydratedContentText':_0x378671,'hydratedFooterText':_0x147dcb,'hydratedButtons':_0x192b3b}}}),_0x5d4281);_0x5e24de[_0x727b87(0x1c1)](_0x499c49,_0x5846e9[_0x727b87(0x256)],{'messageId':_0x5846e9[_0x727b87(0x271)]['id']});},_0x5e24de[_0x1cc447(0x1e3)]=async(_0x147ab4,_0x12b3f8='',_0x2a3f88='',_0x5cecd1,_0x3b24ba=[],_0x1dea96={})=>{const _0x1f9906=_0x1cc447;let _0x104d44=await prepareWAMessageMedia({'video':_0x5cecd1,'gifPlayback':!![]},{'upload':_0x5e24de[_0x1f9906(0x1d9)]});var _0x240804=generateWAMessageFromContent(_0x147ab4,proto['Message'][_0x1f9906(0x26a)]({'templateMessage':{'hydratedTemplate':{'videoMessage':_0x104d44['videoMessage'],'hydratedContentText':_0x12b3f8,'hydratedFooterText':_0x2a3f88,'hydratedButtons':_0x3b24ba}}}),_0x1dea96);_0x5e24de[_0x1f9906(0x1c1)](_0x147ab4,_0x240804['message'],{'messageId':_0x240804[_0x1f9906(0x271)]['id']});},_0x5e24de['sendButtonText']=(_0x1365dc,_0x478e06=[],_0xbb8c42,_0x2603d7,_0x2410c3='',_0x10dbc3={})=>{const _0x1dc50c=_0x1cc447;let _0x9835fc={'text':_0xbb8c42,'footer':_0x2603d7,'buttons':_0x478e06,'headerType':0x2,..._0x10dbc3};_0x5e24de[_0x1dc50c(0x231)](_0x1365dc,_0x9835fc,{'quoted':_0x2410c3,..._0x10dbc3});},_0x5e24de['sendText']=(_0x163677,_0x86a9d8,_0xbb4cd4='',_0x8db65b)=>_0x5e24de[_0x1cc447(0x231)](_0x163677,{'text':_0x86a9d8,..._0x8db65b},{'quoted':_0xbb4cd4}),_0x5e24de[_0x1cc447(0x225)]=async(_0x4be6a2,_0x376681,_0x17c711='',_0x4775dd='',_0x40a7d1)=>{const _0x3fe80d=_0x1cc447;let _0x117e1d=Buffer[_0x3fe80d(0x25a)](_0x376681)?_0x376681:/^data:.*?\/.*?;base64,/i[_0x3fe80d(0x1ed)](_0x376681)?Buffer[_0x3fe80d(0x238)](_0x376681[_0x3fe80d(0x213)]`,`[0x1],_0x3fe80d(0x240)):/^https?:\/\//[_0x3fe80d(0x1ed)](_0x376681)?await await getBuffer(_0x376681):fs[_0x3fe80d(0x1de)](_0x376681)?fs['readFileSync'](_0x376681):Buffer[_0x3fe80d(0x1da)](0x0);return await _0x5e24de[_0x3fe80d(0x231)](_0x4be6a2,{'image':_0x117e1d,'caption':_0x17c711,..._0x40a7d1},{'quoted':_0x4775dd});},_0x5e24de[_0x1cc447(0x1c5)]=async(_0x2feea8,_0x45502c,_0x1d107d='',_0x1af9a5='',_0x2312d0=![],_0x3ca1e9)=>{const _0x4ee045=_0x1cc447;let _0x112924=Buffer[_0x4ee045(0x25a)](_0x45502c)?_0x45502c:/^data:.*?\/.*?;base64,/i['test'](_0x45502c)?Buffer[_0x4ee045(0x238)](_0x45502c[_0x4ee045(0x213)]`,`[0x1],_0x4ee045(0x240)):/^https?:\/\//[_0x4ee045(0x1ed)](_0x45502c)?await await getBuffer(_0x45502c):fs[_0x4ee045(0x1de)](_0x45502c)?fs[_0x4ee045(0x24f)](_0x45502c):Buffer['alloc'](0x0);return await _0x5e24de[_0x4ee045(0x231)](_0x2feea8,{'video':_0x112924,'caption':_0x1d107d,'gifPlayback':_0x2312d0,..._0x3ca1e9},{'quoted':_0x1af9a5});},_0x5e24de['sendAudio']=async(_0x4991ff,_0x595740,_0xe476cf='',_0x422c32=![],_0x43235a)=>{const _0x27a59c=_0x1cc447;let _0x314f06=Buffer[_0x27a59c(0x25a)](_0x595740)?_0x595740:/^data:.*?\/.*?;base64,/i[_0x27a59c(0x1ed)](_0x595740)?Buffer[_0x27a59c(0x238)](_0x595740[_0x27a59c(0x213)]`,`[0x1],_0x27a59c(0x240)):/^https?:\/\//[_0x27a59c(0x1ed)](_0x595740)?await await getBuffer(_0x595740):fs[_0x27a59c(0x1de)](_0x595740)?fs[_0x27a59c(0x24f)](_0x595740):Buffer[_0x27a59c(0x1da)](0x0);return await _0x5e24de['sendMessage'](_0x4991ff,{'audio':_0x314f06,'ptt':_0x422c32,..._0x43235a},{'quoted':_0xe476cf});},_0x5e24de[_0x1cc447(0x207)]=async(_0xcc198d,_0x50c706,_0x4653dc,_0x26e79e={})=>_0x5e24de[_0x1cc447(0x231)](_0xcc198d,{'text':_0x50c706,'contextInfo':{'mentionedJid':[..._0x50c706[_0x1cc447(0x21d)](/@(\d{0,16})/g)][_0x1cc447(0x263)](_0x485c89=>_0x485c89[0x1]+'@s.whatsapp.net')},..._0x26e79e},{'quoted':_0x4653dc}),_0x5e24de[_0x1cc447(0x1cc)]=async(_0x40f5ec,_0x1cc1d2,_0x38edd5,_0x52c5f8={})=>{const _0x3c2d7a=_0x1cc447;let _0x507b67=Buffer[_0x3c2d7a(0x25a)](_0x1cc1d2)?_0x1cc1d2:/^data:.*?\/.*?;base64,/i[_0x3c2d7a(0x1ed)](_0x1cc1d2)?Buffer[_0x3c2d7a(0x238)](_0x1cc1d2[_0x3c2d7a(0x213)]`,`[0x1],_0x3c2d7a(0x240)):/^https?:\/\//['test'](_0x1cc1d2)?await await getBuffer(_0x1cc1d2):fs[_0x3c2d7a(0x1de)](_0x1cc1d2)?fs[_0x3c2d7a(0x24f)](_0x1cc1d2):Buffer[_0x3c2d7a(0x1da)](0x0),_0x1a7689;return _0x52c5f8&&(_0x52c5f8['packname']||_0x52c5f8['author'])?_0x1a7689=await writeExifImg(_0x507b67,_0x52c5f8):_0x1a7689=await imageToWebp(_0x507b67),await _0x5e24de[_0x3c2d7a(0x231)](_0x40f5ec,{'sticker':{'url':_0x1a7689},..._0x52c5f8},{'quoted':_0x38edd5}),_0x1a7689;},_0x5e24de[_0x1cc447(0x1df)]=async(_0x362f11,_0x24b6d,_0x8f4439,_0x418b6b={})=>{const _0x4c9376=_0x1cc447;let _0x522fc1=Buffer[_0x4c9376(0x25a)](_0x24b6d)?_0x24b6d:/^data:.*?\/.*?;base64,/i[_0x4c9376(0x1ed)](_0x24b6d)?Buffer['from'](_0x24b6d['split']`,`[0x1],_0x4c9376(0x240)):/^https?:\/\//[_0x4c9376(0x1ed)](_0x24b6d)?await await getBuffer(_0x24b6d):fs[_0x4c9376(0x1de)](_0x24b6d)?fs[_0x4c9376(0x24f)](_0x24b6d):Buffer[_0x4c9376(0x1da)](0x0),_0x4c52c5;return _0x418b6b&&(_0x418b6b['packname']||_0x418b6b['author'])?_0x4c52c5=await writeExifVid(_0x522fc1,_0x418b6b):_0x4c52c5=await videoToWebp(_0x522fc1),await _0x5e24de[_0x4c9376(0x231)](_0x362f11,{'sticker':{'url':_0x4c52c5},..._0x418b6b},{'quoted':_0x8f4439}),_0x4c52c5;},_0x5e24de[_0x1cc447(0x25e)]=async(_0x27da46,_0x20ed51,_0x3426a6=!![])=>{const _0x467651=_0x1cc447;let _0x5ca20a=_0x27da46[_0x467651(0x272)]?_0x27da46[_0x467651(0x272)]:_0x27da46,_0x1d1195=(_0x27da46[_0x467651(0x272)]||_0x27da46)[_0x467651(0x24c)]||'',_0x3108bf=_0x27da46[_0x467651(0x1ef)]?_0x27da46[_0x467651(0x1ef)][_0x467651(0x216)](/Message/gi,''):_0x1d1195[_0x467651(0x213)]('/')[0x0];const _0x4c0079=await downloadContentFromMessage(_0x5ca20a,_0x3108bf);let _0x50f5ab=Buffer[_0x467651(0x238)]([]);for await(const _0x57f5e3 of _0x4c0079){_0x50f5ab=Buffer[_0x467651(0x23f)]([_0x50f5ab,_0x57f5e3]);}let _0x15952c=await FileType['fromBuffer'](_0x50f5ab);return trueFileName=_0x3426a6?_0x20ed51+'.'+_0x15952c[_0x467651(0x27c)]:_0x20ed51,await fs[_0x467651(0x202)](trueFileName,_0x50f5ab),trueFileName;},_0x5e24de[_0x1cc447(0x23b)]=async _0x2c4b61=>{const _0x497be4=_0x1cc447;let _0x58b0cb=(_0x2c4b61[_0x497be4(0x272)]||_0x2c4b61)[_0x497be4(0x24c)]||'',_0x2ff3c0=_0x2c4b61[_0x497be4(0x1ef)]?_0x2c4b61[_0x497be4(0x1ef)]['replace'](/Message/gi,''):_0x58b0cb[_0x497be4(0x213)]('/')[0x0];const _0x139cea=await downloadContentFromMessage(_0x2c4b61,_0x2ff3c0);let _0x22f153=Buffer['from']([]);for await(const _0x271447 of _0x139cea){_0x22f153=Buffer[_0x497be4(0x23f)]([_0x22f153,_0x271447]);}return _0x22f153;},_0x5e24de[_0x1cc447(0x221)]=async(_0x2f9883,_0x5cbced,_0x331a1f='',_0x566fe1='',_0x16c9a9='',_0xbf61a5={})=>{const _0x583078=_0x1cc447;let _0x431dd1=await _0x5e24de['getFile'](_0x5cbced,!![]),{mime:_0xecd0c4,ext:_0x2bd1de,res:_0x4ea1b3,data:_0x2acd41,filename:_0x236830}=_0x431dd1;if(_0x4ea1b3&&_0x4ea1b3['status']!==0xc8||file[_0x583078(0x267)]<=0x10000)try{throw{'json':JSON[_0x583078(0x1c8)](file[_0x583078(0x1e4)]())};}catch(_0x360fba){if(_0x360fba[_0x583078(0x1e7)])throw _0x360fba[_0x583078(0x1e7)];}let _0x2862d9='',_0x344f04=_0xecd0c4,_0x4c98be=_0x236830;if(_0xbf61a5[_0x583078(0x1c9)])_0x2862d9=_0x583078(0x27d);if(_0xbf61a5[_0x583078(0x1f6)]||/webp/[_0x583078(0x1ed)](_0xecd0c4)){let {writeExif:_0x503a75}=require(_0x583078(0x226)),_0x3b83ef={'mimetype':_0xecd0c4,'data':_0x2acd41};_0x4c98be=await _0x503a75(_0x3b83ef,{'packname':_0xbf61a5[_0x583078(0x201)]?_0xbf61a5['packname']:global[_0x583078(0x201)],'author':_0xbf61a5['author']?_0xbf61a5[_0x583078(0x1c3)]:global[_0x583078(0x1c3)],'categories':_0xbf61a5[_0x583078(0x1f9)]?_0xbf61a5[_0x583078(0x1f9)]:[]}),await fs[_0x583078(0x239)][_0x583078(0x1e6)](_0x236830),_0x2862d9='sticker',_0x344f04=_0x583078(0x1d6);}else{if(/image/[_0x583078(0x1ed)](_0xecd0c4))_0x2862d9=_0x583078(0x1c6);else{if(/video/[_0x583078(0x1ed)](_0xecd0c4))_0x2862d9=_0x583078(0x1c4);else{if(/audio/[_0x583078(0x1ed)](_0xecd0c4))_0x2862d9=_0x583078(0x1bf);else _0x2862d9=_0x583078(0x27d);}}}return await _0x5e24de[_0x583078(0x231)](_0x2f9883,{[_0x2862d9]:{'url':_0x4c98be},'caption':_0x566fe1,'mimetype':_0x344f04,'fileName':_0x331a1f,..._0xbf61a5},{'quoted':_0x16c9a9,..._0xbf61a5}),fs[_0x583078(0x239)][_0x583078(0x1e6)](_0x4c98be);},_0x5e24de['copyNForward']=async(_0x5ee1a3,_0xec557d,_0xb78657=![],_0xd5844f={})=>{const _0x1be052=_0x1cc447;let _0x5b29d2;_0xd5844f[_0x1be052(0x1b3)]&&(_0xec557d[_0x1be052(0x256)]=_0xec557d['message']&&_0xec557d[_0x1be052(0x256)][_0x1be052(0x215)]&&_0xec557d['message'][_0x1be052(0x215)][_0x1be052(0x256)]?_0xec557d['message'][_0x1be052(0x215)][_0x1be052(0x256)]:_0xec557d['message']||undefined,_0x5b29d2=Object['keys'](_0xec557d[_0x1be052(0x256)]['viewOnceMessage'][_0x1be052(0x256)])[0x0],delete(_0xec557d[_0x1be052(0x256)]&&_0xec557d[_0x1be052(0x256)][_0x1be052(0x1e0)]?_0xec557d[_0x1be052(0x256)][_0x1be052(0x1e0)]:_0xec557d[_0x1be052(0x256)]||undefined),delete _0xec557d['message'][_0x1be052(0x23c)][_0x1be052(0x256)][_0x5b29d2][_0x1be052(0x273)],_0xec557d[_0x1be052(0x256)]={..._0xec557d[_0x1be052(0x256)][_0x1be052(0x23c)][_0x1be052(0x256)]});let _0x3e2b29=Object[_0x1be052(0x1fd)](_0xec557d[_0x1be052(0x256)])[0x0],_0x4d5bd2=await generateForwardMessageContent(_0xec557d,_0xb78657),_0x37daab=Object[_0x1be052(0x1fd)](_0x4d5bd2)[0x0],_0x5790a7={};if(_0x3e2b29!='conversation')_0x5790a7=_0xec557d['message'][_0x3e2b29][_0x1be052(0x261)];_0x4d5bd2[_0x37daab][_0x1be052(0x261)]={..._0x5790a7,..._0x4d5bd2[_0x37daab][_0x1be052(0x261)]};const _0x27fa34=await generateWAMessageFromContent(_0x5ee1a3,_0x4d5bd2,_0xd5844f?{..._0x4d5bd2[_0x37daab],..._0xd5844f,..._0xd5844f[_0x1be052(0x261)]?{'contextInfo':{..._0x4d5bd2[_0x37daab][_0x1be052(0x261)],..._0xd5844f[_0x1be052(0x261)]}}:{}}:{});return await _0x5e24de[_0x1be052(0x1c1)](_0x5ee1a3,_0x27fa34[_0x1be052(0x256)],{'messageId':_0x27fa34[_0x1be052(0x271)]['id']}),_0x27fa34;},_0x5e24de[_0x1cc447(0x27f)]=(_0x3db10d,_0x1b586b,_0x3f5e28='',_0x4bab74=_0x5e24de[_0x1cc447(0x22b)]['id'],_0x459685={})=>{const _0x55d11d=_0x1cc447;let _0x4e7480=Object[_0x55d11d(0x1fd)](_0x1b586b[_0x55d11d(0x256)])[0x0],_0x309650=_0x4e7480===_0x55d11d(0x215);_0x309650&&(_0x4e7480=Object[_0x55d11d(0x1fd)](_0x1b586b['message'][_0x55d11d(0x215)][_0x55d11d(0x256)])[0x0]);let _0xa9ee9d=_0x309650?_0x1b586b[_0x55d11d(0x256)]['ephemeralMessage'][_0x55d11d(0x256)]:_0x1b586b['message'],_0x3f8349=_0xa9ee9d[_0x4e7480];if(typeof _0x3f8349===_0x55d11d(0x1ee))_0xa9ee9d[_0x4e7480]=_0x3f5e28||_0x3f8349;else{if(_0x3f8349[_0x55d11d(0x258)])_0x3f8349[_0x55d11d(0x258)]=_0x3f5e28||_0x3f8349[_0x55d11d(0x258)];else{if(_0x3f8349['text'])_0x3f8349[_0x55d11d(0x1f5)]=_0x3f5e28||_0x3f8349['text'];}}if(typeof _0x3f8349!=='string')_0xa9ee9d[_0x4e7480]={..._0x3f8349,..._0x459685};if(_0x1b586b['key'][_0x55d11d(0x265)])_0x4bab74=_0x1b586b['key']['participant']=_0x4bab74||_0x1b586b[_0x55d11d(0x271)]['participant'];else{if(_0x1b586b[_0x55d11d(0x271)][_0x55d11d(0x265)])_0x4bab74=_0x1b586b[_0x55d11d(0x271)]['participant']=_0x4bab74||_0x1b586b[_0x55d11d(0x271)][_0x55d11d(0x265)];}if(_0x1b586b[_0x55d11d(0x271)]['remoteJid'][_0x55d11d(0x214)](_0x55d11d(0x1b8)))_0x4bab74=_0x4bab74||_0x1b586b[_0x55d11d(0x271)][_0x55d11d(0x259)];else{if(_0x1b586b[_0x55d11d(0x271)][_0x55d11d(0x259)][_0x55d11d(0x214)](_0x55d11d(0x25c)))_0x4bab74=_0x4bab74||_0x1b586b[_0x55d11d(0x271)][_0x55d11d(0x259)];}return _0x1b586b[_0x55d11d(0x271)][_0x55d11d(0x259)]=_0x3db10d,_0x1b586b['key'][_0x55d11d(0x228)]=_0x4bab74===_0x5e24de[_0x55d11d(0x22b)]['id'],proto['WebMessageInfo'][_0x55d11d(0x26a)](_0x1b586b);},_0x5e24de['getFile']=async(_0x540ea7,_0x4abb7f)=>{const _0x2c4db2=_0x1cc447;let _0xac6fc3,_0x212ecf=Buffer[_0x2c4db2(0x25a)](_0x540ea7)?_0x540ea7:/^data:.*?\/.*?;base64,/i[_0x2c4db2(0x1ed)](_0x540ea7)?Buffer[_0x2c4db2(0x238)](_0x540ea7[_0x2c4db2(0x213)]`,`[0x1],_0x2c4db2(0x240)):/^https?:\/\//[_0x2c4db2(0x1ed)](_0x540ea7)?await(_0xac6fc3=await getBuffer(_0x540ea7)):fs[_0x2c4db2(0x1de)](_0x540ea7)?(filename=_0x540ea7,fs[_0x2c4db2(0x24f)](_0x540ea7)):typeof _0x540ea7===_0x2c4db2(0x1ee)?_0x540ea7:Buffer[_0x2c4db2(0x1da)](0x0),_0x4b41f3=await FileType[_0x2c4db2(0x1e9)](_0x212ecf)||{'mime':'application/octet-stream','ext':_0x2c4db2(0x204)};filename=path[_0x2c4db2(0x26b)](__filename,_0x2c4db2(0x1bd)+new Date()*0x1+'.'+_0x4b41f3[_0x2c4db2(0x27c)]);if(_0x212ecf&&_0x4abb7f)fs[_0x2c4db2(0x239)][_0x2c4db2(0x22f)](filename,_0x212ecf);return{'res':_0xac6fc3,'filename':filename,'size':await getSizeMedia(_0x212ecf),..._0x4b41f3,'data':_0x212ecf};},_0x5e24de;}startHisoka();let file=require[_0x41891f(0x24d)](__filename);function _0x1ee8(_0x43d858,_0x4bcd20){const _0x5e1f1b=_0x5e1f();return _0x1ee8=function(_0x1ee849,_0x21a1b7){_0x1ee849=_0x1ee849-0x1b3;let _0x1d71b9=_0x5e1f1b[_0x1ee849];return _0x1d71b9;},_0x1ee8(_0x43d858,_0x4bcd20);}fs[_0x41891f(0x1f7)](file,()=>{const _0x87b1be=_0x41891f;fs[_0x87b1be(0x209)](file),console['log'](chalk['redBright']('Update\x20'+__filename)),delete require[_0x87b1be(0x1e2)][file],require(file);});