-
Notifications
You must be signed in to change notification settings - Fork 30
/
main.js
11 lines (10 loc) · 26.7 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
/*
NOTE : JGN HPS DIBAWAH INI!!
AUTHOR : RAHMXBOT X RAHMAN GNTENG:V
WHATSAPP OWN : 085821676621
NOMOR BOT : 085821369324
NOTE : JGN HPS AUTHORNYA!!!
ENC BY RAHMXBOT!!
BELI NO ENC? 50K AJA BG, FULL FITUR, ADA BUG JUGA LHO🤩!
*/
const _0x40ce22=_0x2448;(function(_0x50213d,_0x134636){const _0x3aad9e=_0x2448,_0x1cad0d=_0x50213d();while(!![]){try{const _0x31ce54=-parseInt(_0x3aad9e(0x1f5))/0x1*(parseInt(_0x3aad9e(0x193))/0x2)+-parseInt(_0x3aad9e(0x1ef))/0x3*(-parseInt(_0x3aad9e(0x180))/0x4)+parseInt(_0x3aad9e(0x1c7))/0x5*(-parseInt(_0x3aad9e(0x1a1))/0x6)+-parseInt(_0x3aad9e(0x1fc))/0x7+parseInt(_0x3aad9e(0x1a9))/0x8+parseInt(_0x3aad9e(0x19a))/0x9+-parseInt(_0x3aad9e(0x1ea))/0xa*(-parseInt(_0x3aad9e(0x1d1))/0xb);if(_0x31ce54===_0x134636)break;else _0x1cad0d['push'](_0x1cad0d['shift']());}catch(_0x886a70){_0x1cad0d['push'](_0x1cad0d['shift']());}}}(_0x2678,0x744f7),require(_0x40ce22(0x185)));const {default:liaacansConnect,useSingleFileAuthState,DisconnectReason,fetchLatestBaileysVersion,generateForwardMessageContent,prepareWAMessageMedia,generateWAMessageFromContent,generateMessageID,downloadContentFromMessage,makeInMemoryStore,jidDecode,proto}=require(_0x40ce22(0x214)),{state,saveState}=useSingleFileAuthState(_0x40ce22(0x1ad)),pino=require(_0x40ce22(0x196)),{Boom}=require(_0x40ce22(0x1bd)),fs=require('fs'),yargs=require(_0x40ce22(0x1a2)),chalk=require(_0x40ce22(0x1b7)),FileType=require(_0x40ce22(0x1f3)),path=require('path'),PhoneNumber=require(_0x40ce22(0x21e)),{imageToWebp,videoToWebp,writeExifImg,writeExifVid}=require(_0x40ce22(0x1fa)),{smsg,isUrl,generateMessageTag,getBuffer,getSizeMedia,fetchJson,await,sleep}=require(_0x40ce22(0x221));var low;function _0x2448(_0x503699,_0x5f2097){const _0x267873=_0x2678();return _0x2448=function(_0x2448c2,_0x599575){_0x2448c2=_0x2448c2-0x17c;let _0x19d786=_0x267873[_0x2448c2];return _0x19d786;},_0x2448(_0x503699,_0x5f2097);}try{low=require('lowdb');}catch(_0x4ec30d){low=require(_0x40ce22(0x18e));}function _0x2678(){const _0x4ace39=['badSession','name','remoteJid','sendButtonImg','4UizEVh','promises','msg','pino','getNumber','sendMessage','Connection\x20Lost\x20from\x20Server,\x20reconnecting...','3689028axTWML','parse','BEGIN:VCARD\x0aVERSION:3.0\x0aN:','block','subject','Update\x20','watchFile','1932558zLLBfU','yargs/yargs','message','ignore','sendImageAsSticker','waUploadToServer','BAE5','opts','1540480liAgKn','unwatchFile','messages','profilePictureUrl','./session/qrmd.json','query','mtype','./command/liaacans','store','packname','getName','close','send5ButImg','APIs','chalk','json','from','「\x20Group\x20Settings\x20Change\x20」\x0a\x0aGroup\x20Subject\x20telah\x20diganti\x20menjadi\x20*','sendButtonText','Restart\x20Required,\x20Restarting...','@hapi/boom','@g.us','output','offer','「\x20Group\x20Settings\x20Change\x20」\x0a\x0aInfo\x20group\x20telah\x20dibuka,\x20Sekarang\x20peserta\x20dapat\x20mengedit\x20info\x20group\x20!','\x0aitem1.TEL;waid=','categories','messages.upsert','includes','image','5uPrcCq','getFile','CB:call','replace','text','\x0aFN:','asSticker','group-participants.update','https://i0.wp.com/www.gambarunik.id/wp-content/uploads/2019/06/Top-Gambar-Foto-Profil-Kosong-Lucu-Tergokil-.jpg','startsWith','55WJRavn','Connected...','imageMessage','author','unlink','api','decodeJid','status','verifiedName','sendVideo','notify','withoutContact','silent','「\x20Group\x20Settings\x20Change\x20」\x0a\x0aInfo\x20group\x20telah\x20dibatasi,\x20Sekarang\x20hanya\x20admin\x20yang\x20dapat\x20mengedit\x20info\x20group\x20!','split','content','data','alloc','document','WhatsApp','audio','fromObject','mimetype','downloadMediaMessage','sendTextWithMentions','1860410TNQKqn','bind','statusCode','sendListMsg','slice','2502087psOlyT','sendAudio','fromMe','Message','file-type','downloadAndSaveMediaMessage','323716WsHpUj','「\x20Group\x20Settings\x20Change\x20」\x0a\x0aGroup\x20telah\x20ditutup\x20oleh\x20admin,\x20Sekarang\x20hanya\x20admin\x20yang\x20dapat\x20mengirim\x20pesan\x20!','international','1.0.0','Group\x20Settings\x20Change\x20Message','./message/exif','sendContact','6445278tGLVJz','Unknown\x20DisconnectReason:\x20','matchAll','action','cMod','remove','readFileSync','tag','redBright','creds.update','resolve','test','exitProcess','../src/','contacts','relayMessage','viewOnceMessage','logout','\x0aitem1.X-ABLabel:Ponsel\x0aitem2.EMAIL;type=INTERNET:[email protected]\x0aitem2.X-ABLabel:Email\x0aitem3.URL:https://instagram.com/cak_haho\x0aitem3.X-ABLabel:Instagram\x0aitem4.ADR:;;Indonesia;;;;\x0aitem4.X-ABLabel:Region\x0aEND:VCARD','participant','application/octet-stream','log','connectionLost','error','@adiwajshing/baileys','restrict','WebMessageInfo','sendImage','image/webp','announce','contextInfo','Connection\x20TimedOut,\x20Reconnecting...','./message/mongoDB','updateBlockStatus','awesome-phonenumber','map','Connection\x20Replaced,\x20Another\x20New\x20Session\x20Opened,\x20Please\x20Close\x20Current\x20Session\x20First','./message/myfunc','caption','status@broadcast','concat','asDocument','fromBuffer','base64','existsSync','video','timedOut','push','readViewOnce','write','sendText','@s.whatsapp.net','end','endsWith','user','connectionReplaced','ephemeralMessage','Welcome\x20To\x20','length','4bYHCtC','APIKeys','key','contacts.update','string','./options/config','toString','keys','ext','server','public','utf-8','json/database.json','isBuffer','./message/lowdb'];_0x2678=function(){return _0x4ace39;};return _0x2678();}const {Low,JSONFile}=low,mongoDB=require(_0x40ce22(0x21c));global[_0x40ce22(0x1d6)]=(_0x5545da,_0x467f0e='/',_0x2c49d7={},_0x1bfbc3)=>(_0x5545da in global['APIs']?global[_0x40ce22(0x1b6)][_0x5545da]:_0x5545da)+_0x467f0e+(_0x2c49d7||_0x1bfbc3?'?'+new URLSearchParams(Object['entries']({..._0x2c49d7,..._0x1bfbc3?{[_0x1bfbc3]:global[_0x40ce22(0x181)][_0x5545da in global[_0x40ce22(0x1b6)]?global[_0x40ce22(0x1b6)][_0x5545da]:_0x5545da]}:{}})):'');const store=makeInMemoryStore({'logger':pino()['child']({'level':_0x40ce22(0x1dd),'stream':_0x40ce22(0x1b1)})});global[_0x40ce22(0x1a8)]=new Object(yargs(process['argv'][_0x40ce22(0x1ee)](0x2))[_0x40ce22(0x208)](![])[_0x40ce22(0x19b)]()),global['db']=new Low(/https?:\/\//[_0x40ce22(0x207)](opts['db']||'')?new cloudDBAdapter(opts['db']):/mongodb/['test'](opts['db'])?new mongoDB(opts['db']):new JSONFile(_0x40ce22(0x18c))),global['db']['data']={'users':{},'chats':{},'database':{},'game':{},'settings':{},'others':{},'sticker':{},...global['db'][_0x40ce22(0x1e1)]||{}};if(global['db'])setInterval(async()=>{const _0x3abb2e=_0x40ce22;if(global['db']['data'])await global['db'][_0x3abb2e(0x22d)]();},0x1e*0x3e8);async function startliaacans(){const _0x5c07c0=_0x40ce22,_0x14d7c4=liaacansConnect({'logger':pino({'level':'silent'}),'printQRInTerminal':!![],'browser':['Liaa\x20Cans\x20Multi\x20Device','Safari',_0x5c07c0(0x1f8)],'auth':state});return store[_0x5c07c0(0x1eb)](_0x14d7c4['ev']),_0x14d7c4['ws']['on'](_0x5c07c0(0x1c9),async _0x5a8a78=>{const _0x20aec5=_0x5c07c0,_0x4f5fce=_0x5a8a78[_0x20aec5(0x1e0)][0x0]['attrs']['call-creator'];if(_0x5a8a78['content'][0x0][_0x20aec5(0x203)]==_0x20aec5(0x1c0)){let _0x57adeb=await _0x14d7c4[_0x20aec5(0x1fb)](_0x4f5fce,global['owner']);_0x14d7c4['sendMessage'](_0x4f5fce,{'text':'Sistem\x20otomatis\x20block!\x0aJangan\x20menelpon\x20bot!\x0aSilahkan\x20Hubungi\x20Owner\x20Untuk\x20Dibuka\x20!'},{'quoted':_0x57adeb}),await sleep(0x1f40),await _0x14d7c4[_0x20aec5(0x21d)](_0x4f5fce,_0x20aec5(0x19d));}}),_0x14d7c4['ev']['on'](_0x5c07c0(0x1c4),async _0x334712=>{const _0x14c1c7=_0x5c07c0;try{mek=_0x334712[_0x14c1c7(0x1ab)][0x0];if(!mek[_0x14c1c7(0x1a3)])return;mek['message']=Object['keys'](mek[_0x14c1c7(0x1a3)])[0x0]==='ephemeralMessage'?mek[_0x14c1c7(0x1a3)]['ephemeralMessage'][_0x14c1c7(0x1a3)]:mek[_0x14c1c7(0x1a3)];if(mek[_0x14c1c7(0x182)]&&mek[_0x14c1c7(0x182)]['remoteJid']===_0x14c1c7(0x223))return;if(!_0x14d7c4['public']&&!mek[_0x14c1c7(0x182)][_0x14c1c7(0x1f1)]&&_0x334712['type']===_0x14c1c7(0x1db))return;if(mek[_0x14c1c7(0x182)]['id'][_0x14c1c7(0x1d0)](_0x14c1c7(0x1a7))&&mek[_0x14c1c7(0x182)]['id'][_0x14c1c7(0x17f)]===0x10)return;m=smsg(_0x14d7c4,mek,store),require(_0x14c1c7(0x1b0))(_0x14d7c4,m,_0x334712,store);}catch(_0x1997f1){console[_0x14c1c7(0x211)](_0x1997f1);}}),_0x14d7c4['ev']['on']('groups.update',async _0xd9bd7d=>{const _0x490f84=_0x5c07c0;try{ppgc=await _0x14d7c4[_0x490f84(0x1ac)](_0xd9bd7d[0x0]['id'],_0x490f84(0x1c6));}catch{ppgc=_0x490f84(0x1cf);}let _0x4a9c1e={'url':ppgc};if(_0xd9bd7d[0x0][_0x490f84(0x219)]==!![])_0x14d7c4['send5ButImg'](_0xd9bd7d[0x0]['id'],_0x490f84(0x1f6),_0x490f84(0x1f9),_0x4a9c1e,[]);else{if(_0xd9bd7d[0x0][_0x490f84(0x219)]==![])_0x14d7c4[_0x490f84(0x1b5)](_0xd9bd7d[0x0]['id'],'「\x20Group\x20Settings\x20Change\x20」\x0a\x0aGroup\x20telah\x20dibuka\x20oleh\x20admin,\x20Sekarang\x20peserta\x20dapat\x20mengirim\x20pesan\x20!',_0x490f84(0x1f9),_0x4a9c1e,[]);else{if(_0xd9bd7d[0x0][_0x490f84(0x215)]==!![])_0x14d7c4[_0x490f84(0x1b5)](_0xd9bd7d[0x0]['id'],_0x490f84(0x1de),_0x490f84(0x1f9),_0x4a9c1e,[]);else _0xd9bd7d[0x0][_0x490f84(0x215)]==![]?_0x14d7c4[_0x490f84(0x1b5)](_0xd9bd7d[0x0]['id'],_0x490f84(0x1c1),_0x490f84(0x1f9),_0x4a9c1e,[]):_0x14d7c4[_0x490f84(0x1b5)](_0xd9bd7d[0x0]['id'],_0x490f84(0x1ba)+_0xd9bd7d[0x0][_0x490f84(0x19e)]+'*','Group\x20Settings\x20Change\x20Message',_0x4a9c1e,[]);}}}),_0x14d7c4['ev']['on'](_0x5c07c0(0x1ce),async _0xcb4f4e=>{const _0x2c0253=_0x5c07c0;console['log'](_0xcb4f4e);try{let _0x523295=await _0x14d7c4['groupMetadata'](_0xcb4f4e['id']),_0x449163=_0xcb4f4e['participants'];for(let _0x4609c9 of _0x449163){try{ppuser=await _0x14d7c4[_0x2c0253(0x1ac)](_0x4609c9,_0x2c0253(0x1c6));}catch{ppuser=_0x2c0253(0x1cf);}try{ppgroup=await _0x14d7c4[_0x2c0253(0x1ac)](_0xcb4f4e['id'],_0x2c0253(0x1c6));}catch{ppgroup='https://i0.wp.com/www.gambarunik.id/wp-content/uploads/2019/06/Top-Gambar-Foto-Profil-Kosong-Lucu-Tergokil-.jpg';}if(_0xcb4f4e[_0x2c0253(0x1ff)]=='add')_0x14d7c4['sendMessage'](_0xcb4f4e['id'],{'image':{'url':ppuser},'contextInfo':{'mentionedJid':[_0x4609c9]},'caption':_0x2c0253(0x17e)+_0x523295[_0x2c0253(0x19e)]+'\x20@'+_0x4609c9['split']('@')[0x0]});else _0xcb4f4e['action']==_0x2c0253(0x201)&&_0x14d7c4[_0x2c0253(0x198)](_0xcb4f4e['id'],{'image':{'url':ppuser},'contextInfo':{'mentionedJid':[_0x4609c9]},'caption':'@'+_0x4609c9[_0x2c0253(0x1df)]('@')[0x0]+'\x20Leaving\x20To\x20'+_0x523295[_0x2c0253(0x19e)]});}}catch(_0x47709a){console[_0x2c0253(0x211)](_0x47709a);}}),_0x14d7c4[_0x5c07c0(0x1d7)]=_0x196b7c=>{const _0xd405cb=_0x5c07c0;if(!_0x196b7c)return _0x196b7c;if(/:\d+@/gi[_0xd405cb(0x207)](_0x196b7c)){let _0x3b514f=jidDecode(_0x196b7c)||{};return _0x3b514f[_0xd405cb(0x232)]&&_0x3b514f['server']&&_0x3b514f[_0xd405cb(0x232)]+'@'+_0x3b514f[_0xd405cb(0x189)]||_0x196b7c;}else return _0x196b7c;},_0x14d7c4['ev']['on'](_0x5c07c0(0x183),_0x4241a5=>{const _0x36383e=_0x5c07c0;for(let _0x31d5ee of _0x4241a5){let _0x52371c=_0x14d7c4[_0x36383e(0x1d7)](_0x31d5ee['id']);if(store&&store['contacts'])store['contacts'][_0x52371c]={'id':_0x52371c,'name':_0x31d5ee['notify']};}}),_0x14d7c4[_0x5c07c0(0x1b3)]=(_0x16bd40,_0x4c6716=![])=>{const _0x44aaf5=_0x5c07c0;id=_0x14d7c4[_0x44aaf5(0x1d7)](_0x16bd40),_0x4c6716=_0x14d7c4[_0x44aaf5(0x1dc)]||_0x4c6716;let _0x7e9db5;if(id[_0x44aaf5(0x231)](_0x44aaf5(0x1be)))return new Promise(async _0xcef72a=>{const _0x51ca86=_0x44aaf5;_0x7e9db5=store[_0x51ca86(0x20a)][id]||{};if(!(_0x7e9db5[_0x51ca86(0x190)]||_0x7e9db5['subject']))_0x7e9db5=_0x14d7c4['groupMetadata'](id)||{};_0xcef72a(_0x7e9db5[_0x51ca86(0x190)]||_0x7e9db5[_0x51ca86(0x19e)]||PhoneNumber('+'+id[_0x51ca86(0x1ca)](_0x51ca86(0x22f),''))[_0x51ca86(0x197)](_0x51ca86(0x1f7)));});else _0x7e9db5=id==='[email protected]'?{'id':id,'name':_0x44aaf5(0x1e4)}:id===_0x14d7c4['decodeJid'](_0x14d7c4[_0x44aaf5(0x232)]['id'])?_0x14d7c4[_0x44aaf5(0x232)]:store[_0x44aaf5(0x20a)][id]||{};return(_0x4c6716?'':_0x7e9db5[_0x44aaf5(0x190)])||_0x7e9db5['subject']||_0x7e9db5[_0x44aaf5(0x1d9)]||PhoneNumber('+'+_0x16bd40[_0x44aaf5(0x1ca)](_0x44aaf5(0x22f),''))['getNumber'](_0x44aaf5(0x1f7));},_0x14d7c4[_0x5c07c0(0x1fb)]=async(_0x409b6f,_0x5a7a93,_0x50dd58='',_0x5568f0={})=>{const _0x42a54b=_0x5c07c0;let _0x49e9c0=[];for(let _0xfce842 of _0x5a7a93){_0x49e9c0[_0x42a54b(0x22b)]({'displayName':await _0x14d7c4['getName'](_0xfce842+'@s.whatsapp.net'),'vcard':_0x42a54b(0x19c)+await _0x14d7c4['getName'](_0xfce842+'@s.whatsapp.net')+_0x42a54b(0x1cc)+await _0x14d7c4[_0x42a54b(0x1b3)](_0xfce842+_0x42a54b(0x22f))+_0x42a54b(0x1c2)+_0xfce842+':'+_0xfce842+_0x42a54b(0x20e)});}_0x14d7c4[_0x42a54b(0x198)](_0x409b6f,{'contacts':{'displayName':_0x49e9c0[_0x42a54b(0x17f)]+'\x20Kontak','contacts':_0x49e9c0},..._0x5568f0},{'quoted':_0x50dd58});},_0x14d7c4['setStatus']=_0x43df97=>{const _0x5b8ac9=_0x5c07c0;return _0x14d7c4[_0x5b8ac9(0x1ae)]({'tag':'iq','attrs':{'to':'@s.whatsapp.net','type':'set','xmlns':_0x5b8ac9(0x1d8)},'content':[{'tag':_0x5b8ac9(0x1d8),'attrs':{},'content':Buffer['from'](_0x43df97,_0x5b8ac9(0x18b))}]}),_0x43df97;},_0x14d7c4[_0x5c07c0(0x18a)]=!![],_0x14d7c4['serializeM']=_0x560b4d=>smsg(_0x14d7c4,_0x560b4d,store),_0x14d7c4['ev']['on']('connection.update',async _0x12f50a=>{const _0x204075=_0x5c07c0,{connection:_0x43b88b,lastDisconnect:_0x4dbdff}=_0x12f50a;if(_0x43b88b===_0x204075(0x1b4)){let _0x1fa826=new Boom(_0x4dbdff?.[_0x204075(0x213)])?.[_0x204075(0x1bf)][_0x204075(0x1ec)];if(_0x1fa826===DisconnectReason[_0x204075(0x18f)])console[_0x204075(0x211)]('Bad\x20Session\x20File,\x20Please\x20Delete\x20Session\x20and\x20Scan\x20Again'),_0x14d7c4[_0x204075(0x20d)]();else{if(_0x1fa826===DisconnectReason['connectionClosed'])console['log']('Connection\x20closed,\x20reconnecting....'),startliaacans();else{if(_0x1fa826===DisconnectReason[_0x204075(0x212)])console['log'](_0x204075(0x199)),startliaacans();else{if(_0x1fa826===DisconnectReason[_0x204075(0x17c)])console[_0x204075(0x211)](_0x204075(0x220)),_0x14d7c4[_0x204075(0x20d)]();else{if(_0x1fa826===DisconnectReason['loggedOut'])console[_0x204075(0x211)]('Device\x20Logged\x20Out,\x20Please\x20Scan\x20Again\x20And\x20Run.'),_0x14d7c4[_0x204075(0x20d)]();else{if(_0x1fa826===DisconnectReason['restartRequired'])console[_0x204075(0x211)](_0x204075(0x1bc)),startliaacans();else{if(_0x1fa826===DisconnectReason[_0x204075(0x22a)])console[_0x204075(0x211)](_0x204075(0x21b)),startliaacans();else _0x14d7c4[_0x204075(0x230)](_0x204075(0x1fd)+_0x1fa826+'|'+_0x43b88b);}}}}}}}console[_0x204075(0x211)](_0x204075(0x1d2),_0x12f50a);}),_0x14d7c4['ev']['on'](_0x5c07c0(0x205),saveState),_0x14d7c4[_0x5c07c0(0x1ed)]=(_0x51f25b,_0x21127d='',_0x34be3a='',_0x979ef8='',_0x55cf7f='',_0x56e603=[],_0x48f94a)=>{const _0x42fc37=_0x5c07c0;let _0xe0526=_0x56e603;var _0x3e9751={'text':_0x21127d,'footer':_0x34be3a,'title':_0x979ef8,'buttonText':_0x55cf7f,'sections':_0xe0526};_0x14d7c4[_0x42fc37(0x198)](_0x51f25b,_0x3e9751,{'quoted':_0x48f94a});},_0x14d7c4[_0x5c07c0(0x1b5)]=async(_0x1a9d26,_0x3c3916='',_0x162cc3='',_0x2e5fdf,_0x56c1a7=[],_0x50fc6b={})=>{const _0x135d1e=_0x5c07c0;let _0x4257ad=await prepareWAMessageMedia({'image':_0x2e5fdf},{'upload':_0x14d7c4[_0x135d1e(0x1a6)]});var _0xf4b05b=generateWAMessageFromContent(m['chat'],proto[_0x135d1e(0x1f2)][_0x135d1e(0x1e6)]({'templateMessage':{'hydratedTemplate':{'imageMessage':_0x4257ad[_0x135d1e(0x1d3)],'hydratedContentText':_0x3c3916,'hydratedFooterText':_0x162cc3,'hydratedButtons':_0x56c1a7}}}),_0x50fc6b);_0x14d7c4[_0x135d1e(0x20b)](_0x1a9d26,_0xf4b05b[_0x135d1e(0x1a3)],{'messageId':_0xf4b05b[_0x135d1e(0x182)]['id']});},_0x14d7c4[_0x5c07c0(0x192)]=async(_0x59bccc,_0x303845='',_0x25cd5a='',_0x325a5f,_0x4895b3=[],_0x15d19d,_0x568fa3={})=>{const _0x45cadd=_0x5c07c0;_0x14d7c4[_0x45cadd(0x198)](_0x59bccc,{'image':_0x325a5f,'caption':_0x303845,'footer':_0x25cd5a,'templateButtons':_0x4895b3,..._0x568fa3});},_0x14d7c4[_0x5c07c0(0x1bb)]=(_0x5a29e3,_0x1abb12=[],_0x3ac12c,_0x224ee6,_0x1a34d6='',_0xcabea2={})=>{const _0x4b1791=_0x5c07c0;let _0x33e588={'text':_0x3ac12c,'footer':_0x224ee6,'buttons':_0x1abb12,'headerType':0x2,..._0xcabea2};_0x14d7c4[_0x4b1791(0x198)](_0x5a29e3,_0x33e588,{'quoted':_0x1a34d6,..._0xcabea2});},_0x14d7c4[_0x5c07c0(0x22e)]=(_0xf57bdc,_0x213852,_0x2d76e4='',_0x590aa8)=>_0x14d7c4[_0x5c07c0(0x198)](_0xf57bdc,{'text':_0x213852,..._0x590aa8},{'quoted':_0x2d76e4}),_0x14d7c4[_0x5c07c0(0x217)]=async(_0x52de4f,_0x1a067a,_0x30636d='',_0x2ac13e='',_0x2a1000)=>{const _0x19ab98=_0x5c07c0;let _0x312317=Buffer[_0x19ab98(0x18d)](_0x1a067a)?_0x1a067a:/^data:.*?\/.*?;base64,/i[_0x19ab98(0x207)](_0x1a067a)?Buffer[_0x19ab98(0x1b9)](_0x1a067a[_0x19ab98(0x1df)]`,`[0x1],_0x19ab98(0x227)):/^https?:\/\//[_0x19ab98(0x207)](_0x1a067a)?await await getBuffer(_0x1a067a):fs[_0x19ab98(0x228)](_0x1a067a)?fs[_0x19ab98(0x202)](_0x1a067a):Buffer['alloc'](0x0);return await _0x14d7c4[_0x19ab98(0x198)](_0x52de4f,{'image':_0x312317,'caption':_0x30636d,..._0x2a1000},{'quoted':_0x2ac13e});},_0x14d7c4[_0x5c07c0(0x1da)]=async(_0x4c8b48,_0x34fec8,_0x1b84e8='',_0x389236='',_0x52dda6=![],_0x127dc5)=>{const _0x4b8c16=_0x5c07c0;let _0x2bb20f=Buffer[_0x4b8c16(0x18d)](_0x34fec8)?_0x34fec8:/^data:.*?\/.*?;base64,/i[_0x4b8c16(0x207)](_0x34fec8)?Buffer[_0x4b8c16(0x1b9)](_0x34fec8[_0x4b8c16(0x1df)]`,`[0x1],_0x4b8c16(0x227)):/^https?:\/\//[_0x4b8c16(0x207)](_0x34fec8)?await await getBuffer(_0x34fec8):fs[_0x4b8c16(0x228)](_0x34fec8)?fs['readFileSync'](_0x34fec8):Buffer[_0x4b8c16(0x1e2)](0x0);return await _0x14d7c4[_0x4b8c16(0x198)](_0x4c8b48,{'video':_0x2bb20f,'caption':_0x1b84e8,'gifPlayback':_0x52dda6,..._0x127dc5},{'quoted':_0x389236});},_0x14d7c4[_0x5c07c0(0x1f0)]=async(_0xf98170,_0x3d9e92,_0x2d5895='',_0x14d6d3=![],_0x1b72ae)=>{const _0x539430=_0x5c07c0;let _0x43ec7d=Buffer[_0x539430(0x18d)](_0x3d9e92)?_0x3d9e92:/^data:.*?\/.*?;base64,/i['test'](_0x3d9e92)?Buffer['from'](_0x3d9e92[_0x539430(0x1df)]`,`[0x1],'base64'):/^https?:\/\//[_0x539430(0x207)](_0x3d9e92)?await await getBuffer(_0x3d9e92):fs['existsSync'](_0x3d9e92)?fs[_0x539430(0x202)](_0x3d9e92):Buffer[_0x539430(0x1e2)](0x0);return await _0x14d7c4[_0x539430(0x198)](_0xf98170,{'audio':_0x43ec7d,'ptt':_0x14d6d3,..._0x1b72ae},{'quoted':_0x2d5895});},_0x14d7c4[_0x5c07c0(0x1e9)]=async(_0x4732dd,_0xeedeeb,_0x5140ef,_0x4889cd={})=>_0x14d7c4['sendMessage'](_0x4732dd,{'text':_0xeedeeb,'contextInfo':{'mentionedJid':[..._0xeedeeb[_0x5c07c0(0x1fe)](/@(\d{0,16})/g)][_0x5c07c0(0x21f)](_0x248fee=>_0x248fee[0x1]+_0x5c07c0(0x22f))},..._0x4889cd},{'quoted':_0x5140ef}),_0x14d7c4[_0x5c07c0(0x1a5)]=async(_0x789599,_0x174707,_0x394c5e,_0x3754b9={})=>{const _0xaa3ac2=_0x5c07c0;let _0xb203b6=Buffer['isBuffer'](_0x174707)?_0x174707:/^data:.*?\/.*?;base64,/i[_0xaa3ac2(0x207)](_0x174707)?Buffer[_0xaa3ac2(0x1b9)](_0x174707[_0xaa3ac2(0x1df)]`,`[0x1],_0xaa3ac2(0x227)):/^https?:\/\//[_0xaa3ac2(0x207)](_0x174707)?await await getBuffer(_0x174707):fs[_0xaa3ac2(0x228)](_0x174707)?fs['readFileSync'](_0x174707):Buffer[_0xaa3ac2(0x1e2)](0x0),_0x513a03;return _0x3754b9&&(_0x3754b9[_0xaa3ac2(0x1b2)]||_0x3754b9[_0xaa3ac2(0x1d4)])?_0x513a03=await writeExifImg(_0xb203b6,_0x3754b9):_0x513a03=await imageToWebp(_0xb203b6),await _0x14d7c4['sendMessage'](_0x789599,{'sticker':{'url':_0x513a03},..._0x3754b9},{'quoted':_0x394c5e}),_0x513a03;},_0x14d7c4['sendVideoAsSticker']=async(_0x1a5200,_0x3908de,_0x9a9806,_0x13b63d={})=>{const _0x46eda2=_0x5c07c0;let _0x410953=Buffer['isBuffer'](_0x3908de)?_0x3908de:/^data:.*?\/.*?;base64,/i[_0x46eda2(0x207)](_0x3908de)?Buffer[_0x46eda2(0x1b9)](_0x3908de[_0x46eda2(0x1df)]`,`[0x1],_0x46eda2(0x227)):/^https?:\/\//[_0x46eda2(0x207)](_0x3908de)?await await getBuffer(_0x3908de):fs['existsSync'](_0x3908de)?fs[_0x46eda2(0x202)](_0x3908de):Buffer[_0x46eda2(0x1e2)](0x0),_0x77dd80;return _0x13b63d&&(_0x13b63d[_0x46eda2(0x1b2)]||_0x13b63d[_0x46eda2(0x1d4)])?_0x77dd80=await writeExifVid(_0x410953,_0x13b63d):_0x77dd80=await videoToWebp(_0x410953),await _0x14d7c4[_0x46eda2(0x198)](_0x1a5200,{'sticker':{'url':_0x77dd80},..._0x13b63d},{'quoted':_0x9a9806}),_0x77dd80;},_0x14d7c4[_0x5c07c0(0x1f4)]=async(_0x248bc0,_0xf208e0,_0x177e3f=!![])=>{const _0x9c959d=_0x5c07c0;let _0x20adc0=_0x248bc0[_0x9c959d(0x195)]?_0x248bc0[_0x9c959d(0x195)]:_0x248bc0,_0x5142d9=(_0x248bc0[_0x9c959d(0x195)]||_0x248bc0)[_0x9c959d(0x1e7)]||'',_0x174d13=_0x248bc0[_0x9c959d(0x1af)]?_0x248bc0[_0x9c959d(0x1af)][_0x9c959d(0x1ca)](/Message/gi,''):_0x5142d9['split']('/')[0x0];const _0x3cfe74=await downloadContentFromMessage(_0x20adc0,_0x174d13);let _0x47db8a=Buffer[_0x9c959d(0x1b9)]([]);for await(const _0x3ff3b2 of _0x3cfe74){_0x47db8a=Buffer[_0x9c959d(0x224)]([_0x47db8a,_0x3ff3b2]);}let _0x4ed8e4=await FileType[_0x9c959d(0x226)](_0x47db8a);return trueFileName=_0x177e3f?_0xf208e0+'.'+_0x4ed8e4[_0x9c959d(0x188)]:_0xf208e0,await fs['writeFileSync'](trueFileName,_0x47db8a),trueFileName;},_0x14d7c4[_0x5c07c0(0x1e8)]=async _0x5073cb=>{const _0x43a1ad=_0x5c07c0;let _0x3d8518=(_0x5073cb[_0x43a1ad(0x195)]||_0x5073cb)['mimetype']||'',_0x4db99d=_0x5073cb[_0x43a1ad(0x1af)]?_0x5073cb['mtype'][_0x43a1ad(0x1ca)](/Message/gi,''):_0x3d8518['split']('/')[0x0];const _0x26bbc1=await downloadContentFromMessage(_0x5073cb,_0x4db99d);let _0x6d8f60=Buffer[_0x43a1ad(0x1b9)]([]);for await(const _0x3ab017 of _0x26bbc1){_0x6d8f60=Buffer['concat']([_0x6d8f60,_0x3ab017]);}return _0x6d8f60;},_0x14d7c4['sendMedia']=async(_0x1bc0f0,_0x1c7cb6,_0x922ca7='',_0x2655f5='',_0x43c329='',_0x1b8954={})=>{const _0x46615e=_0x5c07c0;let _0x3ef5c0=await _0x14d7c4[_0x46615e(0x1c8)](_0x1c7cb6,!![]),{mime:_0x4f7c0e,ext:_0x5c8830,res:_0x4f755d,data:_0x272461,filename:_0x2d1480}=_0x3ef5c0;if(_0x4f755d&&_0x4f755d[_0x46615e(0x1d8)]!==0xc8||file['length']<=0x10000)try{throw{'json':JSON['parse'](file[_0x46615e(0x186)]())};}catch(_0x4a5f95){if(_0x4a5f95['json'])throw _0x4a5f95[_0x46615e(0x1b8)];}let _0xd49a9e='',_0x4bf896=_0x4f7c0e,_0x58e532=_0x2d1480;if(_0x1b8954[_0x46615e(0x225)])_0xd49a9e=_0x46615e(0x1e3);if(_0x1b8954[_0x46615e(0x1cd)]||/webp/[_0x46615e(0x207)](_0x4f7c0e)){let {writeExif:_0x3f539b}=require('./message/exif'),_0x4d6e2a={'mimetype':_0x4f7c0e,'data':_0x272461};_0x58e532=await _0x3f539b(_0x4d6e2a,{'packname':_0x1b8954[_0x46615e(0x1b2)]?_0x1b8954[_0x46615e(0x1b2)]:global[_0x46615e(0x1b2)],'author':_0x1b8954[_0x46615e(0x1d4)]?_0x1b8954[_0x46615e(0x1d4)]:global[_0x46615e(0x1d4)],'categories':_0x1b8954['categories']?_0x1b8954[_0x46615e(0x1c3)]:[]}),await fs[_0x46615e(0x194)][_0x46615e(0x1d5)](_0x2d1480),_0xd49a9e='sticker',_0x4bf896=_0x46615e(0x218);}else{if(/image/[_0x46615e(0x207)](_0x4f7c0e))_0xd49a9e=_0x46615e(0x1c6);else{if(/video/[_0x46615e(0x207)](_0x4f7c0e))_0xd49a9e=_0x46615e(0x229);else{if(/audio/[_0x46615e(0x207)](_0x4f7c0e))_0xd49a9e=_0x46615e(0x1e5);else _0xd49a9e=_0x46615e(0x1e3);}}}return await _0x14d7c4[_0x46615e(0x198)](_0x1bc0f0,{[_0xd49a9e]:{'url':_0x58e532},'caption':_0x2655f5,'mimetype':_0x4bf896,'fileName':_0x922ca7,..._0x1b8954},{'quoted':_0x43c329,..._0x1b8954}),fs[_0x46615e(0x194)][_0x46615e(0x1d5)](_0x58e532);},_0x14d7c4['copyNForward']=async(_0xce3f87,_0x100a3b,_0x4ce0fe=![],_0x3e7dc1={})=>{const _0x3f1bf4=_0x5c07c0;let _0x2e42aa;_0x3e7dc1[_0x3f1bf4(0x22c)]&&(_0x100a3b[_0x3f1bf4(0x1a3)]=_0x100a3b[_0x3f1bf4(0x1a3)]&&_0x100a3b[_0x3f1bf4(0x1a3)][_0x3f1bf4(0x17d)]&&_0x100a3b['message'][_0x3f1bf4(0x17d)][_0x3f1bf4(0x1a3)]?_0x100a3b['message'][_0x3f1bf4(0x17d)][_0x3f1bf4(0x1a3)]:_0x100a3b[_0x3f1bf4(0x1a3)]||undefined,_0x2e42aa=Object[_0x3f1bf4(0x187)](_0x100a3b['message']['viewOnceMessage'][_0x3f1bf4(0x1a3)])[0x0],delete(_0x100a3b[_0x3f1bf4(0x1a3)]&&_0x100a3b['message'][_0x3f1bf4(0x1a4)]?_0x100a3b['message'][_0x3f1bf4(0x1a4)]:_0x100a3b['message']||undefined),delete _0x100a3b[_0x3f1bf4(0x1a3)][_0x3f1bf4(0x20c)][_0x3f1bf4(0x1a3)][_0x2e42aa]['viewOnce'],_0x100a3b['message']={..._0x100a3b[_0x3f1bf4(0x1a3)][_0x3f1bf4(0x20c)][_0x3f1bf4(0x1a3)]});let _0x41bc39=Object[_0x3f1bf4(0x187)](_0x100a3b[_0x3f1bf4(0x1a3)])[0x0],_0x2fb494=await generateForwardMessageContent(_0x100a3b,_0x4ce0fe),_0x105414=Object[_0x3f1bf4(0x187)](_0x2fb494)[0x0],_0x3dffb8={};if(_0x41bc39!='conversation')_0x3dffb8=_0x100a3b[_0x3f1bf4(0x1a3)][_0x41bc39]['contextInfo'];_0x2fb494[_0x105414][_0x3f1bf4(0x21a)]={..._0x3dffb8,..._0x2fb494[_0x105414][_0x3f1bf4(0x21a)]};const _0x4fbcf3=await generateWAMessageFromContent(_0xce3f87,_0x2fb494,_0x3e7dc1?{..._0x2fb494[_0x105414],..._0x3e7dc1,..._0x3e7dc1[_0x3f1bf4(0x21a)]?{'contextInfo':{..._0x2fb494[_0x105414][_0x3f1bf4(0x21a)],..._0x3e7dc1[_0x3f1bf4(0x21a)]}}:{}}:{});return await _0x14d7c4[_0x3f1bf4(0x20b)](_0xce3f87,_0x4fbcf3[_0x3f1bf4(0x1a3)],{'messageId':_0x4fbcf3['key']['id']}),_0x4fbcf3;},_0x14d7c4[_0x5c07c0(0x200)]=(_0x5cded5,_0x457480,_0x3dd9db='',_0x2182da=_0x14d7c4['user']['id'],_0xf30f98={})=>{const _0x40fe14=_0x5c07c0;let _0x51225f=Object[_0x40fe14(0x187)](_0x457480[_0x40fe14(0x1a3)])[0x0],_0x23ca21=_0x51225f===_0x40fe14(0x17d);_0x23ca21&&(_0x51225f=Object['keys'](_0x457480[_0x40fe14(0x1a3)][_0x40fe14(0x17d)][_0x40fe14(0x1a3)])[0x0]);let _0x4c5369=_0x23ca21?_0x457480[_0x40fe14(0x1a3)][_0x40fe14(0x17d)]['message']:_0x457480[_0x40fe14(0x1a3)],_0x1ebee6=_0x4c5369[_0x51225f];if(typeof _0x1ebee6==='string')_0x4c5369[_0x51225f]=_0x3dd9db||_0x1ebee6;else{if(_0x1ebee6[_0x40fe14(0x222)])_0x1ebee6[_0x40fe14(0x222)]=_0x3dd9db||_0x1ebee6[_0x40fe14(0x222)];else{if(_0x1ebee6[_0x40fe14(0x1cb)])_0x1ebee6[_0x40fe14(0x1cb)]=_0x3dd9db||_0x1ebee6[_0x40fe14(0x1cb)];}}if(typeof _0x1ebee6!==_0x40fe14(0x184))_0x4c5369[_0x51225f]={..._0x1ebee6,..._0xf30f98};if(_0x457480[_0x40fe14(0x182)][_0x40fe14(0x20f)])_0x2182da=_0x457480[_0x40fe14(0x182)][_0x40fe14(0x20f)]=_0x2182da||_0x457480[_0x40fe14(0x182)][_0x40fe14(0x20f)];else{if(_0x457480[_0x40fe14(0x182)][_0x40fe14(0x20f)])_0x2182da=_0x457480['key']['participant']=_0x2182da||_0x457480['key']['participant'];}if(_0x457480['key'][_0x40fe14(0x191)][_0x40fe14(0x1c5)]('@s.whatsapp.net'))_0x2182da=_0x2182da||_0x457480[_0x40fe14(0x182)][_0x40fe14(0x191)];else{if(_0x457480[_0x40fe14(0x182)][_0x40fe14(0x191)]['includes']('@broadcast'))_0x2182da=_0x2182da||_0x457480[_0x40fe14(0x182)]['remoteJid'];}return _0x457480['key'][_0x40fe14(0x191)]=_0x5cded5,_0x457480['key']['fromMe']=_0x2182da===_0x14d7c4['user']['id'],proto[_0x40fe14(0x216)][_0x40fe14(0x1e6)](_0x457480);},_0x14d7c4[_0x5c07c0(0x1c8)]=async(_0x569671,_0x4b6510)=>{const _0x5a247c=_0x5c07c0;let _0x2e0dd3,_0x2476be=Buffer[_0x5a247c(0x18d)](_0x569671)?_0x569671:/^data:.*?\/.*?;base64,/i[_0x5a247c(0x207)](_0x569671)?Buffer[_0x5a247c(0x1b9)](_0x569671[_0x5a247c(0x1df)]`,`[0x1],_0x5a247c(0x227)):/^https?:\/\//['test'](_0x569671)?await(_0x2e0dd3=await getBuffer(_0x569671)):fs[_0x5a247c(0x228)](_0x569671)?(filename=_0x569671,fs[_0x5a247c(0x202)](_0x569671)):typeof _0x569671===_0x5a247c(0x184)?_0x569671:Buffer[_0x5a247c(0x1e2)](0x0),_0x1b7336=await FileType[_0x5a247c(0x226)](_0x2476be)||{'mime':_0x5a247c(0x210),'ext':'.bin'};filename=path['join'](__filename,_0x5a247c(0x209)+new Date()*0x1+'.'+_0x1b7336[_0x5a247c(0x188)]);if(_0x2476be&&_0x4b6510)fs[_0x5a247c(0x194)]['writeFile'](filename,_0x2476be);return{'res':_0x2e0dd3,'filename':filename,'size':await getSizeMedia(_0x2476be),..._0x1b7336,'data':_0x2476be};},_0x14d7c4;}startliaacans();let file=require[_0x40ce22(0x206)](__filename);fs[_0x40ce22(0x1a0)](file,()=>{const _0x463e23=_0x40ce22;fs[_0x463e23(0x1aa)](file),console['log'](chalk[_0x463e23(0x204)](_0x463e23(0x19f)+__filename)),delete require['cache'][file],require(file);});