forked from SahasTech22/SAHAS-MD
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.js
1 lines (1 loc) · 18.7 KB
/
index.js
1
const _0x192a23=_0x1af5;function _0x1af5(_0x3846aa,_0x46fa7){const _0x5df1e0=_0x5df1();return _0x1af5=function(_0x1af507,_0x31650d){_0x1af507=_0x1af507-0x1f2;let _0x360c57=_0x5df1e0[_0x1af507];return _0x360c57;},_0x1af5(_0x3846aa,_0x46fa7);}(function(_0x360653,_0x2c34c6){const _0x50960a=_0x1af5,_0x39cbd7=_0x360653();while(!![]){try{const _0x35d7d3=parseInt(_0x50960a(0x253))/0x1*(parseInt(_0x50960a(0x229))/0x2)+parseInt(_0x50960a(0x26a))/0x3*(-parseInt(_0x50960a(0x216))/0x4)+parseInt(_0x50960a(0x240))/0x5+parseInt(_0x50960a(0x233))/0x6+-parseInt(_0x50960a(0x287))/0x7+parseInt(_0x50960a(0x234))/0x8*(-parseInt(_0x50960a(0x249))/0x9)+parseInt(_0x50960a(0x25b))/0xa*(parseInt(_0x50960a(0x26e))/0xb);if(_0x35d7d3===_0x2c34c6)break;else _0x39cbd7['push'](_0x39cbd7['shift']());}catch(_0x144a2e){_0x39cbd7['push'](_0x39cbd7['shift']());}}}(_0x5df1,0x95972));const {default:makeWASocket,useMultiFileAuthState,DisconnectReason,jidNormalizedUser,getContentType,fetchLatestBaileysVersion,Browsers}=require('@whiskeysockets/baileys'),{getBuffer,getGroupAdmins,getRandom,h2k,isUrl,Json,runtime,sleep,fetchJson}=require(_0x192a23(0x220)),fs=require('fs'),P=require('pino'),config=require('./config'),qrcode=require(_0x192a23(0x25e)),util=require(_0x192a23(0x262)),{sms,downloadMediaMessage}=require('./DATABASE/msg'),axios=require(_0x192a23(0x283)),{File}=require('megajs'),prefix=config[_0x192a23(0x273)],path=require(_0x192a23(0x1f8)),asciiArt='',ownerNumber=[_0x192a23(0x208)];if(!fs[_0x192a23(0x23b)](__dirname+_0x192a23(0x22c))){if(!config[_0x192a23(0x272)])return console[_0x192a23(0x22a)](_0x192a23(0x271));const sessdata=config[_0x192a23(0x272)],filer=File[_0x192a23(0x27d)]('https://mega.nz/file/'+sessdata);filer[_0x192a23(0x215)]((_0x28415a,_0x339aca)=>{const _0x2dfb17=_0x192a23;if(_0x28415a)throw _0x28415a;fs[_0x2dfb17(0x246)](__dirname+'/Session/creds.json',_0x339aca,()=>{const _0x1d5fee=_0x2dfb17;console[_0x1d5fee(0x22a)](_0x1d5fee(0x25a));});});}function _0x5df1(){const _0x2cf41d=['split','includes','gif','path','test','./index.html','Safari','error','groupMetadata','@s.whatsapp.net','readMessages','ALWAYS_TYPING','pushName','groupParticipantsUpdate','docu','🚩\x20I\x20am\x20not\x20an\x20admin,\x20so\x20I\x20cannot\x20delete\x20messages\x20with\x20links.','contextInfo','.js','Message:\x20[','94765527900','evano','env','@g.us','Message:\x20[Image\x20with\x20caption:\x20','statusCode','dapan','ANTI_DELETE','participant','send','reactionMessage','Message:\x20','startsWith','download','3956236rXoLzV','image','audio','evpn','[PLUGIN\x20ERROR]\x20','ALWAYS_RECORDING','participants','stickerMessage','sendPresenceUpdate','From:\x20','./DATABASE/functions','length','imageMessage','\x20(@','audio/mpeg','/Session/','catch','user','headers','1144690YZkkZT','log','conversation','/Session/creds.json','videoMessage','alias','quotedMessage','application/pdf','express','🚩\x20Don\x27t\x20use\x20any\x20bad\x20words!','3486594IvGJwy','8485816jOEFwy','readdirSync','https://raw.githubusercontent.com/DarkYasiyaofc/VOICE/main/Voice-Raw/FROZEN-V2','get','🚫\x20Bot\x20detected.\x20I\x20need\x20admin\x20rights\x20to\x20remove\x20it.','content-type','true','existsSync','photo','endsWith','isBaileys','listen','2153775GiOeEV','remoteJid','ANTI_BOT','pattern','HBpmBtAuwrvL10N7HXKYhf','Error\x20handling\x20deleted\x20message:','writeFile','\x20message]','✅\x20SAHAS-MD\x20-\x20Plugin\x20Installing...','9RGHJGN','video','message','remove','ewanna','sticker','toLowerCase','ewhahn','extname','Message:\x20[Video\x20with\x20caption:\x20','1JvGvqe','https','94718913389','caption','trim','connection.update','dapn','✅\x20SAHAS-MD\x20-\x20Session\x20Downloading...','10DsTiQu','function','forEach','qrcode-terminal','AUTO_READ_STATUS','Message','shift','util','output','./Plugin/','macOS','status@broadcast','sendFile','AUTO_VOICE','text','3LpBtfk','Message:\x20[Unable\x20to\x20retrieve\x20deleted\x20content]','https://files.catbox.moe/de82e3.jpg','join','25278495Qsdtwg','ALWAYS_ONLINE','ANTI_LINK','❎\x20SAHAS-MD\x20-\x20Please\x20Add\x20Your\x20Session...','SESSION_ID','PREFIX','type','extendedTextMessage','sendMessage','video/mp4','messages.upsert','find','recording','commands','close','fromURL','buffer','Detected\x20another\x20bot\x20in\x20the\x20group','✅\x20SAHAS-MD\x20-\x20SAHAS-MD\x20Sucessfull\x20Conected\x20Your\x20Device...','key','available','axios','danna','head','sendFileUrl','8538152tqTuEy','AUTO_READ_CMD','react','map','slice','loadMessage','loggedOut'];_0x5df1=function(){return _0x2cf41d;};return _0x5df1();}const express=require(_0x192a23(0x231)),app=express(),port=process[_0x192a23(0x20a)]['PORT']||0x1f40;async function connectToWA(){const _0x5dd50e=_0x192a23;console[_0x5dd50e(0x22a)](asciiArt),console[_0x5dd50e(0x22a)]('✅\x20SAHAS-MD\x20-\x20Session\x20Download\x20Completed...');const {state:_0x11af7c,saveCreds:_0x303a47}=await useMultiFileAuthState(__dirname+_0x5dd50e(0x225));var {version:_0x179ef0}=await fetchLatestBaileysVersion();const _0xa2b197=makeWASocket({'logger':P({'level':'silent'}),'printQRInTerminal':![],'browser':Browsers[_0x5dd50e(0x265)](_0x5dd50e(0x1fb)),'syncFullHistory':!![],'auth':_0x11af7c,'version':_0x179ef0});_0xa2b197['ev']['on'](_0x5dd50e(0x258),_0x4e3426=>{const _0x3b0b51=_0x5dd50e,{connection:_0x204daa,lastDisconnect:_0x41979f}=_0x4e3426;if(_0x204daa===_0x3b0b51(0x27c))_0x41979f[_0x3b0b51(0x1fc)][_0x3b0b51(0x263)][_0x3b0b51(0x20d)]!==DisconnectReason[_0x3b0b51(0x1f4)]&&connectToWA();else{if(_0x204daa==='open'){console['log'](_0x3b0b51(0x248)),console[_0x3b0b51(0x22a)]('✅\x20SAHAS-MD\x20-\x20Plugin\x20Install\x20Completed...'),console[_0x3b0b51(0x22a)](_0x3b0b51(0x280));const _0x2d3502=require(_0x3b0b51(0x1f8));fs[_0x3b0b51(0x235)](_0x3b0b51(0x264))[_0x3b0b51(0x25d)](_0x59dbb4=>{const _0x44a86f=_0x3b0b51;_0x2d3502[_0x44a86f(0x251)](_0x59dbb4)['toLowerCase']()==_0x44a86f(0x206)&&require(_0x44a86f(0x264)+_0x59dbb4);});let _0x5efe0e=config['START_MSG'];const _0x489363=_0x3b0b51(0x244);_0xa2b197['groupAcceptInvite'](_0x489363),_0xa2b197[_0x3b0b51(0x276)](ownerNumber+_0x3b0b51(0x1fe),{'image':{'url':_0x3b0b51(0x26c)},'caption':_0x5efe0e}),config[_0x3b0b51(0x26f)]==='true'&&_0xa2b197[_0x3b0b51(0x21e)](_0x3b0b51(0x282));}}}),_0xa2b197['ev']['on']('creds.update',_0x303a47),_0xa2b197['ev']['on'](_0x5dd50e(0x278),async _0x580480=>{const _0x8e122d=_0x5dd50e;_0x580480=_0x580480['messages'][0x0];if(!_0x580480['message'])return;_0x580480[_0x8e122d(0x24b)]=getContentType(_0x580480['message'])==='ephemeralMessage'?_0x580480[_0x8e122d(0x24b)]['ephemeralMessage']['message']:_0x580480[_0x8e122d(0x24b)];_0x580480['key']&&_0x580480['key'][_0x8e122d(0x241)]===_0x8e122d(0x266)&&config[_0x8e122d(0x25f)]===_0x8e122d(0x23a)&&await _0xa2b197[_0x8e122d(0x1ff)]([_0x580480[_0x8e122d(0x281)]]);const _0x297ceb=sms(_0xa2b197,_0x580480),_0x3b0ee2=getContentType(_0x580480[_0x8e122d(0x24b)]),_0x2a5f4c=JSON['stringify'](_0x580480[_0x8e122d(0x24b)]),_0x9ab504=_0x580480[_0x8e122d(0x281)][_0x8e122d(0x241)];config[_0x8e122d(0x200)]===_0x8e122d(0x23a)&&await _0xa2b197[_0x8e122d(0x21e)]('composing',_0x9ab504);config[_0x8e122d(0x21b)]===_0x8e122d(0x23a)&&await _0xa2b197[_0x8e122d(0x21e)](_0x8e122d(0x27a),_0x9ab504);const _0x1e7144=_0x3b0ee2==_0x8e122d(0x275)&&_0x580480[_0x8e122d(0x24b)][_0x8e122d(0x275)][_0x8e122d(0x205)]!=null?_0x580480[_0x8e122d(0x24b)]['extendedTextMessage']['contextInfo'][_0x8e122d(0x22f)]||[]:[],_0x3bb0c3=_0x3b0ee2===_0x8e122d(0x22b)?_0x580480['message']['conversation']:_0x3b0ee2===_0x8e122d(0x275)?_0x580480[_0x8e122d(0x24b)]['extendedTextMessage'][_0x8e122d(0x269)]:_0x3b0ee2==_0x8e122d(0x222)&&_0x580480[_0x8e122d(0x24b)][_0x8e122d(0x222)]['caption']?_0x580480[_0x8e122d(0x24b)]['imageMessage'][_0x8e122d(0x256)]:_0x3b0ee2==_0x8e122d(0x22d)&&_0x580480[_0x8e122d(0x24b)][_0x8e122d(0x22d)][_0x8e122d(0x256)]?_0x580480[_0x8e122d(0x24b)][_0x8e122d(0x22d)][_0x8e122d(0x256)]:'',_0x15f699=_0x3bb0c3[_0x8e122d(0x214)](prefix),_0x5e1134=_0x15f699?_0x3bb0c3['slice'](prefix[_0x8e122d(0x221)])['trim']()[_0x8e122d(0x1f5)]('\x20')[_0x8e122d(0x261)]()['toLowerCase']():'',_0x554f00=_0x3bb0c3[_0x8e122d(0x257)]()[_0x8e122d(0x1f5)](/ +/)[_0x8e122d(0x1f2)](0x1),_0x4fef6c=_0x554f00[_0x8e122d(0x26d)]('\x20'),_0x1a63f5=_0x9ab504[_0x8e122d(0x23d)](_0x8e122d(0x20b)),_0x85a9b3=_0x580480['key']['fromMe']?_0xa2b197[_0x8e122d(0x227)]['id'][_0x8e122d(0x1f5)](':')[0x0]+'@s.whatsapp.net'||_0xa2b197[_0x8e122d(0x227)]['id']:_0x580480[_0x8e122d(0x281)][_0x8e122d(0x210)]||_0x580480['key'][_0x8e122d(0x241)],_0x27067d=_0x85a9b3[_0x8e122d(0x1f5)]('@')[0x0],_0x527e84=_0xa2b197[_0x8e122d(0x227)]['id'][_0x8e122d(0x1f5)](':')[0x0],_0xa0cc84=_0x580480[_0x8e122d(0x201)]||'Sin\x20Nombre',_0x215195=_0x527e84[_0x8e122d(0x1f6)](_0x27067d),_0x437e61=ownerNumber[_0x8e122d(0x1f6)](_0x27067d)||_0x215195,_0x3f2c28=await jidNormalizedUser(_0xa2b197['user']['id']),_0x3e848c=_0x1a63f5?await _0xa2b197[_0x8e122d(0x1fd)](_0x9ab504)[_0x8e122d(0x226)](_0x510271=>{}):'',_0x5821f9=_0x1a63f5?_0x3e848c['subject']:'',_0x55c1d5=_0x1a63f5?await _0x3e848c[_0x8e122d(0x21c)]:'',_0x170907=_0x1a63f5?await getGroupAdmins(_0x55c1d5):'',_0x501324=_0x1a63f5?_0x170907[_0x8e122d(0x1f6)](_0x3f2c28):![],_0x34510d=_0x1a63f5?_0x170907[_0x8e122d(0x1f6)](_0x85a9b3):![],_0x2df189=_0x297ceb[_0x8e122d(0x24b)][_0x8e122d(0x212)]?!![]:![],_0x53efc9=_0x3b1ca5=>{_0xa2b197['sendMessage'](_0x9ab504,{'text':_0x3b1ca5},{'quoted':_0x580480});};_0xa2b197[_0x8e122d(0x286)]=async(_0x52ae1d,_0x129453,_0x395919,_0x12479b,_0x647bfb={})=>{const _0x27ad06=_0x8e122d;let _0x425b1c='',_0x5b6ae2=await axios[_0x27ad06(0x285)](_0x129453);_0x425b1c=_0x5b6ae2[_0x27ad06(0x228)][_0x27ad06(0x239)];if(_0x425b1c[_0x27ad06(0x1f5)]('/')[0x1]===_0x27ad06(0x1f7))return _0xa2b197[_0x27ad06(0x276)](_0x52ae1d,{'video':await getBuffer(_0x129453),'caption':_0x395919,'gifPlayback':!![],..._0x647bfb},{'quoted':_0x12479b,..._0x647bfb});let _0x555c00=_0x425b1c['split']('/')[0x0]+_0x27ad06(0x260);if(_0x425b1c===_0x27ad06(0x230))return _0xa2b197[_0x27ad06(0x276)](_0x52ae1d,{'document':await getBuffer(_0x129453),'mimetype':'application/pdf','caption':_0x395919,..._0x647bfb},{'quoted':_0x12479b,..._0x647bfb});if(_0x425b1c[_0x27ad06(0x1f5)]('/')[0x0]===_0x27ad06(0x217))return _0xa2b197['sendMessage'](_0x52ae1d,{'image':await getBuffer(_0x129453),'caption':_0x395919,..._0x647bfb},{'quoted':_0x12479b,..._0x647bfb});if(_0x425b1c[_0x27ad06(0x1f5)]('/')[0x0]===_0x27ad06(0x24a))return _0xa2b197[_0x27ad06(0x276)](_0x52ae1d,{'video':await getBuffer(_0x129453),'caption':_0x395919,'mimetype':_0x27ad06(0x277),..._0x647bfb},{'quoted':_0x12479b,..._0x647bfb});if(_0x425b1c['split']('/')[0x0]===_0x27ad06(0x218))return _0xa2b197[_0x27ad06(0x276)](_0x52ae1d,{'audio':await getBuffer(_0x129453),'caption':_0x395919,'mimetype':'audio/mpeg',..._0x647bfb},{'quoted':_0x12479b,..._0x647bfb});};if(config[_0x8e122d(0x268)]===_0x8e122d(0x23a)){let {data:_0x49449e}=await axios[_0x8e122d(0x237)](_0x8e122d(0x236));for(vr in _0x49449e){new RegExp('\x5cb'+vr+'\x5cb','gi')['test'](_0x3bb0c3)&&_0xa2b197[_0x8e122d(0x276)](_0x9ab504,{'audio':{'url':_0x49449e[vr]},'mimetype':_0x8e122d(0x224),'ptt':!![]},{'quoted':_0x580480});}}if(_0x1a63f5&&config['ANTI_BAD_WORDS_ENABLED']){if(config['ANTI_BAD_WORDS']){const _0x4527df=config['ANTI_BAD_WORDS'],_0x5be148=_0x3bb0c3[_0x8e122d(0x24f)]();if(!_0x34510d&&!_0x437e61)for(const _0x1ebedc of _0x4527df){if(_0x5be148[_0x8e122d(0x1f6)](_0x1ebedc[_0x8e122d(0x24f)]())){await _0xa2b197['sendMessage'](_0x9ab504,{'text':_0x8e122d(0x232)},{'quoted':_0x580480}),await _0xa2b197[_0x8e122d(0x276)](_0x9ab504,{'delete':_0x580480['key']});return;}}}}if(_0x1a63f5&&config[_0x8e122d(0x242)]===_0x8e122d(0x23a)){if(!_0x34510d&&!_0x437e61&&_0x297ceb[_0x8e122d(0x23e)]){console['log'](_0x8e122d(0x27f));_0x501324?(await _0xa2b197[_0x8e122d(0x276)](_0x9ab504,{'delete':_0x580480[_0x8e122d(0x281)]}),await _0xa2b197[_0x8e122d(0x276)](_0x9ab504,{'text':'🚫\x20Bot\x20detected\x20and\x20removed.\x20Only\x20admins\x20can\x20add\x20bots\x20to\x20this\x20group.'}),await _0xa2b197[_0x8e122d(0x202)](_0x9ab504,[_0x85a9b3],_0x8e122d(0x24c))):await _0xa2b197[_0x8e122d(0x276)](_0x9ab504,{'text':_0x8e122d(0x238)});return;}}if(_0x1a63f5&&config[_0x8e122d(0x270)]){const _0x54460b=/chat\.whatsapp\.com\/(g|gb)\/[A-Z0-9]{5,}/i;if(_0x54460b[_0x8e122d(0x1f9)](_0x3bb0c3)){if(!_0x501324&&!_0x34510d&&!_0x437e61)await _0xa2b197[_0x8e122d(0x276)](_0x9ab504,{'text':'🚩\x20Links\x20are\x20not\x20allowed\x20in\x20this\x20group!'},{'quoted':_0x580480}),await _0xa2b197[_0x8e122d(0x276)](_0x9ab504,{'delete':_0x580480[_0x8e122d(0x281)]});else!_0x501324&&await _0xa2b197['sendMessage'](_0x9ab504,{'text':_0x8e122d(0x204)},{'quoted':_0x580480});return;}}if(_0x27067d['includes'](_0x8e122d(0x255))){if(_0x2df189)return;_0x297ceb[_0x8e122d(0x289)]('👨💻');}if(_0x27067d[_0x8e122d(0x1f6)]('94765527900')){if(_0x2df189)return;_0x297ceb['react']('💗');}_0x15f699&&config[_0x8e122d(0x288)]===_0x8e122d(0x23a)&&await _0xa2b197[_0x8e122d(0x1ff)]([_0x580480[_0x8e122d(0x281)]]);const _0x57b75c=[_0x8e122d(0x211),_0x8e122d(0x20e),_0x8e122d(0x259),_0x8e122d(0x250),_0x8e122d(0x24d),_0x8e122d(0x284),_0x8e122d(0x209),_0x8e122d(0x219),'ewano'];for(let _0x38aea2 of _0x57b75c){if(_0x3bb0c3[_0x8e122d(0x24f)]()['includes'](_0x38aea2)){if(!_0x3bb0c3['includes']('tent')&&!_0x3bb0c3[_0x8e122d(0x1f6)](_0x8e122d(0x203))&&!_0x3bb0c3['includes'](_0x8e122d(0x254))){let _0x2f1b29=await _0x1e7144[_0x8e122d(0x215)]();if(_0x1e7144[_0x8e122d(0x222)])await _0xa2b197[_0x8e122d(0x276)](_0x9ab504,{'image':_0x2f1b29},{'quoted':_0x580480});else _0x1e7144[_0x8e122d(0x22d)]?await _0xa2b197[_0x8e122d(0x276)](_0x9ab504,{'video':_0x2f1b29},{'quoted':_0x580480}):console[_0x8e122d(0x22a)]('Unsupported\x20media\x20type:',_0x2f1b29['mimetype']);break;}}}const _0x56f6a0=require('./command'),_0x1115e2=_0x15f699?_0x3bb0c3[_0x8e122d(0x1f2)](0x1)['trim']()['split']('\x20')[0x0][_0x8e122d(0x24f)]():![];if(_0x15f699){const _0x438861=_0x56f6a0[_0x8e122d(0x27b)][_0x8e122d(0x279)](_0x37bf39=>_0x37bf39[_0x8e122d(0x243)]===_0x1115e2)||_0x56f6a0[_0x8e122d(0x27b)][_0x8e122d(0x279)](_0x3554cb=>_0x3554cb['alias']&&_0x3554cb[_0x8e122d(0x22e)][_0x8e122d(0x1f6)](_0x1115e2));if(_0x438861){if(_0x438861[_0x8e122d(0x289)])_0xa2b197[_0x8e122d(0x276)](_0x9ab504,{'react':{'text':_0x438861['react'],'key':_0x580480[_0x8e122d(0x281)]}});try{_0x438861[_0x8e122d(0x25c)](_0xa2b197,_0x580480,_0x297ceb,{'from':_0x9ab504,'quoted':_0x1e7144,'body':_0x3bb0c3,'isCmd':_0x15f699,'command':_0x5e1134,'args':_0x554f00,'q':_0x4fef6c,'isGroup':_0x1a63f5,'sender':_0x85a9b3,'senderNumber':_0x27067d,'botNumber2':_0x3f2c28,'botNumber':_0x527e84,'pushname':_0xa0cc84,'isMe':_0x215195,'isOwner':_0x437e61,'groupMetadata':_0x3e848c,'groupName':_0x5821f9,'participants':_0x55c1d5,'groupAdmins':_0x170907,'isBotAdmins':_0x501324,'isAdmins':_0x34510d,'reply':_0x53efc9});}catch(_0x31da7a){console['error'](_0x8e122d(0x21a)+_0x31da7a);}}}_0x56f6a0[_0x8e122d(0x27b)][_0x8e122d(0x28a)](async _0xed46d5=>{const _0x4ac125=_0x8e122d;if(_0x3bb0c3&&_0xed46d5['on']==='body')_0xed46d5[_0x4ac125(0x25c)](_0xa2b197,_0x580480,_0x297ceb,{'from':_0x9ab504,'l':l,'quoted':_0x1e7144,'body':_0x3bb0c3,'isCmd':_0x15f699,'command':_0xed46d5,'args':_0x554f00,'q':_0x4fef6c,'isGroup':_0x1a63f5,'sender':_0x85a9b3,'senderNumber':_0x27067d,'botNumber2':_0x3f2c28,'botNumber':_0x527e84,'pushname':_0xa0cc84,'isMe':_0x215195,'isOwner':_0x437e61,'groupMetadata':_0x3e848c,'groupName':_0x5821f9,'participants':_0x55c1d5,'groupAdmins':_0x170907,'isBotAdmins':_0x501324,'isAdmins':_0x34510d,'reply':_0x53efc9});else{if(_0x580480['q']&&_0xed46d5['on']===_0x4ac125(0x269))_0xed46d5[_0x4ac125(0x25c)](_0xa2b197,_0x580480,_0x297ceb,{'from':_0x9ab504,'l':l,'quoted':_0x1e7144,'body':_0x3bb0c3,'isCmd':_0x15f699,'command':_0xed46d5,'args':_0x554f00,'q':_0x4fef6c,'isGroup':_0x1a63f5,'sender':_0x85a9b3,'senderNumber':_0x27067d,'botNumber2':_0x3f2c28,'botNumber':_0x527e84,'pushname':_0xa0cc84,'isMe':_0x215195,'isOwner':_0x437e61,'groupMetadata':_0x3e848c,'groupName':_0x5821f9,'participants':_0x55c1d5,'groupAdmins':_0x170907,'isBotAdmins':_0x501324,'isAdmins':_0x34510d,'reply':_0x53efc9});else{if((_0xed46d5['on']==='image'||_0xed46d5['on']===_0x4ac125(0x23c))&&_0x580480['type']==='imageMessage')_0xed46d5[_0x4ac125(0x25c)](_0xa2b197,_0x580480,_0x297ceb,{'from':_0x9ab504,'l':l,'quoted':_0x1e7144,'body':_0x3bb0c3,'isCmd':_0x15f699,'command':_0xed46d5,'args':_0x554f00,'q':_0x4fef6c,'isGroup':_0x1a63f5,'sender':_0x85a9b3,'senderNumber':_0x27067d,'botNumber2':_0x3f2c28,'botNumber':_0x527e84,'pushname':_0xa0cc84,'isMe':_0x215195,'isOwner':_0x437e61,'groupMetadata':_0x3e848c,'groupName':_0x5821f9,'participants':_0x55c1d5,'groupAdmins':_0x170907,'isBotAdmins':_0x501324,'isAdmins':_0x34510d,'reply':_0x53efc9});else _0xed46d5['on']===_0x4ac125(0x24e)&&_0x580480[_0x4ac125(0x274)]===_0x4ac125(0x21d)&&_0xed46d5[_0x4ac125(0x25c)](_0xa2b197,_0x580480,_0x297ceb,{'from':_0x9ab504,'l':l,'quoted':_0x1e7144,'body':_0x3bb0c3,'isCmd':_0x15f699,'command':_0xed46d5,'args':_0x554f00,'q':_0x4fef6c,'isGroup':_0x1a63f5,'sender':_0x85a9b3,'senderNumber':_0x27067d,'botNumber2':_0x3f2c28,'botNumber':_0x527e84,'pushname':_0xa0cc84,'isMe':_0x215195,'isOwner':_0x437e61,'groupMetadata':_0x3e848c,'groupName':_0x5821f9,'participants':_0x55c1d5,'groupAdmins':_0x170907,'isBotAdmins':_0x501324,'isAdmins':_0x34510d,'reply':_0x53efc9});}}});}),_0xa2b197['ev']['on']('messages.delete',async _0x4b7cd9=>{const _0x1afc2f=_0x5dd50e;if(config[_0x1afc2f(0x20f)]==='true'&&_0x4b7cd9[_0x1afc2f(0x241)][_0x1afc2f(0x23d)](_0x1afc2f(0x20b)))try{const _0x9ad1=await _0xa2b197[_0x1afc2f(0x1f3)](_0x4b7cd9[_0x1afc2f(0x241)],_0x4b7cd9['id']);if(_0x9ad1){const _0x1673db=_0x9ad1[_0x1afc2f(0x24b)];let _0x21823a='🚨\x20Deleted\x20Message\x20Detected\x20🚨\x0a\x0a';_0x21823a+=_0x1afc2f(0x21f)+_0x9ad1[_0x1afc2f(0x201)]+_0x1afc2f(0x223)+_0x9ad1[_0x1afc2f(0x210)][_0x1afc2f(0x1f5)]('@')[0x0]+')\x0a';if(_0x1673db){if(_0x1673db[_0x1afc2f(0x22b)])_0x21823a+=_0x1afc2f(0x213)+_0x1673db[_0x1afc2f(0x22b)];else{if(_0x1673db['extendedTextMessage'])_0x21823a+=_0x1afc2f(0x213)+_0x1673db[_0x1afc2f(0x275)][_0x1afc2f(0x269)];else{if(_0x1673db[_0x1afc2f(0x222)])_0x21823a+=_0x1afc2f(0x20c)+_0x1673db['imageMessage'][_0x1afc2f(0x256)]+']';else _0x1673db[_0x1afc2f(0x22d)]?_0x21823a+=_0x1afc2f(0x252)+_0x1673db[_0x1afc2f(0x22d)]['caption']+']':_0x21823a+=_0x1afc2f(0x207)+Object['keys'](_0x1673db)[0x0]+_0x1afc2f(0x247);}}}else _0x21823a+=_0x1afc2f(0x26b);await _0xa2b197[_0x1afc2f(0x276)](_0x4b7cd9[_0x1afc2f(0x241)],{'text':_0x21823a});if(_0x1673db&&(_0x1673db[_0x1afc2f(0x222)]||_0x1673db[_0x1afc2f(0x22d)])){const _0x1f8904=await downloadMediaMessage(_0x9ad1,_0x1afc2f(0x27e));await _0xa2b197[_0x1afc2f(0x276)](_0x4b7cd9['remoteJid'],{'image':_0x1f8904,'caption':'Deleted\x20media'});}}}catch(_0x215f43){console[_0x1afc2f(0x1fc)](_0x1afc2f(0x245),_0x215f43);}});}app[_0x192a23(0x237)]('/',(_0x4a0373,_0x505315)=>_0x505315[_0x192a23(0x267)](require(_0x192a23(0x1f8))[_0x192a23(0x26d)](__dirname,_0x192a23(0x1fa)))),app[_0x192a23(0x23f)](port,()=>console[_0x192a23(0x22a)]('✅\x20SAHAS-MD\x20-\x20Server\x20Running...')),setTimeout(()=>{connectToWA();},0xfa0);