This repository has been archived by the owner on Oct 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 473
/
franxx.js
1 lines (1 loc) · 37.5 KB
/
franxx.js
1
const _0x96b11d=_0x2a4e;(function(_0xc9ed76,_0x204ce0){const _0x639691=_0x2a4e,_0x545a85=_0xc9ed76();while(!![]){try{const _0x37ee51=-parseInt(_0x639691(0x117))/0x1+parseInt(_0x639691(0x1c5))/0x2*(-parseInt(_0x639691(0x1ea))/0x3)+-parseInt(_0x639691(0x13a))/0x4*(parseInt(_0x639691(0x217))/0x5)+parseInt(_0x639691(0x171))/0x6+parseInt(_0x639691(0x16c))/0x7*(parseInt(_0x639691(0x10d))/0x8)+parseInt(_0x639691(0x1a1))/0x9+parseInt(_0x639691(0x1a5))/0xa*(parseInt(_0x639691(0x1e3))/0xb);if(_0x37ee51===_0x204ce0)break;else _0x545a85['push'](_0x545a85['shift']());}catch(_0x4261da){_0x545a85['push'](_0x545a85['shift']());}}}(_0x46f2,0x31786),require(_0x96b11d(0x1bd)),require(_0x96b11d(0x105)));const {default:ZeroTwoIncConnect,useSingleFileAuthState,DisconnectReason,fetchLatestBaileysVersion,generateForwardMessageContent,prepareWAMessageMedia,generateWAMessageFromContent,generateMessageID,downloadContentFromMessage,makeInMemoryStore,jidDecode,proto}=require('@adiwajshing/baileys'),pino=require(_0x96b11d(0x1ab)),fs=require('fs');let pgdb=process[_0x96b11d(0x1f7)]['DATABASE_URL']||'none';const express=require(_0x96b11d(0x17a)),chalk=require(_0x96b11d(0x14c)),FileType=require(_0x96b11d(0x15e)),path=require('path'),{log,pint,bgPint}=require(_0x96b11d(0x1b9)),{Boom}=require(_0x96b11d(0x11b)),{exec,spawn,execSync}=require('child_process'),PhoneNumber=require(_0x96b11d(0x1b7)),Config=require(_0x96b11d(0x190)),{imageToWebp,videoToWebp,writeExifImg,writeExifVid}=require(_0x96b11d(0x1dc)),{smsg,formatp,formatDate,getTime,isUrl,clockString,runtime,fetchJson,getBuffer,jsonformat,format,parseMention,GIFBufferToVideoBuffer,getRandom,await,sleep,getSizeMedia,generateMessageTag}=require(_0x96b11d(0x132)),clui=require('clui'),{Spinner}=clui,prompt=require(_0x96b11d(0x195))({'sigint':!![]}),figlet=require('figlet'),{Pool}=require('pg'),mongoose=require(_0x96b11d(0x214)),qrcode=require(_0x96b11d(0x107)),{color,bgcolor}=require(_0x96b11d(0x1c1)),moment=require('moment-timezone');let NODE_TLS_REJECT_UNAUTHORIZED=0x0;const proConfig={'connectionString':pgdb,'ssl':{'rejectUnauthorized':![]}},pool=new Pool(proConfig);try{fs[_0x96b11d(0x139)]('./'+sessionName+_0x96b11d(0x1af));}catch(_0x5995dc){console[_0x96b11d(0x1da)](_0x96b11d(0x198));}main()['catch'](_0x298fba=>console[_0x96b11d(0x1da)](_0x298fba));function _0x2a4e(_0x1d7578,_0x58af43){const _0x46f27b=_0x46f2();return _0x2a4e=function(_0x2a4e71,_0x16fd72){_0x2a4e71=_0x2a4e71-0x102;let _0x449049=_0x46f27b[_0x2a4e71];return _0x449049;},_0x2a4e(_0x1d7578,_0x58af43);}async function main(){const _0x4dc304=_0x96b11d;await mongoose[_0x4dc304(0x16e)](mongodb);}const user=require(_0x96b11d(0x1a8)),group=require(_0x96b11d(0x1df)),status=new Spinner(chalk['cyan']('\x20Booting\x20Zero-Two\x20Bot')),starting=new Spinner(chalk[_0x96b11d(0x13f)]('\x20Preparing\x20After\x20Connect')),reconnect=new Spinner(chalk[_0x96b11d(0x14b)](_0x96b11d(0x121))),{state,saveState}=useSingleFileAuthState('./'+sessionName+_0x96b11d(0x1af));let cred,auth_row_count;function _0x46f2(){const _0x4839d1=['fromMe','contextInfo','\x0aStatus\x20:\x20Member\x20->\x20Admin\x0aGroup\x20:\x20','INSERT\x20INTO\x20auth\x20VALUES($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13);','includes','rows','\x0aitem1.TEL;waid=','writeFile','Connection...','messages.upsert','https://web.whatsapp.com/check-update?version=1&platform=web','output','ytname','advsecretkey','image/webp','getNumber','[\x20DEMOTE\x20-\x20DETECTED\x20]\x0a\x0aName\x20:\x20@','file-type','connection.update','parse','set','connectionClosed','split','asDocument','international','signalIdentities','message','packname','connectionReplaced','No\x20MongoDB\x20URI\x20provided','map','91nHONMs','relayMessage','connect','writeFileSync','cache','855156pSWZdx','\x20Contact','server','ownername','lastAccountSyncTimestamp','text','add','Happy?','location','express','sender','author','copyNForward','textSync','\x20\x0a𝗪𝗲𝗹𝗰𝗼𝗺𝗲\x20𝘁𝗼\x20\x20','toBuffer','WebMessageInfo','promises','signedIdentityKey','DD/MM/YYYY','sendButtonText','botname','concat','WhatsApp','https://i.ibb.co/6BRf4Rc/Hans-Bot-No-Profile.png','unlink','silent','\x20Private','remoteJid','rowCount','contacts.upsert','./config','timedOut','WORKTYPE','isBuffer','downloadMediaMessage','prompt-sync','info','\x0aStatus\x20:\x20Admin\x20->\x20Member\x0aGroup\x20:\x20','Auth\x20File\x20Already\x20Deleted','matchAll','./lib/sticker.js','groupMetadata','content-type','type','firstUnuploadedPreKeyId','startsWith','MONGODB_URI','1419498tMkQWg','key','contacts.update','withoutContact','2643670QyEWlc','Asia/Kolkata','messages','./src/user','No\x20login\x20data\x20found!','parseMention','pino','image','registrationid','advSecretKey','.json','listen','setHeader','name','viewOnceMessage','mimetype','imageMessage','Creating\x20database...','awesome-phonenumber','noisekey','./lib/langcolor','\x0a𝗠𝗲𝗺𝗯𝗲𝗿\x20:\x20','application/octet-stream','stringify','./config.js','signature','Closing','noiseKey','./lib/color','connectionLost','from','viewOnce','472324gHwabj','categories','fatal','length','audio','https://i0.wp.com/www.gambarunik.id/wp-content/uploads/2019/06/Top-Gambar-Foto-Profil-Kosong-Lucu-Tergokil-.jpg','\x0a*Hi,*\x20@','@g.us','Zero-Two\x20Botto','Message','「\x20Group\x20Settings\x20Changed\x20」\x0a\x0aGroup\x20Subject\x20Has\x20Been\x20Changed\x20To\x20*','unwatchFile','asSticker','participants','conversation','\x0a\x20\x20\x20*Bot\x20Hosting\x20Tutorial*\x20gg.gg/Zero-Two-Botto\x0a\x20\x20\x20*Powered\x20by\x20𝐙𝐞𝐫𝐨\x20𝐓𝐰𝐨\x20𝐌𝐝*\x0a\x20\x20\x20','restrict','sendContact','cMod','waUploadToServer','\x0a\x20\x20\x20𝗠𝗲𝗺𝗯𝗲𝗿\x20:\x20','log','promote','./lib/exif','contacts','caption','./src/group','okedoh','Closing\x20session:\x20SessionEntry','query','11VJWdYf','demote','[email protected]','test','decodeJid','mtype','@broadcast','3YofSNo','image/png','registrationId','downloadAndSaveMediaMessage','signedprekey','join','ignore','exit','th\x0a𝗝𝗼𝗶𝗻𝗲𝗱\x20:\x20','subject','serverHasPreKeys','default','Inserting\x20login\x20data...','env','Login\x20data\x20found!','resolve','Prekey','myAppStateKeyId','readViewOnce','account','private','\x0aitem2.X-ABLabel:YouTube\x0aitem3.URL:','string','status@broadcast','close','packname2','announce','Bad\x20Session\x20File,\x20Please\x20Delete\x20Session\x20and\x20Scan\x20Again','getFile','ANOTHER\x20ONE\x20BITES\x20DUST!','identifierKey','BEGIN:VCARD\x0aVERSION:3.0\x0aN:','keys','sendMessage','creds.update','sendFile','commit;','send5ButImg','store','CREATE\x20TABLE\x20auth(noiseKey\x20text,\x20signedIdentityKey\x20text,\x20signedPreKey\x20text,\x20registrationId\x20text,\x20advSecretKey\x20text,\x20nextPreKeyId\x20text,\x20firstUnuploadedPreKeyId\x20text,\x20serverHasPreKeys\x20text,\x20account\x20text,\x20me\x20text,\x20signalIdentities\x20text,\x20lastAccountSyncTimestamp\x20text,\x20myAppStateKeyId\x20text);','sendVideo','statusCode','mongoose','Update\x20','document','70fvlhtY','https://shortlink.XeonBotncarridho.my.id/rg1oT','sendText','\x0aUse\x20*-help*\x20to\x20start\x20using\x20Zero\x20Two\x20♥️\x0a*Bot\x20Hosting\x20Video:*\x20gg.gg/Zero-Two-Botto\x0a\x0a*Powered\x20by\x20𝐙𝐞𝐫𝐨\x20𝐓𝐰𝐨\x20𝐌𝐝*\x0a\x20\x20\x20','format','public','bind','./Zero-Two.js','select\x20*\x20from\x20auth;','qrcode','./Zero-Two','endsWith','base64','user','notify','117464IzhJUo','\x20Public','sendVideoAsSticker','sendImageAsSticker','signedPreKey','\x0a\x20\x20\x20*ANOTHER\x20ONE\x20BITES\x20DUST*\x20👋\x20\x0a\x20\x20\x20@','chat','loggedOut','\x0aitem3.X-ABLabel:GitHub\x0aitem4.ADR:;;','profilePictureUrl','22828inMIWI','sendAudio','\x20\x20」\x20\x20𝗟𝗲𝗳𝘁\x20\x0a\x20\x20\x20\x20','readFileSync','@hapi/boom','setStatus','ext','util','./lib/antidelete','th\x0a\x20\x20\x20𝗧𝗶𝗺𝗲\x20:\x20','\x20Reconnecting\x20WhatsApp\x20Bot','replace','「\x20Group\x20Settings\x20Changed\x20」\x0a\x0aThe\x20Group\x20Has\x20Been\x20Opened\x20By\x20Admin,\x20Now\x20Participants\x20Can\x20Send\x20Messages\x20!','json','Pagga','\x0aitem1.X-ABLabel:Click\x20here\x20to\x20chat\x0aitem2.EMAIL;type=INTERNET:','nextprekeyid','status','fromObject','creds','existsSync','npm\x20WARN','push','sticker','@s.whatsapp.net','1.0.0','keyPair','./lib/myfuncn','fromBuffer','alloc',';;;;\x0aitem4.X-ABLabel:Region\x0aEND:VCARD','video','msg','verifiedName','unlinkSync','83964XpQGEc','participant','action','serverhasprekeys','getName','cyan','ephemeralMessage','serializeM','assign','currentVersion','UPDATE\x20auth\x20SET\x20noiseKey\x20=\x20$1,\x20signedIdentityKey\x20=\x20$2,\x20signedPreKey\x20=\x20$3,\x20registrationId\x20=\x20$4,\x20advSecretKey\x20=\x20$5,\x20nextPreKeyId\x20=\x20$6,\x20firstUnuploadedPreKeyId\x20=\x20$7,\x20serverHasPreKeys\x20=\x20$8,\x20account\x20=\x20$9,\x20me\x20=\x20$10,\x20signalIdentities\x20=\x20$11,\x20lastAccountSyncTimestamp\x20=\x20$12,\x20myAppStateKeyId\x20=\x20$13;','Zero\x20Two','badSession','invalid','signalidentities','「\x20Group\x20Settings\x20Changed\x20」\x0a\x0aThe\x20Group\x20Has\x20Been\x20Closed\x20By\x20Admin,\x20Now\x20Only\x20Admin\x20Can\x20Send\x20Messages\x20!','[\x20PROMOTE\x20-\x20DETECTED\x20]\x0a\x0aName\x20:\x20@','redBright','chalk'];_0x46f2=function(){return _0x4839d1;};return _0x46f2();}async function fetchauth(){const _0x1145ed=_0x96b11d;try{auth_result=await pool[_0x1145ed(0x1e2)](_0x1145ed(0x106)),console[_0x1145ed(0x1da)]('Fetching\x20login\x20data...'),auth_row_count=await auth_result[_0x1145ed(0x18e)];let _0x4f52b6=auth_result[_0x1145ed(0x152)][0x0];auth_row_count==0x0?console['log'](_0x1145ed(0x1a9)):(console['log'](_0x1145ed(0x1f8)),cred={'creds':{'noiseKey':JSON[_0x1145ed(0x160)](_0x4f52b6[_0x1145ed(0x1b8)]),'signedIdentityKey':JSON['parse'](_0x4f52b6['signedidentitykey']),'signedPreKey':JSON[_0x1145ed(0x160)](_0x4f52b6[_0x1145ed(0x1ee)]),'registrationId':Number(_0x4f52b6[_0x1145ed(0x1ad)]),'advSecretKey':_0x4f52b6[_0x1145ed(0x15a)],'nextPreKeyId':Number(_0x4f52b6[_0x1145ed(0x127)]),'firstUnuploadedPreKeyId':Number(_0x4f52b6['firstunuploadedprekeyid']),'serverHasPreKeys':Boolean(_0x4f52b6[_0x1145ed(0x13d)]),'account':JSON['parse'](_0x4f52b6[_0x1145ed(0x1fd)]),'me':JSON[_0x1145ed(0x160)](_0x4f52b6['me']),'signalIdentities':JSON[_0x1145ed(0x160)](_0x4f52b6[_0x1145ed(0x148)]),'lastAccountSyncTimestamp':0x0,'myAppStateKeyId':_0x4f52b6['myappstatekeyid']},'keys':state[_0x1145ed(0x20a)]},cred[_0x1145ed(0x12a)][_0x1145ed(0x1c0)][_0x1145ed(0x1fe)]=Buffer['from'](cred[_0x1145ed(0x12a)]['noiseKey'][_0x1145ed(0x1fe)]),cred[_0x1145ed(0x12a)][_0x1145ed(0x1c0)]['public']=Buffer[_0x1145ed(0x1c3)](cred[_0x1145ed(0x12a)][_0x1145ed(0x1c0)][_0x1145ed(0x103)]),cred[_0x1145ed(0x12a)][_0x1145ed(0x183)]['private']=Buffer['from'](cred[_0x1145ed(0x12a)][_0x1145ed(0x183)][_0x1145ed(0x1fe)]),cred[_0x1145ed(0x12a)][_0x1145ed(0x183)][_0x1145ed(0x103)]=Buffer['from'](cred[_0x1145ed(0x12a)][_0x1145ed(0x183)][_0x1145ed(0x103)]),cred['creds'][_0x1145ed(0x111)][_0x1145ed(0x131)][_0x1145ed(0x1fe)]=Buffer[_0x1145ed(0x1c3)](cred[_0x1145ed(0x12a)]['signedPreKey']['keyPair']['private']),cred['creds'][_0x1145ed(0x111)]['keyPair'][_0x1145ed(0x103)]=Buffer[_0x1145ed(0x1c3)](cred['creds']['signedPreKey']['keyPair'][_0x1145ed(0x103)]),cred[_0x1145ed(0x12a)]['signedPreKey'][_0x1145ed(0x1be)]=Buffer[_0x1145ed(0x1c3)](cred[_0x1145ed(0x12a)][_0x1145ed(0x111)][_0x1145ed(0x1be)]),cred[_0x1145ed(0x12a)][_0x1145ed(0x166)][0x0]['identifierKey']=Buffer[_0x1145ed(0x1c3)](cred[_0x1145ed(0x12a)][_0x1145ed(0x166)][0x0][_0x1145ed(0x208)]));}catch(_0xab65b8){console['log'](_0xab65b8),console[_0x1145ed(0x1da)](_0x1145ed(0x1b6)),await pool[_0x1145ed(0x1e2)](_0x1145ed(0x211)),await fetchauth();}}const store=makeInMemoryStore({'logger':pino()['child']({'level':_0x96b11d(0x18b),'stream':_0x96b11d(0x210)})}),getVersionWaweb=()=>{const _0x1f9bdb=_0x96b11d;let _0x99436e;try{let _0x2b7f0b=fetchJson(_0x1f9bdb(0x157));_0x99436e=[_0x2b7f0b[_0x1f9bdb(0x143)][_0x1f9bdb(0x122)](/[.]/g,',\x20')];}catch{_0x99436e=[0x2,0x89c,0xd];}return _0x99436e;};!process[_0x96b11d(0x1f7)][_0x96b11d(0x1a0)]&&console['log'](_0x96b11d(0x16a));const PORT=port,app=express();let QR_GENERATE=_0x96b11d(0x147);async function __START(){const _0x24d051=_0x96b11d;await fetchauth();auth_row_count!=0x0&&(state['creds']=cred[_0x24d051(0x12a)]);const _0x22ec0f=ZeroTwoIncConnect({'logger':pino({'level':_0x24d051(0x1c7)}),'printQRInTerminal':!![],'browser':['Zero-Two','Safari',_0x24d051(0x130)],'auth':state,'version':getVersionWaweb()||[0x2,0x89c,0xd]});store[_0x24d051(0x104)](_0x22ec0f['ev']),console[_0x24d051(0x1da)](color(figlet[_0x24d051(0x17e)](_0x24d051(0x1cd),{'font':_0x24d051(0x125),'horizontalLayout':_0x24d051(0x1f5),'vertivalLayout':'default','width':0x50,'whitespaceBreak':!![]}),'yellow')),_0x22ec0f['ev']['on'](_0x24d051(0x156),async _0x50588a=>{const _0x4aa640=_0x24d051;try{mek=_0x50588a[_0x4aa640(0x1a7)][0x0];if(!mek[_0x4aa640(0x167)])return;mek[_0x4aa640(0x167)]=Object[_0x4aa640(0x20a)](mek[_0x4aa640(0x167)])[0x0]===_0x4aa640(0x140)?mek[_0x4aa640(0x167)][_0x4aa640(0x140)][_0x4aa640(0x167)]:mek[_0x4aa640(0x167)];if(mek[_0x4aa640(0x1a2)]&&mek[_0x4aa640(0x1a2)][_0x4aa640(0x18d)]===_0x4aa640(0x201))return;if(!_0x22ec0f[_0x4aa640(0x103)]&&!mek[_0x4aa640(0x1a2)][_0x4aa640(0x14d)]&&_0x50588a[_0x4aa640(0x19d)]===_0x4aa640(0x10c))return;if(mek[_0x4aa640(0x1a2)]['id'][_0x4aa640(0x19f)]('BAE5')&&mek[_0x4aa640(0x1a2)]['id'][_0x4aa640(0x1c8)]===0x10)return;m=smsg(_0x22ec0f,mek,store),require(_0x4aa640(0x108))(_0x22ec0f,m,_0x50588a,store);}catch(_0x47d329){console[_0x4aa640(0x1da)](_0x47d329);}});const _0x3e48f9=console[_0x24d051(0x196)];console[_0x24d051(0x196)]=function(){const _0x4cddb4=_0x24d051;if(!require(_0x4cddb4(0x11e))[_0x4cddb4(0x102)](...arguments)[_0x4cddb4(0x151)](_0x4cddb4(0x1fa)||_0x4cddb4(0x12c)||'connection:\x20'||_0x4cddb4(0x1bf)||_0x4cddb4(0x1e1)||'Prekey'||'stale'))return _0x3e48f9(...arguments);},_0x22ec0f['ev']['on']('groups.update',async _0x7a26bb=>{const _0x253246=_0x24d051;try{ppgc=await _0x22ec0f[_0x253246(0x116)](_0x7a26bb[0x0]['id'],'image');}catch{ppgc=_0x253246(0x218);}let _0x1f5a89={'url':ppgc};if(_0x7a26bb[0x0][_0x253246(0x204)]==!![])_0x22ec0f[_0x253246(0x20f)](_0x7a26bb[0x0]['id'],_0x253246(0x149),''+global[_0x253246(0x186)],_0x1f5a89,[]);else{if(_0x7a26bb[0x0][_0x253246(0x204)]==![])_0x22ec0f[_0x253246(0x20f)](_0x7a26bb[0x0]['id'],_0x253246(0x123),''+global[_0x253246(0x186)],_0x1f5a89,[]);else{if(_0x7a26bb[0x0][_0x253246(0x1d5)]==!![])_0x22ec0f[_0x253246(0x20f)](_0x7a26bb[0x0]['id'],'「\x20Group\x20Settings\x20Changed\x20」\x0a\x0aGroup\x20Info\x20Has\x20Been\x20Restricted,\x20Now\x20Only\x20Admin\x20Can\x20Edit\x20Group\x20Info\x20!',''+global[_0x253246(0x186)],_0x1f5a89,[]);else _0x7a26bb[0x0][_0x253246(0x1d5)]==![]?_0x22ec0f['send5ButImg'](_0x7a26bb[0x0]['id'],'「\x20Group\x20Settings\x20Changed\x20」\x0a\x0aGroup\x20Info\x20Has\x20Been\x20Opened,\x20Now\x20Participants\x20Can\x20Edit\x20Group\x20Info\x20!',''+global[_0x253246(0x186)],_0x1f5a89,[]):_0x22ec0f['send5ButImg'](_0x7a26bb[0x0]['id'],_0x253246(0x1cf)+_0x7a26bb[0x0][_0x253246(0x1f3)]+'*',''+global[_0x253246(0x186)],_0x1f5a89,[]);}}}),_0x22ec0f['ev']['on']('group-participants.update',async _0x3dd4a7=>{const _0x58e997=_0x24d051;console[_0x58e997(0x1da)](_0x3dd4a7);try{let _0x2fe3f2=await _0x22ec0f[_0x58e997(0x19b)](_0x3dd4a7['id']),_0x7030ba=_0x3dd4a7[_0x58e997(0x1d2)],_0x31caa9=_0x3dd4a7[_0x58e997(0x1d2)][_0x58e997(0x1c8)];for(let _0x11ae43 of _0x7030ba){try{ppuser=await _0x22ec0f[_0x58e997(0x116)](_0x11ae43,_0x58e997(0x1ac));}catch{ppuser=_0x58e997(0x1ca);}try{ppgroup=await _0x22ec0f[_0x58e997(0x116)](_0x3dd4a7['id'],_0x58e997(0x1ac));}catch{ppgroup=_0x58e997(0x1ca);}if(_0x3dd4a7[_0x58e997(0x13c)]==_0x58e997(0x177)){hesa=''+_0x7030ba,mestes=_0x349457=>{const _0x1059a8=_0x58e997;return _0x349457[_0x1059a8(0x122)](/['@s whatsapp.net']/g,'\x20');},resa=''+mestes(hesa);const _0x1d5014=moment['tz'](_0x58e997(0x1a6))[_0x58e997(0x102)]('HH:mm:ss'),_0x5780cd=moment['tz'](_0x58e997(0x1a6))['format'](_0x58e997(0x184)),_0x9d78e4=_0x2fe3f2[_0x58e997(0x1d2)]['length'];orgnye=_0x11ae43,mbc=_0x58e997(0x1cb)+orgnye[_0x58e997(0x163)]('@')[0x0]+_0x58e997(0x17f)+_0x2fe3f2['subject']+_0x58e997(0x1ba)+_0x9d78e4+_0x58e997(0x1f2)+_0x1d5014+'\x20'+_0x5780cd+_0x58e997(0x21a);let _0x38ca41={'image':await getBuffer(ppuser),'caption':mbc,'footer':''+global[_0x58e997(0x186)],'mentions':[orgnye],'headerType':0x4};_0x22ec0f['sendMessage'](_0x3dd4a7['id'],_0x38ca41);}else{if(_0x3dd4a7[_0x58e997(0x13c)]=='remove'){hesa=''+_0x7030ba,mestes=_0x301522=>{const _0x4ba4db=_0x58e997;return _0x301522[_0x4ba4db(0x122)](/['@s whatsapp.net']/g,'\x20');},resa=''+mestes(hesa);const _0x1c5377=moment['tz']('Asia/Kolkata')[_0x58e997(0x102)]('HH:mm:ss'),_0x21fabe=moment['tz'](_0x58e997(0x1a6))[_0x58e997(0x102)](_0x58e997(0x184)),_0xd52394=_0x2fe3f2[_0x58e997(0x1d2)]['length'];orgnye=_0x11ae43,mbc=_0x58e997(0x112)+orgnye[_0x58e997(0x163)]('@')[0x0]+_0x58e997(0x119)+_0x2fe3f2[_0x58e997(0x1f3)]+_0x58e997(0x1d9)+_0xd52394+_0x58e997(0x120)+_0x1c5377+'\x20'+_0x21fabe+_0x58e997(0x1d4);let _0x161776={'image':await getBuffer(ppuser),'caption':mbc,'footer':''+global['botname'],'mentions':[orgnye],'headerType':0x4};_0x22ec0f['sendMessage'](_0x3dd4a7['id'],_0x161776),_0x22ec0f['ev']['on']('message-delete',async _0x53c4a5=>{const _0x293bbd=_0x58e997;require(_0x293bbd(0x11f))(_0x22ec0f,_0x53c4a5);});}else{if(_0x3dd4a7[_0x58e997(0x13c)]==_0x58e997(0x1db)){orgnye=_0x11ae43;try{ppUrl=await _0x22ec0f[_0x58e997(0x116)](m['sender'],_0x58e997(0x1ac));}catch{ppurl=_0x58e997(0x189);}img=await getBuffer(ppUrl),teks=_0x58e997(0x14a)+orgnye[_0x58e997(0x163)]('@')[0x0]+_0x58e997(0x14f)+mdata[_0x58e997(0x1f3)];let _0x57ccb9=[{'buttonId':_0x58e997(0x1e0),'buttonText':{'displayText':_0x58e997(0x178)},'type':0x1}],_0x4abe11={'image':img,'caption':teks,'footer':_0x58e997(0x145),'mentions':[orgnye],'buttons':_0x57ccb9,'headerType':0x4};_0x22ec0f[_0x58e997(0x20b)](_0x3dd4a7['id'],_0x4abe11);}else{if(_0x3dd4a7[_0x58e997(0x13c)]==_0x58e997(0x1e4)){orgnye=_0x11ae43;try{ppUrl=await _0x22ec0f[_0x58e997(0x116)](m[_0x58e997(0x17b)],_0x58e997(0x1ac));}catch{ppUrl=_0x58e997(0x189);}img=await getBuffer(ppUrl),teks=_0x58e997(0x15d)+orgnye[_0x58e997(0x163)]('@')[0x0]+_0x58e997(0x197)+mdata[_0x58e997(0x1f3)];let _0x4db0bd=[{'buttonId':_0x58e997(0x1e0),'buttonText':{'displayText':_0x58e997(0x207)},'type':0x1}],_0x38eb58={'image':img,'caption':teks,'footer':''+global[_0x58e997(0x186)],'mentions':[orgnye],'buttons':_0x4db0bd,'headerType':0x4};_0x22ec0f[_0x58e997(0x20b)](_0x3dd4a7['id'],_0x38eb58);}}}}}}catch(_0x5e5804){console[_0x58e997(0x1da)](_0x5e5804);}}),_0x22ec0f['decodeJid']=_0x7048b4=>{const _0x210415=_0x24d051;if(!_0x7048b4)return _0x7048b4;if(/:\d+@/gi['test'](_0x7048b4)){let _0x1a4b0c=jidDecode(_0x7048b4)||{};return _0x1a4b0c[_0x210415(0x10b)]&&_0x1a4b0c[_0x210415(0x173)]&&_0x1a4b0c[_0x210415(0x10b)]+'@'+_0x1a4b0c['server']||_0x7048b4;}else return _0x7048b4;},_0x22ec0f['ev']['on'](_0x24d051(0x18f),_0x17a272=>{const _0x353c23=_0x387d4b=>{const _0xae36a1=_0x2a4e;for(const _0x4b5294 of _0x387d4b){store[_0xae36a1(0x1dd)][_0x4b5294['id']]?Object[_0xae36a1(0x142)](store['contacts'][_0x4b5294['id']],_0x4b5294):store[_0xae36a1(0x1dd)][_0x4b5294['id']]=_0x4b5294;}return;};_0x353c23(_0x17a272);}),_0x22ec0f['ev']['on'](_0x24d051(0x1a3),async _0x27d90b=>{const _0x58358c=_0x24d051;for(let _0x2a9748 of _0x27d90b){let _0x3ea617=_0x22ec0f[_0x58358c(0x1e7)](_0x2a9748['id']);if(store&&store['contacts'])store[_0x58358c(0x1dd)][_0x3ea617]={'id':_0x3ea617,'name':_0x2a9748[_0x58358c(0x10c)]};}}),_0x22ec0f[_0x24d051(0x13e)]=(_0x8f4fde,_0x501ab3=![])=>{const _0x101ada=_0x24d051;id=_0x22ec0f[_0x101ada(0x1e7)](_0x8f4fde),_0x501ab3=_0x22ec0f[_0x101ada(0x1a4)]||_0x501ab3;let _0x598034;if(id[_0x101ada(0x109)](_0x101ada(0x1cc)))return new Promise(async _0x3d2352=>{const _0x3fba9f=_0x101ada;_0x598034=store[_0x3fba9f(0x1dd)][id]||{};if(!(_0x598034[_0x3fba9f(0x1b2)][_0x3fba9f(0x10c)]||_0x598034[_0x3fba9f(0x1f3)]))_0x598034=_0x22ec0f[_0x3fba9f(0x19b)](id)||{};_0x3d2352(_0x598034[_0x3fba9f(0x1b2)]||_0x598034[_0x3fba9f(0x1f3)]||PhoneNumber('+'+id[_0x3fba9f(0x122)](_0x3fba9f(0x12f),''))['getNumber'](_0x3fba9f(0x165)));});else _0x598034=id===_0x101ada(0x1e5)?{'id':id,'name':_0x101ada(0x188)}:id===_0x22ec0f[_0x101ada(0x1e7)](_0x22ec0f[_0x101ada(0x10b)]['id'])?_0x22ec0f[_0x101ada(0x10b)]:store[_0x101ada(0x1dd)][id]||{};return(_0x501ab3?'':_0x598034[_0x101ada(0x1b2)])||_0x598034[_0x101ada(0x1f3)]||_0x598034[_0x101ada(0x138)]||PhoneNumber('+'+_0x8f4fde[_0x101ada(0x122)]('@s.whatsapp.net',''))[_0x101ada(0x15c)]('international');},_0x22ec0f[_0x24d051(0x1d6)]=async(_0x73c9db,_0x4009fc,_0x29142f='',_0x1cd645={})=>{const _0x2e3c37=_0x24d051;let _0x3f5a70=[];for(let _0x48b4d3 of _0x4009fc){_0x3f5a70[_0x2e3c37(0x12d)]({'displayName':await _0x22ec0f[_0x2e3c37(0x13e)](_0x48b4d3+_0x2e3c37(0x12f)),'vcard':_0x2e3c37(0x209)+await _0x22ec0f[_0x2e3c37(0x13e)](_0x48b4d3+_0x2e3c37(0x12f))+'\x0aFN:'+global[_0x2e3c37(0x174)]+_0x2e3c37(0x153)+_0x48b4d3+':'+_0x48b4d3+_0x2e3c37(0x126)+global[_0x2e3c37(0x159)]+_0x2e3c37(0x1ff)+global['socialm']+_0x2e3c37(0x115)+global[_0x2e3c37(0x179)]+_0x2e3c37(0x135)});}_0x22ec0f[_0x2e3c37(0x20b)](_0x73c9db,{'contacts':{'displayName':_0x3f5a70[_0x2e3c37(0x1c8)]+_0x2e3c37(0x172),'contacts':_0x3f5a70},..._0x1cd645},{'quoted':_0x29142f});},_0x22ec0f[_0x24d051(0x11c)]=_0xba81a3=>{const _0x5b0999=_0x24d051;return _0x22ec0f[_0x5b0999(0x1e2)]({'tag':'iq','attrs':{'to':'@s.whatsapp.net','type':_0x5b0999(0x161),'xmlns':'status'},'content':[{'tag':_0x5b0999(0x128),'attrs':{},'content':Buffer[_0x5b0999(0x1c3)](_0xba81a3,'utf-8')}]}),_0xba81a3;};if(Config[_0x24d051(0x192)]===_0x24d051(0x1fe))_0x22ec0f[_0x24d051(0x103)]=![];else Config[_0x24d051(0x192)]===_0x24d051(0x103)&&(_0x22ec0f[_0x24d051(0x103)]=!![]);let _0x34dab4=_0x22ec0f[_0x24d051(0x103)]==!![]?_0x24d051(0x10e):_0x24d051(0x18c);return log(pint('Zero-Two\x20Mode'+_0x34dab4,'.')),_0x22ec0f[_0x24d051(0x141)]=_0x3c1d56=>smsg(_0x22ec0f,_0x3c1d56,store),_0x22ec0f['ev']['on'](_0x24d051(0x15f),async _0xcd82db=>{const _0x5a1c40=_0x24d051,{connection:_0x206d5d,lastDisconnect:_0x2d9211,qr:_0x5290a3}=_0xcd82db;if(_0x206d5d===_0x5a1c40(0x202)){let _0x2c601d=new Boom(_0x2d9211?.['error'])?.[_0x5a1c40(0x158)]?.[_0x5a1c40(0x213)];if(_0x2c601d===DisconnectReason[_0x5a1c40(0x146)])console[_0x5a1c40(0x1da)](_0x5a1c40(0x205)),process[_0x5a1c40(0x1f1)]();else{if(_0x2c601d===DisconnectReason[_0x5a1c40(0x162)])__START();else{if(_0x2c601d===DisconnectReason[_0x5a1c40(0x1c2)])__START();else{if(_0x2c601d===DisconnectReason[_0x5a1c40(0x169)]){}else{if(_0x2c601d===DisconnectReason[_0x5a1c40(0x114)]){}else{if(_0x2c601d===DisconnectReason['restartRequired'])__START();else{if(_0x2c601d===DisconnectReason[_0x5a1c40(0x191)])__START();else{}}}}}}}}console[_0x5a1c40(0x1da)]('Connection...',_0xcd82db),_0x5290a3&&(QR_GENERATE=_0x5290a3),console[_0x5a1c40(0x1da)](_0x5a1c40(0x155),_0xcd82db);}),_0x22ec0f['ev']['on'](_0x24d051(0x20c),()=>{const _0x44652f=_0x24d051;saveState();try{let _0x43761a=JSON[_0x44652f(0x1bc)](state[_0x44652f(0x12a)]['noiseKey']),_0x3f1560=JSON['stringify'](state[_0x44652f(0x12a)][_0x44652f(0x183)]),_0x4e4ef8=JSON[_0x44652f(0x1bc)](state[_0x44652f(0x12a)][_0x44652f(0x111)]),_0x488e83=state['creds'][_0x44652f(0x1ec)],_0x51dca3=state[_0x44652f(0x12a)][_0x44652f(0x1ae)],_0x39e873=state['creds']['nextPreKeyId'],_0xf56b8f=state[_0x44652f(0x12a)][_0x44652f(0x19e)],_0x4fbff3=state['creds'][_0x44652f(0x1f4)],_0x5ee21a=JSON[_0x44652f(0x1bc)](state['creds'][_0x44652f(0x1fd)]),_0x1aa9cc=JSON['stringify'](state['creds']['me']),_0x51a715=JSON[_0x44652f(0x1bc)](state[_0x44652f(0x12a)][_0x44652f(0x166)]),_0x4819a4=state[_0x44652f(0x12a)][_0x44652f(0x175)],_0x4d809c=state[_0x44652f(0x12a)][_0x44652f(0x1fb)];auth_row_count==0x0?(console['log'](_0x44652f(0x1f6)),pool['query'](_0x44652f(0x150),[_0x43761a,_0x3f1560,_0x4e4ef8,_0x488e83,_0x51dca3,_0x39e873,_0xf56b8f,_0x4fbff3,_0x5ee21a,_0x1aa9cc,_0x51a715,_0x4819a4,_0x4d809c]),pool[_0x44652f(0x1e2)](_0x44652f(0x20e)),console['log']('New\x20login\x20data\x20inserted!')):(pool[_0x44652f(0x1e2)](_0x44652f(0x144),[_0x43761a,_0x3f1560,_0x4e4ef8,_0x488e83,_0x51dca3,_0x39e873,_0xf56b8f,_0x4fbff3,_0x5ee21a,_0x1aa9cc,_0x51a715,_0x4819a4,_0x4d809c]),pool[_0x44652f(0x1e2)](_0x44652f(0x20e)));}catch(_0x323139){console['log'](_0x323139);}}),_0x22ec0f['send5ButImg']=async(_0x335ca0,_0x52bd29='',_0x3c746c='',_0x3a5a5b,_0x54b50b=[],_0x3f7bdf,_0x39e186={})=>{const _0x16c799=_0x24d051;let _0x310c3c=await prepareWAMessageMedia({'image':_0x3a5a5b,'jpegThumbnail':_0x3f7bdf},{'upload':_0x22ec0f[_0x16c799(0x1d8)]});var _0x521e0a=generateWAMessageFromContent(m[_0x16c799(0x113)],proto[_0x16c799(0x1ce)][_0x16c799(0x129)]({'templateMessage':{'hydratedTemplate':{'imageMessage':_0x310c3c[_0x16c799(0x1b5)],'hydratedContentText':_0x52bd29,'hydratedFooterText':_0x3c746c,'hydratedButtons':_0x54b50b}}}),_0x39e186);_0x22ec0f[_0x16c799(0x16d)](_0x335ca0,_0x521e0a['message'],{'messageId':_0x521e0a[_0x16c799(0x1a2)]['id']});},_0x22ec0f[_0x24d051(0x185)]=(_0x4c0e36,_0x1111b2=[],_0x372e89,_0x40e8a2,_0xff200c='',_0x1c38ae={})=>{let _0x235798={'text':_0x372e89,'footer':_0x40e8a2,'buttons':_0x1111b2,'headerType':0x2,..._0x1c38ae};_0x22ec0f['sendMessage'](_0x4c0e36,_0x235798,{'quoted':_0xff200c,..._0x1c38ae});},_0x22ec0f[_0x24d051(0x219)]=(_0x1ae9a8,_0x30a216,_0x2e79de='',_0x2b9f50)=>_0x22ec0f['sendMessage'](_0x1ae9a8,{'text':_0x30a216,..._0x2b9f50},{'quoted':_0x2e79de}),_0x22ec0f['sendImage']=async(_0x30a369,_0x523e97,_0x4fc825='',_0x1ffab5='',_0x5a8725)=>{const _0x95573c=_0x24d051;let _0x2a777d=Buffer[_0x95573c(0x193)](_0x523e97)?_0x523e97:/^data:.*?\/.*?;base64,/i[_0x95573c(0x1e6)](_0x523e97)?Buffer[_0x95573c(0x1c3)](_0x523e97['split']`,`[0x1],_0x95573c(0x10a)):/^https?:\/\//['test'](_0x523e97)?await await getBuffer(_0x523e97):fs['existsSync'](_0x523e97)?fs['readFileSync'](_0x523e97):Buffer[_0x95573c(0x134)](0x0);return await _0x22ec0f[_0x95573c(0x20b)](_0x30a369,{'image':_0x2a777d,'caption':_0x4fc825,..._0x5a8725},{'quoted':_0x1ffab5});},_0x22ec0f[_0x24d051(0x212)]=async(_0x438814,_0x1e5697,_0x336242='',_0x420947='',_0x41c3be=![],_0x46d0e4)=>{const _0x7cdb73=_0x24d051;let _0x2d9dbc=Buffer[_0x7cdb73(0x193)](_0x1e5697)?_0x1e5697:/^data:.*?\/.*?;base64,/i[_0x7cdb73(0x1e6)](_0x1e5697)?Buffer[_0x7cdb73(0x1c3)](_0x1e5697[_0x7cdb73(0x163)]`,`[0x1],'base64'):/^https?:\/\//['test'](_0x1e5697)?await await getBuffer(_0x1e5697):fs[_0x7cdb73(0x12b)](_0x1e5697)?fs[_0x7cdb73(0x11a)](_0x1e5697):Buffer['alloc'](0x0);return await _0x22ec0f['sendMessage'](_0x438814,{'video':_0x2d9dbc,'caption':_0x336242,'gifPlayback':_0x41c3be,..._0x46d0e4},{'quoted':_0x420947});},_0x22ec0f[_0x24d051(0x118)]=async(_0x19ec38,_0x331dd0,_0x21c36c='',_0x45f813=![],_0x1a0d9e)=>{const _0x2f73b7=_0x24d051;let _0x4f476e=Buffer[_0x2f73b7(0x193)](_0x331dd0)?_0x331dd0:/^data:.*?\/.*?;base64,/i[_0x2f73b7(0x1e6)](_0x331dd0)?Buffer[_0x2f73b7(0x1c3)](_0x331dd0[_0x2f73b7(0x163)]`,`[0x1],_0x2f73b7(0x10a)):/^https?:\/\//[_0x2f73b7(0x1e6)](_0x331dd0)?await await getBuffer(_0x331dd0):fs[_0x2f73b7(0x12b)](_0x331dd0)?fs[_0x2f73b7(0x11a)](_0x331dd0):Buffer[_0x2f73b7(0x134)](0x0);return await _0x22ec0f[_0x2f73b7(0x20b)](_0x19ec38,{'audio':_0x4f476e,'ptt':_0x45f813,..._0x1a0d9e},{'quoted':_0x21c36c});},_0x22ec0f['sendTextWithMentions']=async(_0x1b7686,_0x4f111,_0x3c84ee,_0x442bce={})=>_0x22ec0f[_0x24d051(0x20b)](_0x1b7686,{'text':_0x4f111,'contextInfo':{'mentionedJid':[..._0x4f111['matchAll'](/@(\d{0,16})/g)][_0x24d051(0x16b)](_0x1b15f9=>_0x1b15f9[0x1]+_0x24d051(0x12f))},..._0x442bce},{'quoted':_0x3c84ee}),_0x22ec0f[_0x24d051(0x110)]=async(_0x2fd5d6,_0x3c43ec,_0x2c3dd3,_0x4dbb49={})=>{const _0x142c01=_0x24d051;let _0x2894d8=Buffer[_0x142c01(0x193)](_0x3c43ec)?_0x3c43ec:/^data:.*?\/.*?;base64,/i[_0x142c01(0x1e6)](_0x3c43ec)?Buffer['from'](_0x3c43ec[_0x142c01(0x163)]`,`[0x1],_0x142c01(0x10a)):/^https?:\/\//['test'](_0x3c43ec)?await await getBuffer(_0x3c43ec):fs[_0x142c01(0x12b)](_0x3c43ec)?fs[_0x142c01(0x11a)](_0x3c43ec):Buffer[_0x142c01(0x134)](0x0),_0x4efc39;return _0x4dbb49&&(_0x4dbb49['packname']||_0x4dbb49[_0x142c01(0x17c)])?_0x4efc39=await writeExifImg(_0x2894d8,_0x4dbb49):_0x4efc39=await imageToWebp(_0x2894d8),await _0x22ec0f[_0x142c01(0x20b)](_0x2fd5d6,{'sticker':{'url':_0x4efc39},..._0x4dbb49},{'quoted':_0x2c3dd3}),_0x4efc39;},_0x22ec0f[_0x24d051(0x10f)]=async(_0x239559,_0x15e0db,_0x1135f0,_0x4a898c={})=>{const _0x517f7f=_0x24d051;let _0x11ae46=Buffer[_0x517f7f(0x193)](_0x15e0db)?_0x15e0db:/^data:.*?\/.*?;base64,/i[_0x517f7f(0x1e6)](_0x15e0db)?Buffer[_0x517f7f(0x1c3)](_0x15e0db[_0x517f7f(0x163)]`,`[0x1],_0x517f7f(0x10a)):/^https?:\/\//[_0x517f7f(0x1e6)](_0x15e0db)?await await getBuffer(_0x15e0db):fs['existsSync'](_0x15e0db)?fs[_0x517f7f(0x11a)](_0x15e0db):Buffer[_0x517f7f(0x134)](0x0),_0x19fba4;return _0x4a898c&&(_0x4a898c[_0x517f7f(0x168)]||_0x4a898c[_0x517f7f(0x17c)])?_0x19fba4=await writeExifVid(_0x11ae46,_0x4a898c):_0x19fba4=await videoToWebp(_0x11ae46),await _0x22ec0f[_0x517f7f(0x20b)](_0x239559,{'sticker':{'url':_0x19fba4},..._0x4a898c},{'quoted':_0x1135f0}),_0x19fba4;},_0x22ec0f['sendMedia']=async(_0x3ce5cc,_0x3e91a4,_0x37d760='',_0x3ce6d6='',_0x2ddf1c='',_0x5cd628={})=>{const _0x3ae75c=_0x24d051;let _0x35264a=await _0x22ec0f[_0x3ae75c(0x206)](_0x3e91a4,!![]),{mime:_0x2fbc97,ext:_0x5caadc,res:_0x17cd8f,data:_0x47f995,filename:_0x33942c}=_0x35264a;if(_0x17cd8f&&_0x17cd8f[_0x3ae75c(0x128)]!==0xc8||file[_0x3ae75c(0x1c8)]<=0x10000)try{throw{'json':JSON[_0x3ae75c(0x160)](file['toString']())};}catch(_0x24bb6d){if(_0x24bb6d[_0x3ae75c(0x124)])throw _0x24bb6d[_0x3ae75c(0x124)];}let _0x4deb96='',_0x3afa78=_0x2fbc97,_0x4debfe=_0x33942c;if(_0x5cd628['asDocument'])_0x4deb96='document';if(_0x5cd628[_0x3ae75c(0x1d1)]||/webp/['test'](_0x2fbc97)){let {writeExif:_0x105888}=require(_0x3ae75c(0x1dc)),_0x515c43={'mimetype':_0x2fbc97,'data':_0x47f995};_0x4debfe=await _0x105888(_0x515c43,{'packname':_0x5cd628[_0x3ae75c(0x168)]?_0x5cd628[_0x3ae75c(0x168)]:global[_0x3ae75c(0x168)],'author':_0x5cd628[_0x3ae75c(0x17c)]?_0x5cd628[_0x3ae75c(0x17c)]:global[_0x3ae75c(0x17c)],'categories':_0x5cd628['categories']?_0x5cd628[_0x3ae75c(0x1c6)]:[]}),await fs[_0x3ae75c(0x182)]['unlink'](_0x33942c),_0x4deb96=_0x3ae75c(0x12e),_0x3afa78=_0x3ae75c(0x15b);}else{if(/image/['test'](_0x2fbc97))_0x4deb96=_0x3ae75c(0x1ac);else{if(/video/['test'](_0x2fbc97))_0x4deb96=_0x3ae75c(0x136);else{if(/audio/[_0x3ae75c(0x1e6)](_0x2fbc97))_0x4deb96=_0x3ae75c(0x1c9);else _0x4deb96=_0x3ae75c(0x216);}}}return await _0x22ec0f[_0x3ae75c(0x20b)](_0x3ce5cc,{[_0x4deb96]:{'url':_0x4debfe},'caption':_0x3ce6d6,'mimetype':_0x3afa78,'fileName':_0x37d760,..._0x5cd628},{'quoted':_0x2ddf1c,..._0x5cd628}),fs[_0x3ae75c(0x182)][_0x3ae75c(0x18a)](_0x4debfe);},_0x22ec0f[_0x24d051(0x1ed)]=async(_0x41cd13,_0x135ea4,_0x49a51a=!![])=>{const _0x4612ab=_0x24d051;let _0x314f7d=_0x41cd13[_0x4612ab(0x137)]?_0x41cd13[_0x4612ab(0x137)]:_0x41cd13,_0x15361b=(_0x41cd13[_0x4612ab(0x137)]||_0x41cd13)[_0x4612ab(0x1b4)]||'',_0x1e8df3=_0x41cd13['mtype']?_0x41cd13['mtype'][_0x4612ab(0x122)](/Message/gi,''):_0x15361b[_0x4612ab(0x163)]('/')[0x0];const _0x2bdd81=await downloadContentFromMessage(_0x314f7d,_0x1e8df3);let _0x5b9164=Buffer[_0x4612ab(0x1c3)]([]);for await(const _0x33249b of _0x2bdd81){_0x5b9164=Buffer[_0x4612ab(0x187)]([_0x5b9164,_0x33249b]);}let _0x20add0=await FileType[_0x4612ab(0x133)](_0x5b9164);return trueFileName=_0x49a51a?_0x135ea4+'.'+_0x20add0['ext']:_0x135ea4,await fs[_0x4612ab(0x16f)](trueFileName,_0x5b9164),trueFileName;},_0x22ec0f[_0x24d051(0x194)]=async _0x2d69c8=>{const _0x4ef971=_0x24d051;let _0x11047f=(_0x2d69c8[_0x4ef971(0x137)]||_0x2d69c8)[_0x4ef971(0x1b4)]||'',_0x762541=_0x2d69c8[_0x4ef971(0x1e8)]?_0x2d69c8[_0x4ef971(0x1e8)][_0x4ef971(0x122)](/Message/gi,''):_0x11047f[_0x4ef971(0x163)]('/')[0x0];const _0x3e7140=await downloadContentFromMessage(_0x2d69c8,_0x762541);let _0x276742=Buffer[_0x4ef971(0x1c3)]([]);for await(const _0xa86a4f of _0x3e7140){_0x276742=Buffer[_0x4ef971(0x187)]([_0x276742,_0xa86a4f]);}return _0x276742;},_0x22ec0f[_0x24d051(0x17d)]=async(_0x439955,_0x6806fc,_0x365d45=![],_0x31df55={})=>{const _0x459ff5=_0x24d051;let _0xdde13e;_0x31df55[_0x459ff5(0x1fc)]&&(_0x6806fc[_0x459ff5(0x167)]=_0x6806fc[_0x459ff5(0x167)]&&_0x6806fc[_0x459ff5(0x167)]['ephemeralMessage']&&_0x6806fc['message'][_0x459ff5(0x140)]['message']?_0x6806fc['message'][_0x459ff5(0x140)][_0x459ff5(0x167)]:_0x6806fc[_0x459ff5(0x167)]||undefined,_0xdde13e=Object[_0x459ff5(0x20a)](_0x6806fc[_0x459ff5(0x167)]['viewOnceMessage'][_0x459ff5(0x167)])[0x0],delete(_0x6806fc['message']&&_0x6806fc[_0x459ff5(0x167)][_0x459ff5(0x1f0)]?_0x6806fc[_0x459ff5(0x167)][_0x459ff5(0x1f0)]:_0x6806fc[_0x459ff5(0x167)]||undefined),delete _0x6806fc[_0x459ff5(0x167)]['viewOnceMessage'][_0x459ff5(0x167)][_0xdde13e][_0x459ff5(0x1c4)],_0x6806fc['message']={..._0x6806fc[_0x459ff5(0x167)][_0x459ff5(0x1b3)][_0x459ff5(0x167)]});let _0x39209e=Object[_0x459ff5(0x20a)](_0x6806fc['message'])[0x0],_0x486425=await generateForwardMessageContent(_0x6806fc,_0x365d45),_0x207043=Object[_0x459ff5(0x20a)](_0x486425)[0x0],_0x57d1c9={};if(_0x39209e!=_0x459ff5(0x1d3))_0x57d1c9=_0x6806fc[_0x459ff5(0x167)][_0x39209e][_0x459ff5(0x14e)];_0x486425[_0x207043][_0x459ff5(0x14e)]={..._0x57d1c9,..._0x486425[_0x207043]['contextInfo']};const _0x5b6bcc=await generateWAMessageFromContent(_0x439955,_0x486425,_0x31df55?{..._0x486425[_0x207043],..._0x31df55,..._0x31df55[_0x459ff5(0x14e)]?{'contextInfo':{..._0x486425[_0x207043]['contextInfo'],..._0x31df55[_0x459ff5(0x14e)]}}:{}}:{});return await _0x22ec0f[_0x459ff5(0x16d)](_0x439955,_0x5b6bcc[_0x459ff5(0x167)],{'messageId':_0x5b6bcc[_0x459ff5(0x1a2)]['id']}),_0x5b6bcc;},_0x22ec0f[_0x24d051(0x1d7)]=(_0x99a83c,_0x1669f0,_0x55c363='',_0x33f361=_0x22ec0f[_0x24d051(0x10b)]['id'],_0x192126={})=>{const _0x61384=_0x24d051;let _0x46572c=Object[_0x61384(0x20a)](_0x1669f0[_0x61384(0x167)])[0x0],_0xdfe379=_0x46572c===_0x61384(0x140);_0xdfe379&&(_0x46572c=Object[_0x61384(0x20a)](_0x1669f0[_0x61384(0x167)]['ephemeralMessage'][_0x61384(0x167)])[0x0]);let _0x1eabc7=_0xdfe379?_0x1669f0[_0x61384(0x167)][_0x61384(0x140)]['message']:_0x1669f0[_0x61384(0x167)],_0x542032=_0x1eabc7[_0x46572c];if(typeof _0x542032==='string')_0x1eabc7[_0x46572c]=_0x55c363||_0x542032;else{if(_0x542032[_0x61384(0x1de)])_0x542032['caption']=_0x55c363||_0x542032[_0x61384(0x1de)];else{if(_0x542032['text'])_0x542032[_0x61384(0x176)]=_0x55c363||_0x542032[_0x61384(0x176)];}}if(typeof _0x542032!==_0x61384(0x200))_0x1eabc7[_0x46572c]={..._0x542032,..._0x192126};if(_0x1669f0[_0x61384(0x1a2)][_0x61384(0x13b)])_0x33f361=_0x1669f0[_0x61384(0x1a2)][_0x61384(0x13b)]=_0x33f361||_0x1669f0[_0x61384(0x1a2)][_0x61384(0x13b)];else{if(_0x1669f0[_0x61384(0x1a2)][_0x61384(0x13b)])_0x33f361=_0x1669f0[_0x61384(0x1a2)]['participant']=_0x33f361||_0x1669f0[_0x61384(0x1a2)]['participant'];}if(_0x1669f0[_0x61384(0x1a2)][_0x61384(0x18d)][_0x61384(0x151)](_0x61384(0x12f)))_0x33f361=_0x33f361||_0x1669f0[_0x61384(0x1a2)][_0x61384(0x18d)];else{if(_0x1669f0[_0x61384(0x1a2)][_0x61384(0x18d)]['includes'](_0x61384(0x1e9)))_0x33f361=_0x33f361||_0x1669f0[_0x61384(0x1a2)][_0x61384(0x18d)];}return _0x1669f0['key'][_0x61384(0x18d)]=_0x99a83c,_0x1669f0[_0x61384(0x1a2)][_0x61384(0x14d)]=_0x33f361===_0x22ec0f[_0x61384(0x10b)]['id'],proto[_0x61384(0x181)]['fromObject'](_0x1669f0);},_0x22ec0f[_0x24d051(0x206)]=async(_0x15f443,_0x10c797)=>{const _0x591c82=_0x24d051;let _0x4a4f80,_0x54be1c=Buffer[_0x591c82(0x193)](_0x15f443)?_0x15f443:/^data:.*?\/.*?;base64,/i[_0x591c82(0x1e6)](_0x15f443)?Buffer[_0x591c82(0x1c3)](_0x15f443['split']`,`[0x1],_0x591c82(0x10a)):/^https?:\/\//[_0x591c82(0x1e6)](_0x15f443)?await(_0x4a4f80=await getBuffer(_0x15f443)):fs[_0x591c82(0x12b)](_0x15f443)?(filename=_0x15f443,fs[_0x591c82(0x11a)](_0x15f443)):typeof _0x15f443===_0x591c82(0x200)?_0x15f443:Buffer[_0x591c82(0x134)](0x0),_0x5716db=await FileType[_0x591c82(0x133)](_0x54be1c)||{'mime':_0x591c82(0x1bb),'ext':'.bin'};filename=path[_0x591c82(0x1ef)](__filename,'./src/'+new Date()*0x1+'.'+_0x5716db[_0x591c82(0x11d)]);if(_0x54be1c&&_0x10c797)fs['promises'][_0x591c82(0x154)](filename,_0x54be1c);return{'res':_0x4a4f80,'filename':filename,'size':await getSizeMedia(_0x54be1c),..._0x5716db,'data':_0x54be1c};},_0x22ec0f[_0x24d051(0x20d)]=async(_0x3f9a41,_0x8991e2,_0x446457,_0x10d73e={},_0x158d42={})=>{const _0x3f20d6=_0x24d051;let _0x12b470=await _0x22ec0f[_0x3f20d6(0x206)](_0x8991e2,!![]),{filename:_0x60cb09,size:_0x4383c2,ext:_0x217113,mime:_0x3ec860,data:_0x321f27}=_0x12b470,_0x3dd161='',_0x6bed6e=_0x3ec860,_0x2a0da8=_0x60cb09;if(_0x158d42[_0x3f20d6(0x164)])_0x3dd161=_0x3f20d6(0x216);if(_0x158d42[_0x3f20d6(0x1d1)]||/webp/[_0x3f20d6(0x1e6)](_0x3ec860)){let {writeExif:_0x43c48e}=require(_0x3f20d6(0x19a)),_0x147547={'mimetype':_0x3ec860,'data':_0x321f27};_0x2a0da8=await _0x43c48e(_0x147547,{'packname':global['packname'],'author':global[_0x3f20d6(0x203)],'categories':_0x158d42['categories']?_0x158d42[_0x3f20d6(0x1c6)]:[]}),await fs[_0x3f20d6(0x182)][_0x3f20d6(0x18a)](_0x60cb09),_0x3dd161=_0x3f20d6(0x12e),_0x6bed6e=_0x3f20d6(0x15b);}else{if(/image/[_0x3f20d6(0x1e6)](_0x3ec860))_0x3dd161=_0x3f20d6(0x1ac);else{if(/video/['test'](_0x3ec860))_0x3dd161='video';else{if(/audio/[_0x3f20d6(0x1e6)](_0x3ec860))_0x3dd161=_0x3f20d6(0x1c9);else _0x3dd161=_0x3f20d6(0x216);}}}return await _0x22ec0f[_0x3f20d6(0x20b)](_0x3f9a41,{[_0x3dd161]:{'url':_0x2a0da8},'mimetype':_0x6bed6e,'fileName':_0x446457,..._0x158d42},{'quoted':_0x10d73e,..._0x158d42}),fs['promises'][_0x3f20d6(0x18a)](_0x2a0da8);},_0x22ec0f[_0x24d051(0x1aa)]=async _0x298d9e=>{const _0x514720=_0x24d051;return[..._0x298d9e[_0x514720(0x199)](/@([0-9]{5,16}|0)/g)][_0x514720(0x16b)](_0x161cd4=>_0x161cd4[0x1]+_0x514720(0x12f));},_0x22ec0f;}__START(),app['use'](async(_0x3bc15c,_0x259bf0)=>{const _0x229cee=_0x96b11d;_0x259bf0[_0x229cee(0x1b1)](_0x229cee(0x19c),_0x229cee(0x1eb)),_0x259bf0['end'](await qrcode[_0x229cee(0x180)](QR_GENERATE));}),app[_0x96b11d(0x1b0)](PORT,()=>{const _0x5ab4e9=_0x96b11d;console[_0x5ab4e9(0x1da)]('Qr\x20Code\x20Server\x20running\x20on\x20PORT\x20'+PORT);});let file=require[_0x96b11d(0x1f9)](__filename);fs['watchFile'](file,()=>{const _0xc71341=_0x96b11d;fs[_0xc71341(0x1d0)](file),console[_0xc71341(0x1da)](chalk[_0xc71341(0x14b)](_0xc71341(0x215)+__filename)),delete require[_0xc71341(0x170)][file],require(file);});