-
Notifications
You must be signed in to change notification settings - Fork 346
/
Copy pathamd.js
1 lines (1 loc) · 69.9 KB
/
amd.js
1
function _0xa181(_0x4d4834,_0x3b962e){const _0x496c46=_0x496c();return _0xa181=function(_0xa18166,_0x557a91){_0xa18166=_0xa18166-0xfc;let _0x1f9e64=_0x496c46[_0xa18166];return _0x1f9e64;},_0xa181(_0x4d4834,_0x3b962e);}const _0x144e34=_0xa181;(function(_0x4d3e4e,_0x9772b6){const _0xf5183e=_0xa181,_0x4a9d1f=_0x4d3e4e();while(!![]){try{const _0x249c9f=parseInt(_0xf5183e(0x23c))/0x1+parseInt(_0xf5183e(0x1e5))/0x2+-parseInt(_0xf5183e(0x132))/0x3*(-parseInt(_0xf5183e(0x175))/0x4)+-parseInt(_0xf5183e(0x2b8))/0x5*(parseInt(_0xf5183e(0x1b3))/0x6)+-parseInt(_0xf5183e(0x28e))/0x7+parseInt(_0xf5183e(0x272))/0x8+-parseInt(_0xf5183e(0x278))/0x9*(parseInt(_0xf5183e(0x228))/0xa);if(_0x249c9f===_0x9772b6)break;else _0x4a9d1f['push'](_0x4a9d1f['shift']());}catch(_0x4a32d7){_0x4a9d1f['push'](_0x4a9d1f['shift']());}}}(_0x496c,0x6d4da));const fs=require('fs'),path=require(_0x144e34(0x25f)),Config=require(__dirname+_0x144e34(0x15e)),blockJid=[''+(process[_0x144e34(0x229)][_0x144e34(0x1d0)]||_0x144e34(0x10f)),...typeof global['blockJids']===_0x144e34(0x215)?global[_0x144e34(0x153)][_0x144e34(0x137)](','):[]],allowJid=[_0x144e34(0x26e),...typeof global['allowJids']===_0x144e34(0x215)?global[_0x144e34(0x244)]['split'](','):[]],Pino=require(_0x144e34(0x1b1)),{Boom}=require(_0x144e34(0x28b)),FileType=require(_0x144e34(0x13f)),express=require(_0x144e34(0x1c1)),app=express(),events=require('./plugins'),{imageToWebp,videoToWebp,writeExifImg,writeExifVid}=require(_0x144e34(0x1d7));let {default:SuhailMDConnect,proto,prepareWAMessageMedia,downloadContentFromMessage,DisconnectReason,useMultiFileAuthState,generateForwardMessageContent,generateWAMessageFromContent,makeInMemoryStore,jidDecode}=require(_0x144e34(0x243));var last_status={};global[_0x144e34(0x270)]={},global[_0x144e34(0x1fc)]=![],global['sqldb']=![],global[_0x144e34(0x286)]=![];const {userdb,sck,groupdb,Plugindb,bot_,smdBuffer}=require(_0x144e34(0x2a9)),fetch=require(_0x144e34(0x27f)),axios=require(_0x144e34(0x28a));let {sleep,getBuffer,parsedJid,tiny,botpic,tlang}=require(_0x144e34(0x2a9));const {smsg,callsg,groupsg}=require(_0x144e34(0x10a)),{runtime,getSizeMedia}=require(_0x144e34(0x2a9));var prefa=!Config[_0x144e34(0x2a2)]||[_0x144e34(0x19f),_0x144e34(0x26e),'\x20','','nothing','not',_0x144e34(0x142)][_0x144e34(0x11a)](!Config[_0x144e34(0x2a2)])?!![]:![];global['prefix']=prefa?'':Config['HANDLERS'][0x0],global[_0x144e34(0x1fb)]=prefa||[_0x144e34(0x145)]['includes'](Config[_0x144e34(0x2a2)])?new RegExp('^'):new RegExp('^['+Config[_0x144e34(0x2a2)]+']'),global[_0x144e34(0x22d)]=[_0x144e34(0x145)][_0x144e34(0x11a)](Config[_0x144e34(0x2a2)]);let baileys=_0x144e34(0x271);const connnectpg=async()=>{const _0x1d0d99=_0x144e34;try{const {Pool:_0x559141}=require('pg'),_0x25f6aa=new _0x559141({'connectionString':global['DATABASE_URL'],'ssl':{'rejectUnauthorized':![]}}),_0x4b63b8=await _0x25f6aa['connect']();return _0x4b63b8[_0x1d0d99(0x168)](),console[_0x1d0d99(0x176)]('🌍\x20Connected\x20to\x20the\x20PostgreSQL.'),!![];}catch(_0x216af9){return console[_0x1d0d99(0x176)](_0x1d0d99(0x1a8)),![];}},connnectMongo=async()=>{const _0x10e014=_0x144e34,_0x39b92f=require(_0x10e014(0x184));try{return _0x39b92f[_0x10e014(0x22e)](_0x10e014(0x16b),!![]),await _0x39b92f[_0x10e014(0x149)](mongodb),console['log'](_0x10e014(0x2a8)),!![];}catch{return console['log'](_0x10e014(0x1ea)),![];}};let Suhail={};const store=makeInMemoryStore({'logger':Pino({'level':_0x144e34(0x260)})[_0x144e34(0x1db)]({'level':'silent'})});try{fs[_0x144e34(0x2b5)](__dirname+_0x144e34(0x279))&&store[_0x144e34(0x1bc)](__dirname+_0x144e34(0x279));}catch(_0x6fc55d){console['log'](_0x144e34(0x1e8),_0x6fc55d);}require(_0x144e34(0x133))['EventEmitter']['defaultMaxListeners']=0x7d0;async function syncdb(){const _0x2be828=_0x144e34;let _0x1be950=__dirname+_0x2be828(0x200);try{global[_0x2be828(0x21e)]=typeof THUMB_IMAGE==='string'?await getBuffer(THUMB_IMAGE[_0x2be828(0x137)](',')[0x0]):fs['readFileSync'](_0x1be950);}catch(_0xb23d76){_0x1be950=__dirname+_0x2be828(0x200);}global[_0x2be828(0x21e)]=global[_0x2be828(0x21e)]||fs[_0x2be828(0x2ab)](_0x1be950);const {state:_0x444c71,saveCreds:_0x2b53bf}=await useMultiFileAuthState(__dirname+baileys);let _0x3f4071=SuhailMDConnect({'logger':Pino({'level':'silent'||_0x2be828(0x263)||'fatal'}),'printQRInTerminal':![],'browser':[_0x2be828(0x17d),'chrome',''],'fireInitQueries':!![],'shouldSyncHistoryMessage':!![],'downloadHistory':!![],'syncFullHistory':!![],'generateHighQualityLinkPreview':!![],'markOnlineOnConnect':![],'auth':_0x444c71,'getMessage':async _0x411f95=>{const _0x416b0e=_0x2be828;let _0x43b628={'conversation':_0x416b0e(0x225)};if(store){const _0x1bc3a9=await store[_0x416b0e(0x115)](_0x411f95[_0x416b0e(0x1f8)],_0x411f95['id']);return _0x1bc3a9[_0x416b0e(0x107)]||_0x43b628;}return _0x43b628;}});store[_0x2be828(0x2ae)](_0x3f4071['ev']),setInterval(()=>{const _0x23cdd9=_0x2be828;try{store[_0x23cdd9(0x194)](__dirname+_0x23cdd9(0x279));}catch(_0x3fb237){console[_0x23cdd9(0x176)](_0x23cdd9(0x1e8),_0x3fb237);}},0x2710),_0x3f4071['ev']['on'](_0x2be828(0x289),async _0x30c078=>{const _0x3da9df=_0x2be828;let _0x29f836=await callsg(_0x3f4071,JSON[_0x3da9df(0x23a)](JSON[_0x3da9df(0x1de)](_0x30c078[0x0])));events['commands'][_0x3da9df(0x25c)](async _0x23c157=>{const _0x3aa827=_0x3da9df;if(_0x23c157[_0x3aa827(0x289)]===_0x3aa827(0x285)&&_0x29f836[_0x3aa827(0x2b3)]==='offer')try{_0x23c157[_0x3aa827(0x288)](_0x29f836,{'store':store,'Void':_0x3f4071});}catch(_0x1c43bf){console['error'](_0x3aa827(0x29f),_0x1c43bf);}if(_0x23c157[_0x3aa827(0x289)]===_0x3aa827(0x179)&&_0x29f836[_0x3aa827(0x2b3)]===_0x3aa827(0x179))try{_0x23c157[_0x3aa827(0x288)](_0x29f836,{'store':store,'Void':_0x3f4071});}catch(_0x5ea400){console['error'](_0x3aa827(0x226),_0x5ea400);}if(_0x23c157['call']===_0x3aa827(0x289)||_0x23c157[_0x3aa827(0x289)]==='on'||_0x23c157[_0x3aa827(0x289)]==='all')try{_0x23c157[_0x3aa827(0x288)](_0x29f836,{'store':store,'Void':_0x3f4071});}catch(_0x58780a){console['error']('[CALL\x20ERROR]\x20',_0x58780a);}});});var _0x21c5f6=![];let _0x3e1e42={},_0x12eec0={};_0x3f4071['ev']['on']('messages.upsert',async _0xf8c3ef=>{const _0xaeb568=_0x2be828;try{if(!_0xf8c3ef[_0xaeb568(0x221)]||!Array[_0xaeb568(0x291)](_0xf8c3ef[_0xaeb568(0x221)]))return;_0x21c5f6=_0x21c5f6||_0x3f4071[_0xaeb568(0x123)](_0x3f4071[_0xaeb568(0x138)]['id']);for(mek of _0xf8c3ef[_0xaeb568(0x221)]){mek[_0xaeb568(0x107)]=Object[_0xaeb568(0x25b)](mek['message']||{})[0x0]==='ephemeralMessage'?mek[_0xaeb568(0x107)][_0xaeb568(0x275)][_0xaeb568(0x107)]:mek['message'];if(!mek[_0xaeb568(0x107)]||!mek[_0xaeb568(0x13d)]||!/broadcast/gi[_0xaeb568(0x224)](mek[_0xaeb568(0x13d)][_0xaeb568(0x1f8)]))continue;let _0x489266=await smsg(_0x3f4071,JSON[_0xaeb568(0x23a)](JSON[_0xaeb568(0x1de)](mek)),store,!![]);if(!_0x489266[_0xaeb568(0x107)])continue;let _0x492eb2=_0x489266[_0xaeb568(0x201)],_0x38fb36={'body':_0x492eb2,'mek':mek,'text':_0x492eb2,'args':_0x492eb2[_0xaeb568(0x137)]('\x20')||[],'botNumber':_0x21c5f6,'isCreator':_0x489266[_0xaeb568(0x29d)],'store':store,'budy':_0x492eb2,'Suhail':{'bot':_0x3f4071},'Void':_0x3f4071,'proto':proto};events['commands']['map'](async _0x5f4be6=>{const _0x5f0c39=_0xaeb568;if(typeof _0x5f4be6['on']===_0x5f0c39(0x215)){let _0x4d53a8=_0x5f4be6['on']['trim'](),_0x52bbd8=!_0x5f4be6['fromMe']||_0x5f4be6['fromMe']&&_0x489266[_0x5f0c39(0x174)];if(/status|story/gi[_0x5f0c39(0x224)](_0x4d53a8)&&(_0x489266[_0x5f0c39(0x124)]==='status@broadcast'||mek[_0x5f0c39(0x13d)][_0x5f0c39(0x1f8)]===_0x5f0c39(0x22f))&&_0x52bbd8)_0x5f4be6[_0x5f0c39(0x288)](_0x489266,_0x492eb2,_0x38fb36);else['broadcast'][_0x5f0c39(0x11a)](_0x4d53a8)&&(/broadcast/gi['test'](mek[_0x5f0c39(0x13d)][_0x5f0c39(0x1f8)])||_0x489266[_0x5f0c39(0x298)]||/broadcast/gi['test'](_0x489266[_0x5f0c39(0x13c)]))&&_0x52bbd8&&_0x5f4be6[_0x5f0c39(0x288)](_0x489266,_0x492eb2,_0x38fb36);}});}}catch(_0x543fe4){console['log']('ERROR\x20broadCast\x20---------\x20messages.upsert\x20\x0a',_0x543fe4);}}),_0x3f4071['ev']['on']('messages.upsert',async _0x43d11f=>{const _0x34bc25=_0x2be828;try{_0x21c5f6=_0x21c5f6||_0x3f4071[_0x34bc25(0x123)](_0x3f4071[_0x34bc25(0x138)]['id']);if(!global[_0x34bc25(0x2b2)])return;for(mek of _0x43d11f[_0x34bc25(0x221)]){if(!mek[_0x34bc25(0x107)])continue;mek[_0x34bc25(0x107)]=Object[_0x34bc25(0x25b)](mek['message']||{})[0x0]===_0x34bc25(0x275)?mek[_0x34bc25(0x107)][_0x34bc25(0x275)][_0x34bc25(0x107)]:mek[_0x34bc25(0x107)];if(!mek[_0x34bc25(0x107)]||!mek['key']||/broadcast/gi[_0x34bc25(0x224)](mek[_0x34bc25(0x13d)][_0x34bc25(0x1f8)]))continue;let _0x23131e=await smsg(_0x3f4071,JSON[_0x34bc25(0x23a)](JSON['stringify'](mek)),store,!![]),_0x42043c=_0x23131e;if(!_0x23131e['message']||_0x23131e[_0x34bc25(0x121)][_0x34bc25(0x11f)](_0x34bc25(0x298)))continue;var {body:_0x20d568}=_0x23131e,_0x3627c9=_0x23131e[_0x34bc25(0x29d)],_0x474d2a=typeof _0x23131e[_0x34bc25(0x262)]==_0x34bc25(0x215)?_0x23131e['text'][_0x34bc25(0x28f)]():![];_0x474d2a&&_0x20d568[0x1]&&_0x20d568[0x1]=='\x20'&&(_0x20d568=_0x20d568[0x0]+_0x20d568[_0x34bc25(0x162)](0x2));let _0x451add=![],_0x5b71ca=![],_0x932414=![];if(_0x474d2a&&Config[_0x34bc25(0x2a2)]['toLowerCase']()[_0x34bc25(0x11a)](_0x34bc25(0x26e)))_0x451add=!![],_0x5b71ca=_0x20d568[_0x34bc25(0x137)]('\x20')[0x0]['toLowerCase']()||![];else _0x474d2a&&!Config[_0x34bc25(0x2a2)][_0x34bc25(0x213)]()['includes'](_0x34bc25(0x26e))?(_0x451add=prefixboth||_0x20d568&&prefixRegex[_0x34bc25(0x224)](_0x20d568[0x0])||_0x23131e[_0x34bc25(0x1ac)]&&/2348039607375|2349027862116|2348052944641/g['test'](_0x21c5f6)&&_0x20d568[0x0]==',',_0x5b71ca=_0x451add?prefa?_0x20d568['trim']()[_0x34bc25(0x137)]('\x20')[0x0]['toLowerCase']():_0x20d568[_0x34bc25(0x162)](0x1)[_0x34bc25(0x28f)]()[_0x34bc25(0x137)]('\x20')[0x0][_0x34bc25(0x213)]():![],_0x932414=prefixboth?_0x20d568[_0x34bc25(0x28f)]()['split']('\x20')[0x0][_0x34bc25(0x213)]():''):_0x451add=![];let _0x23ae24=_0x5b71ca?_0x5b71ca['trim']():'';if(_0x23ae24&&global[_0x34bc25(0x270)][_0x23ae24]!==undefined)_0x5b71ca=global[_0x34bc25(0x270)][_0x23ae24],_0x451add=!![];else _0x23131e[_0x34bc25(0x1eb)]==_0x34bc25(0x17b)&&(_0x23ae24='sticker-'+_0x23131e[_0x34bc25(0x14a)][_0x34bc25(0x156)],global[_0x34bc25(0x270)][_0x23ae24]&&(_0x5b71ca=global[_0x34bc25(0x270)][_0x23ae24],_0x451add=!![]));if(blockJid[_0x34bc25(0x11a)](_0x23131e[_0x34bc25(0x121)])&&!_0x23131e[_0x34bc25(0x1ac)])return;_0x451add&&(_0x23131e[_0x34bc25(0x247)]||!_0x3627c9&&Config['WORKTYPE']==='private'&&!allowJid[_0x34bc25(0x11a)](_0x23131e[_0x34bc25(0x121)]))&&(_0x451add=![]);const _0xf568=_0x23131e[_0x34bc25(0x201)]?_0x20d568[_0x34bc25(0x28f)]()[_0x34bc25(0x137)](/ +/)['slice'](0x1):[];!_0x3627c9&&global[_0x34bc25(0x20c)]===_0x34bc25(0x237)&&_0x451add&&!_0x23131e['isGroup']&&(_0x451add=![]);!_0x3627c9&&global[_0x34bc25(0x17e)]==='true'&&_0x451add&&_0x23131e['isGroup']&&!allowJid[_0x34bc25(0x11a)](_0x23131e['chat'])&&(_0x451add=![]);Suhail[_0x34bc25(0x100)]=_0x3f4071;if(_0x451add){let _0x5a4f63=events['commands'][_0x34bc25(0x192)](_0x39deee=>_0x39deee[_0x34bc25(0x23b)]===_0x5b71ca)||events[_0x34bc25(0x158)][_0x34bc25(0x192)](_0x309c02=>_0x309c02['alias']&&_0x309c02[_0x34bc25(0x1e7)][_0x34bc25(0x11a)](_0x5b71ca));!_0x5a4f63&&prefixboth&&_0x932414&&(_0x5a4f63=events[_0x34bc25(0x158)]['find'](_0x275824=>_0x275824[_0x34bc25(0x23b)]===_0x932414)||events[_0x34bc25(0x158)][_0x34bc25(0x192)](_0x446d50=>_0x446d50[_0x34bc25(0x1e7)]&&_0x446d50[_0x34bc25(0x1e7)]['includes'](_0x932414)));if(_0x5a4f63&&_0x5a4f63[_0x34bc25(0x174)]&&!_0x23131e[_0x34bc25(0x174)]&&!_0x3627c9)return _0x5a4f63=![],_0x23131e[_0x34bc25(0x284)](tlang()[_0x34bc25(0x159)]);if(_0x23131e[_0x34bc25(0x1f0)]&&_0x5a4f63&&_0x5b71ca!==_0x34bc25(0x100)){let _0x482b12=_0x3e1e42[_0x23131e[_0x34bc25(0x121)]]||await groupdb[_0x34bc25(0x1df)]({'id':_0x23131e[_0x34bc25(0x121)]})||{'botenable':toBool(_0x23131e[_0x34bc25(0x1ac)]||!blockJid['includes'](_0x23131e['chat']))};_0x482b12&&_0x482b12[_0x34bc25(0x18c)]===_0x34bc25(0x19f)&&(_0x5a4f63=![]);if(_0x5a4f63&&_0x482b12){let _0x1c4785=_0x5a4f63['pattern'][_0x34bc25(0x255)](/[.*+?^${}()|[\]\\]/g,_0x34bc25(0x119)),_0x3ae6e1=new RegExp('\x5cb'+_0x1c4785+'\x5cb');_0x482b12[_0x34bc25(0x1d5)]!==_0x34bc25(0x19f)&&_0x3ae6e1[_0x34bc25(0x224)](_0x482b12['disablecmds'])&&(_0x5a4f63=![]);}}if(!_0x3627c9&&_0x5a4f63)try{let _0x2851da=_0x12eec0[_0x23131e[_0x34bc25(0x1f3)]]||await userdb[_0x34bc25(0x1df)]({'id':_0x23131e['sender']})||{'ban':_0x34bc25(0x19f)};_0x2851da['ban']===_0x34bc25(0x237)&&(_0x5a4f63=![],_0x23131e[_0x34bc25(0x284)](_0x34bc25(0x28c)+_0x23131e['senderName'][_0x34bc25(0x137)]('\x0a')['join']('\x20\x20')+',*\x0a_You\x20are\x20banned\x20from\x20using\x20my\x20commands._'));}catch(_0x4785bf){console[_0x34bc25(0x176)](_0x34bc25(0x268),_0x4785bf);}if(_0x5a4f63){_0x5a4f63['react']&&_0x23131e[_0x34bc25(0x1e1)](_0x5a4f63[_0x34bc25(0x1e1)]);let _0x3e8d46=_0x23131e[_0x34bc25(0x201)]?_0x20d568[_0x34bc25(0x28f)]()[_0x34bc25(0x137)](/ +/)[_0x34bc25(0x162)](0x1)[_0x34bc25(0x1fd)]('\x20'):'',_0x3a3bd4=_0x5a4f63[_0x34bc25(0x23b)];_0x23131e[_0x34bc25(0x27e)]=_0x3a3bd4;try{_0x5a4f63['function'](_0x23131e,_0x3e8d46,{'cmd':_0x3a3bd4,'text':_0x3e8d46,'body':_0x20d568,'args':_0xf568,'cmdName':_0x5b71ca,'isCreator':_0x3627c9,'smd':_0x3a3bd4,'botNumber':_0x21c5f6,'budy':_0x474d2a,'store':store,'Suhail':Suhail,'Void':_0x3f4071});}catch(_0x470abe){console['log'](_0x34bc25(0x1a7),_0x470abe);}}else{_0x451add=![];const _0x86c02e=events[_0x34bc25(0x158)][_0x34bc25(0x192)](_0x3b9052=>_0x3b9052[_0x34bc25(0x256)]===_0x5b71ca)||![];if(_0x86c02e){const _0x116c92={};let _0xbdcd67='';events['commands']['map'](async(_0x1ca3de,_0xabe771)=>{const _0x4b52ff=_0x34bc25;_0x1ca3de[_0x4b52ff(0x218)]===![]&&_0x1ca3de['pattern']!==undefined&&(!_0x116c92[_0x1ca3de['category']]&&(_0x116c92[_0x1ca3de[_0x4b52ff(0x256)]]=[]),_0x116c92[_0x1ca3de['category']][_0x4b52ff(0x292)](_0x1ca3de[_0x4b52ff(0x23b)]));});for(const _0xca6672 in _0x116c92){if(_0x5b71ca==_0xca6672['toLowerCase']()){_0xbdcd67='┌───〈\x20*'+_0xca6672[_0x34bc25(0x213)]()+_0x34bc25(0x2a5);for(const _0xf71ad6 of _0x116c92[_0xca6672]){_0xbdcd67+=_0x34bc25(0x181)+_0xf71ad6+'\x0a';}_0xbdcd67+=_0x34bc25(0x16d);break;}}_0x3f4071['sendUi'](_0x23131e['jid'],{'caption':tiny(_0xbdcd67)});}}}try{_0x3e1e42[_0x23131e[_0x34bc25(0x121)]]=await groupdb[_0x34bc25(0x1df)]({'id':_0x23131e[_0x34bc25(0x121)]})||await groupdb[_0x34bc25(0x24a)]({'id':_0x23131e[_0x34bc25(0x121)],'botenable':_0x23131e[_0x34bc25(0x121)]===_0x34bc25(0x10f)?_0x34bc25(0x19f):'true','goodbye':toBool(global['gdbye']),'welcome':toBool(global[_0x34bc25(0x257)])}),_0x12eec0[_0x23131e[_0x34bc25(0x1f3)]]=await userdb[_0x34bc25(0x1df)]({'id':_0x23131e['sender']})||await userdb[_0x34bc25(0x24a)]({'id':_0x23131e[_0x34bc25(0x1f3)],'name':_0x23131e[_0x34bc25(0x2ad)]||_0x34bc25(0x2af)});}catch(_0x3f1673){main();}text=_0x23131e[_0x34bc25(0x201)];let _0x430cbc={'dbuser':_0x12eec0[_0x23131e[_0x34bc25(0x1f3)]],'dbgroup':_0x3e1e42[_0x23131e[_0x34bc25(0x121)]],'body':_0x20d568,'mek':mek,'text':text,'args':_0xf568,'botNumber':_0x21c5f6,'isCreator':_0x3627c9,'icmd':_0x451add,'store':store,'budy':_0x474d2a,'Suhail':Suhail,'Void':_0x3f4071,'proto':proto},_0x5aec2c={'mp4':_0x34bc25(0x1c5),'mp3':'audio','webp':_0x34bc25(0x1dc),'photo':'image','picture':_0x34bc25(0x231),'vv':_0x34bc25(0x21c)};events[_0x34bc25(0x158)][_0x34bc25(0x25c)](async _0x5c843f=>{const _0x2ad8b2=_0x34bc25;if(typeof _0x5c843f['on']===_0x2ad8b2(0x215)){let _0x193ea3=_0x5c843f['on'][_0x2ad8b2(0x28f)](),_0x352193=!_0x5c843f[_0x2ad8b2(0x174)]||_0x5c843f['fromMe']&&_0x23131e['fromMe'];if(_0x193ea3==='main'&&_0x352193)_0x5c843f['function'](_0x23131e,_0x20d568,_0x430cbc);else{if(_0x23131e['text']&&_0x193ea3==='text'&&/text|txt|true|smd|asta/gi[_0x2ad8b2(0x224)](_0x5c843f[_0x2ad8b2(0x1a6)])&&_0x23131e[_0x2ad8b2(0x1a6)]&&_0x23131e[_0x2ad8b2(0x1a6)][_0x2ad8b2(0x262)]&&_0x352193)_0x5c843f['function'](_0x23131e,_0x20d568,_0x430cbc);else{if(_0x23131e[_0x2ad8b2(0x262)]&&['body',_0x2ad8b2(0x262)][_0x2ad8b2(0x11a)](_0x193ea3)&&_0x352193)_0x5c843f[_0x2ad8b2(0x288)](_0x23131e,_0x20d568,_0x430cbc);else{if(typeof _0x23131e[_0x5aec2c[_0x193ea3]||_0x193ea3]===_0x2ad8b2(0x18b)&&_0x23131e['quoted']&&_0x23131e['quoted'][_0x5c843f[_0x2ad8b2(0x1a6)]]&&_0x352193)_0x5c843f['function'](_0x23131e,_0x20d568,_0x430cbc);else{if(_0x193ea3==='viewonce'&&(_0x23131e[_0x2ad8b2(0x1b2)]||mek[_0x2ad8b2(0x107)][_0x2ad8b2(0x198)]))try{_0x5c843f[_0x2ad8b2(0x288)](_0x23131e,_0x20d568,_0x430cbc);}catch(_0x388108){console[_0x2ad8b2(0x176)]('[ERROR]\x20',_0x388108);}else typeof _0x23131e[_0x5aec2c[_0x193ea3]||_0x193ea3]==='boolean'&&_0x352193&&_0x5c843f[_0x2ad8b2(0x288)](_0x23131e,_0x20d568,_0x430cbc);}}}}if(_0x193ea3===_0x2ad8b2(0x1af)&&_0x23131e['mtype']==_0x2ad8b2(0x1e4)&&_0x23131e[_0x2ad8b2(0x14a)]['type']==='REVOKE'&&_0x352193)_0x5c843f[_0x2ad8b2(0x288)](_0x23131e,_0x20d568,_0x430cbc);else{if(_0x193ea3===_0x2ad8b2(0x1f6)&&/poll/gi[_0x2ad8b2(0x224)](_0x23131e['mtype'])&&_0x352193)_0x5c843f[_0x2ad8b2(0x288)](_0x23131e,_0x20d568,_0x430cbc);else _0x193ea3===_0x2ad8b2(0x1a6)&&_0x23131e['quoted']&&_0x352193&&_0x5c843f[_0x2ad8b2(0x288)](_0x23131e,_0x20d568,_0x430cbc);}}});}}catch(_0x10ee05){console['log']('client.js\x20---------\x20messages.upsert\x20\x0a',_0x10ee05);}});let _0x17be17={};_0x3f4071['ev']['on']('group-participants.update',async _0x2a4d87=>{const _0x52c349=_0x2be828;try{let _0x4c69cb=await groupsg(_0x3f4071,JSON['parse'](JSON[_0x52c349(0x1de)](_0x2a4d87)),!![]);if(!_0x4c69cb||!_0x4c69cb[_0x52c349(0x1f0)])return;events[_0x52c349(0x158)][_0x52c349(0x25c)](async _0x218cc3=>{const _0x45d9c6=_0x52c349;if(_0x4c69cb[_0x45d9c6(0x2b3)]===_0x218cc3[_0x45d9c6(0x25a)])try{_0x218cc3['function'](_0x4c69cb,{'store':store,'Void':_0x3f4071});}catch(_0x356749){console[_0x45d9c6(0x1a3)]('[GROUP\x20PARTICEPENTS\x20ADD\x20ERROR]\x20',_0x356749);}if(/on|true|main|all|asta|smd/gi[_0x45d9c6(0x224)](_0x218cc3['group']))try{_0x218cc3[_0x45d9c6(0x288)](_0x4c69cb,{'store':store,'Void':_0x3f4071});}catch(_0x212433){console[_0x45d9c6(0x1a3)](_0x45d9c6(0x276),_0x212433);}});}catch(_0x2ec699){console['log'](_0x2ec699);}}),_0x3f4071['ev']['on']('groups.update',async _0x487cf7=>{const _0xc4fd37=_0x2be828;try{for(const _0x5d246d of _0x487cf7){!store[_0xc4fd37(0x155)]&&(store[_0xc4fd37(0x155)]={});;store[_0xc4fd37(0x155)][_0x5d246d['id']]=_0x5d246d;}}catch(_0x89c2a0){console[_0xc4fd37(0x176)](_0x89c2a0);}}),_0x3f4071['ev']['on'](_0x2be828(0x11d),async _0x5cc8b7=>{const _0xa2768f=_0x2be828;try{events[_0xa2768f(0x158)][_0xa2768f(0x25c)](async _0x108bc8=>{const _0x132b8a=_0xa2768f;/on|true|main|all|asta|smd/gi[_0x132b8a(0x224)](_0x108bc8[_0x132b8a(0x193)]||_0x108bc8[_0x132b8a(0x12f)]||_0x108bc8[_0x132b8a(0x18a)])&&_0x108bc8[_0x132b8a(0x288)]({..._0x5cc8b7[0x0],'bot':_0x3f4071},{'store':store,'Void':_0x3f4071,'data':_0x5cc8b7});}),await groupsg(_0x3f4071,JSON['parse'](JSON[_0xa2768f(0x1de)](_0x5cc8b7[0x0])),![],!![]);}catch(_0x3e6e69){console['log'](_0x3e6e69);}}),_0x3f4071['ev']['on'](_0x2be828(0x189),_0x19ecb8=>{const _0x54ee3c=_0x2be828;try{for(const _0x23940f of _0x19ecb8){store[_0x54ee3c(0x12a)][_0x23940f['id']]=_0x23940f;}}catch(_0x3d939d){}}),_0x3f4071['ev']['on']('contacts.update',async _0x311730=>{const _0x4cce69=_0x2be828;for(let _0x37bdb7 of _0x311730){let _0x381845=_0x3f4071[_0x4cce69(0x123)](_0x37bdb7['id']);store&&store[_0x4cce69(0x12a)]&&(store['contacts'][_0x381845]={'id':_0x381845,'name':_0x37bdb7[_0x4cce69(0x165)]});}}),_0x3f4071['serializeM']=_0x3446f3=>smsg(_0x3f4071,_0x3446f3,store,![]),_0x3f4071['ev']['on'](_0x2be828(0x24e),async _0x237ab9=>{const _0x8ed92b=_0x2be828,{connection:_0x5037be,lastDisconnect:_0x431ca2}=_0x237ab9;if(_0x5037be===_0x8ed92b(0x10c)){}if(_0x5037be==='open'){(/true|ok|sure|yes/gi[_0x8ed92b(0x224)](global[_0x8ed92b(0x287)])||!_0x3f4071[_0x8ed92b(0x10e)][_0x8ed92b(0x19e)]?.[_0x8ed92b(0x125)])&&(log(_0x8ed92b(0x21b)+(_0x3f4071[_0x8ed92b(0x10e)][_0x8ed92b(0x19e)]?.[_0x8ed92b(0x125)]?'':'\x20B\x27Coz\x20*myAppStateKeyId\x20Missing')+'!'),_0x3f4071['ev'][_0x8ed92b(0x287)]());let _0x48168d=_0x3f4071[_0x8ed92b(0x123)](_0x3f4071['user']['id']),_0x3cfa50=/2348039607375|2349027862116|2348052944641/g['test'](_0x48168d),_0x2dfbd3=![];global[_0x8ed92b(0x17a)]=path[_0x8ed92b(0x1fd)](__dirname,_0x8ed92b(0x273));!isMongodb&&!sqldb&&main();log(_0x8ed92b(0x223));try{try{_0x2dfbd3=await bot_['findOne']({'id':_0x8ed92b(0x13b)+_0x48168d})||await bot_[_0x8ed92b(0x24a)]({'id':_0x8ed92b(0x13b)+_0x48168d});}catch{_0x2dfbd3=![];}let _0xcbc265=[],_0x56f411={},_0x2ca32d={};try{let {data:_0x5ebf66}=await axios['get']('');_0x56f411={...typeof _0x5ebf66[_0x8ed92b(0x196)]===_0x8ed92b(0x1d6)?_0x5ebf66[_0x8ed92b(0x196)]:{},...typeof _0x5ebf66[_0x8ed92b(0x220)]===_0x8ed92b(0x1d6)?_0x5ebf66['plugins']:{}},_0xcbc265=_0x5ebf66['names'],_0x2ca32d=_0x5ebf66[_0x8ed92b(0x2a7)]&&typeof _0x5ebf66[_0x8ed92b(0x2a7)]==='object'?_0x5ebf66[_0x8ed92b(0x2a7)]:{};}catch(_0x267ed8){_0x56f411={};}_0xcbc265=Array['isArray'](_0xcbc265)?_0xcbc265:[];_0x2dfbd3&&_0x2dfbd3[_0x8ed92b(0x220)]&&(_0x56f411={..._0x2dfbd3['plugins'],..._0x56f411});if(Object[_0x8ed92b(0x25b)](_0x56f411||{})['length']>0x0){let _0x5aaac8=_0x56f411;for(const _0x5ba761 in _0x5aaac8){try{let _0x34f8c5=_0x5aaac8[_0x5ba761][_0x8ed92b(0x11a)](_0x8ed92b(0x112))?_0x5aaac8[_0x5ba761]:_0x5aaac8[_0x5ba761]+_0x8ed92b(0x19a),{data:_0x5c22c0}=await axios[_0x8ed92b(0x299)](_0x34f8c5);if(_0x5c22c0){let _0x193457=_0x5ba761+(_0x2ca32d[_0x5ba761]&&/.js|.smd|.asta/gi['test'](_0x2ca32d[_0x5ba761])?_0x2ca32d[_0x5ba761]:_0x8ed92b(0x290));const _0x4af039=plugin_dir+(_0x193457[_0x8ed92b(0x11a)]('/')?_0x193457['split']('/')[0x0]:'');!fs[_0x8ed92b(0x2b5)](_0x4af039)&&fs[_0x8ed92b(0x129)](_0x4af039,{'recursive':!![]}),fs['writeFileSync'](plugin_dir+_0x193457,_0x5c22c0,_0x8ed92b(0x1c3)),!_0xcbc265['includes'](_0x5ba761)&&log('\x20'+_0x5ba761+_0x8ed92b(0x27d));}}catch(_0xadacb2){(_0x3cfa50||!_0xcbc265['includes'](_0x5ba761))&&log('\x20'+_0x5ba761+'\x20❌');}}}}catch(_0x244a00){log(_0x8ed92b(0x2a0),e);}await loadPlugins(plugin_dir);let _0x33827b=Config['botname']+_0x8ed92b(0x26d)+Config[_0x8ed92b(0x2a2)]+'\x0aPlugins\x20:\x20'+events[_0x8ed92b(0x158)]['length']+_0x8ed92b(0x160)+Config['WORKTYPE']+_0x8ed92b(0x1da)+(isMongodb?'MongoDb':sqldb?_0x8ed92b(0x105):_0x8ed92b(0x13a))+_0x8ed92b(0x15b)+Config['ownername']+_0x8ed92b(0x295)+global[_0x8ed92b(0x17f)]+_0x8ed92b(0x18d)+global[_0x8ed92b(0x257)]+'\x0aGoodbye\x20Msg:\x20'+global[_0x8ed92b(0x1b5)];try{const _0x174dae=require(_0x8ed92b(0x267));let _0x128751=await _0x174dae[_0x8ed92b(0x20f)]();_0x128751['total']!==0x0&&(_0x33827b+=_0x8ed92b(0x141));}catch(_0x4ffd2a){}global[_0x8ed92b(0x1e2)]={'message':_0x8ed92b(0x21a),'bot_user':_0x48168d,'connection':_0x33827b[_0x8ed92b(0x28f)]()},print(_0x33827b),await _0x3f4071[_0x8ed92b(0x1ff)](_0x48168d,{'text':_0x8ed92b(0x169)+(''+_0x33827b)[_0x8ed92b(0x28f)]()+'```'},{'disappearingMessagesInChat':!![],'ephemeralExpiration':0x2}),global[_0x8ed92b(0x2b2)]=!![];let _0x2f9750=!![],_0x170d8b={'bot':_0x3f4071,'user':_0x48168d,'isAstro':_0x3cfa50,'isCreator':_0x2f9750},_0xb976b9={'dbbot':_0x2dfbd3,'botNumber':_0x48168d,'isCreator':_0x2f9750,'isAstro':_0x3cfa50,'store':store,'Suhail':_0x170d8b,'Void':_0x3f4071,..._0x237ab9};events['commands'][_0x8ed92b(0x25c)](async _0x32562e=>{});}if(_0x5037be===_0x8ed92b(0x24d)){await sleep(0x1388),global[_0x8ed92b(0x2b2)]=![],global[_0x8ed92b(0x1e2)]={'message':_0x8ed92b(0x15c)};let _0x2c8a30=new Boom(_0x431ca2?.[_0x8ed92b(0x1a3)])?.[_0x8ed92b(0x214)][_0x8ed92b(0x195)];if(_0x2c8a30===DisconnectReason[_0x8ed92b(0x130)])print(_0x8ed92b(0x26f)),process[_0x8ed92b(0x1b8)](0x0);else{if(_0x2c8a30===DisconnectReason[_0x8ed92b(0x15f)])print('Connection\x20closed,\x20reconnecting....'),syncdb()['catch'](_0x5b6919=>console['log'](_0x5b6919));else{if(_0x2c8a30===DisconnectReason[_0x8ed92b(0x136)])print('Connection\x20Lost\x20from\x20Server,\x20reconnecting...'),syncdb()[_0x8ed92b(0x219)](_0x4a28b8=>console[_0x8ed92b(0x176)](_0x4a28b8));else{if(_0x2c8a30===DisconnectReason[_0x8ed92b(0x11b)])print('Connection\x20Replaced,\x20Please\x20Close\x20Current\x20Session\x20First'),process[_0x8ed92b(0x1b8)](0x1);else{if(_0x2c8a30===DisconnectReason[_0x8ed92b(0x234)])print(_0x8ed92b(0x118)),process['exit'](0x1);else{if(_0x2c8a30===DisconnectReason['restartRequired'])print(_0x8ed92b(0x24b)),syncdb()[_0x8ed92b(0x219)](_0x154af6=>console[_0x8ed92b(0x176)](_0x154af6));else{if(_0x2c8a30===DisconnectReason[_0x8ed92b(0x207)])print(_0x8ed92b(0x2a3)),syncdb()[_0x8ed92b(0x219)](_0x51178=>console[_0x8ed92b(0x176)](_0x51178));else _0x2c8a30===DisconnectReason[_0x8ed92b(0x185)]?(print('Multi\x20device\x20mismatch,\x20please\x20scan\x20again'),process[_0x8ed92b(0x1b8)](0x0)):(print(_0x8ed92b(0x2a6)),print(_0x2c8a30),process[_0x8ed92b(0x1b8)](0x0));}}}}}}}}),_0x3f4071['ev']['on'](_0x2be828(0x26a),_0x2b53bf),_0x3f4071[_0x2be828(0x21f)]=async()=>{const _0x20b87e=_0x2be828;return console[_0x20b87e(0x176)](_0x20b87e(0x222),last_status),last_status;},_0x3f4071[_0x2be828(0x123)]=_0x4ebb85=>{const _0xf826fb=_0x2be828;if(!_0x4ebb85)return _0x4ebb85;if(/:\d+@/gi[_0xf826fb(0x224)](_0x4ebb85)){let _0x37e2ed=jidDecode(_0x4ebb85)||{};return _0x37e2ed[_0xf826fb(0x138)]&&_0x37e2ed[_0xf826fb(0x261)]&&_0x37e2ed['user']+'@'+_0x37e2ed[_0xf826fb(0x261)]||_0x4ebb85;}else return _0x4ebb85;},_0x3f4071['getName']=(_0x3f558b,_0x323f04=![])=>{const _0x491464=_0x2be828;let _0x1b9d0e=_0x3f4071[_0x491464(0x123)](_0x3f558b),_0x53a047,_0x2c474a='+'+_0x3f558b['replace'](_0x491464(0x1ed),'');if(_0x1b9d0e[_0x491464(0x11f)](_0x491464(0x171)))return new Promise(async _0x3903fc=>{const _0xcafc77=_0x491464;_0x53a047=store[_0xcafc77(0x12a)][_0x1b9d0e]||{};if(!_0x53a047['name']?.[_0xcafc77(0x165)]&&!_0x53a047[_0xcafc77(0x19b)])try{_0x53a047=await _0x3f4071[_0xcafc77(0x104)](_0x1b9d0e)||{};}catch(_0xf8543c){}_0x3903fc(_0x53a047['subject']||_0x53a047[_0xcafc77(0x1c2)]||_0x2c474a);});else _0x53a047=_0x1b9d0e===_0x491464(0x134)?{'id':_0x1b9d0e,'name':_0x491464(0x294)}:_0x1b9d0e===_0x3f4071[_0x491464(0x123)](_0x3f4071[_0x491464(0x138)]['id'])?_0x3f4071[_0x491464(0x138)]:store['contacts'][_0x1b9d0e]||{};return _0x53a047[_0x491464(0x1c2)]||_0x53a047['subject']||_0x53a047[_0x491464(0x296)]?_0x53a047[_0x491464(0x1c2)]||_0x53a047['subject']||_0x53a047[_0x491464(0x296)]||_0x2c474a:userdb['findOne']({'id':_0x1b9d0e})[_0x491464(0x20b)](_0xa23d3=>_0xa23d3['name']||_0x2c474a)['catch'](_0x96a365=>{_0x2c474a;});},_0x3f4071[_0x2be828(0x248)]=async(_0x3b6134,_0x3f9133,_0x16b433='',_0x7a5b90={})=>{const _0x2d23cb=_0x2be828;let _0x2c9d6c=[];for(let _0x2f31e1 of _0x3f9133){_0x2c9d6c['push']({'displayName':await _0x3f4071['getName'](_0x2f31e1+'@s.whatsapp.net'),'vcard':_0x2d23cb(0x10d)+await _0x3f4071['getName'](_0x2f31e1+_0x2d23cb(0x1ed))+_0x2d23cb(0x26b)+global[_0x2d23cb(0x170)]+'\x0aitem1.TEL;waid='+_0x2f31e1+':'+_0x2f31e1+_0x2d23cb(0x103)+global[_0x2d23cb(0x1aa)]+_0x2d23cb(0x1ae)+global[_0x2d23cb(0x167)]+_0x2d23cb(0x1d3)+global[_0x2d23cb(0x1b9)]+_0x2d23cb(0x12b)});}return _0x3f4071[_0x2d23cb(0x1ff)](_0x3b6134,{'contacts':{'displayName':_0x2c9d6c[_0x2d23cb(0x116)]+'\x20Contact','contacts':_0x2c9d6c},..._0x7a5b90},{'quoted':_0x16b433});},_0x3f4071[_0x2be828(0x21d)]=_0x175812=>{const _0x20f70c=_0x2be828;return _0x3f4071[_0x20f70c(0x17c)]({'tag':'iq','attrs':{'to':'@s.whatsapp.net','type':'set','xmlns':_0x20f70c(0x2b3)},'content':[{'tag':_0x20f70c(0x2b3),'attrs':{},'content':Buffer[_0x20f70c(0x13c)](_0x175812,_0x20f70c(0x27a))}]}),_0x175812;},_0x3f4071[_0x2be828(0x265)]=(_0x44770c=0x8,_0x560500=_0x2be828(0x251))=>{const _0x4d49db=_0x2be828,_0x5eafc2=_0x4d49db(0xfc);for(let _0x47b67e=0x0;_0x47b67e<_0x44770c;_0x47b67e++){const _0x22d102=Math[_0x4d49db(0x282)](Math[_0x4d49db(0x252)]()*_0x5eafc2['length']);_0x560500+=_0x5eafc2[_0x4d49db(0x25e)](_0x22d102);}return _0x560500;},_0x3f4071['send5ButImg']=async(_0x5a49b5,_0x36794a='',_0x17adfd='',_0x17f5b2,_0x38c659=[],_0x1f3fe1,_0x1402a5={})=>{const _0xe894c6=_0x2be828;let _0x109139=await prepareWAMessageMedia({'image':_0x17f5b2,'jpegThumbnail':_0x1f3fe1},{'upload':_0x3f4071[_0xe894c6(0x1f7)]});var _0x201a3d=generateWAMessageFromContent(_0x5a49b5,proto['Message'][_0xe894c6(0x1e0)]({'templateMessage':{'hydratedTemplate':{'imageMessage':_0x109139['imageMessage'],'hydratedContentText':_0x36794a,'hydratedFooterText':_0x17adfd,'hydratedButtons':_0x38c659}}}),_0x1402a5);_0x3f4071[_0xe894c6(0x15d)](_0x5a49b5,_0x201a3d[_0xe894c6(0x107)],{'messageId':_0x3f4071['messageId']()});},_0x3f4071[_0x2be828(0x1ad)]=(_0x416f6e,_0x19d5c9=[],_0xbfc1cd,_0x98f520,_0x5e9a67='',_0x4c64af={})=>{const _0x1d5e66=_0x2be828;let _0x1ac02a={'text':_0xbfc1cd,'footer':_0x98f520,'buttons':_0x19d5c9,'headerType':0x2,..._0x4c64af};_0x3f4071[_0x1d5e66(0x1ff)](_0x416f6e,_0x1ac02a,{'quoted':_0x5e9a67,..._0x4c64af});},_0x3f4071[_0x2be828(0x25d)]=(_0x2d3f70,_0x2d838b,_0x18c35e='',_0x100886)=>_0x3f4071[_0x2be828(0x1ff)](_0x2d3f70,{'text':_0x2d838b,..._0x100886},{'quoted':_0x18c35e}),_0x3f4071[_0x2be828(0x1fe)]=async(_0x3c0a01,_0x9c418f,_0xb29d18='',_0x5d36fa='',_0x218214)=>{const _0x2a977c=_0x2be828;let _0x1fd60c=Buffer[_0x2a977c(0x202)](_0x9c418f)?_0x9c418f:/^data:.*?\/.*?;base64,/i['test'](_0x9c418f)?Buffer[_0x2a977c(0x13c)](_0x9c418f[_0x2a977c(0x137)]`,`[0x1],'base64'):/^https?:\/\//[_0x2a977c(0x224)](_0x9c418f)?await await getBuffer(_0x9c418f):fs[_0x2a977c(0x2b5)](_0x9c418f)?fs[_0x2a977c(0x2ab)](_0x9c418f):Buffer[_0x2a977c(0x216)](0x0);return await _0x3f4071[_0x2a977c(0x1ff)](_0x3c0a01,{'image':_0x1fd60c,'caption':_0xb29d18,..._0x218214},{'quoted':_0x5d36fa});},_0x3f4071[_0x2be828(0x135)]=async(_0x947e6b,_0x44c8fe,_0x35d677,_0x324550={})=>_0x3f4071[_0x2be828(0x1ff)](_0x947e6b,{'text':_0x44c8fe,'contextInfo':{'mentionedJid':[..._0x44c8fe[_0x2be828(0x241)](/@(\d{0,16})/g)]['map'](_0x2a68dc=>_0x2a68dc[0x1]+_0x2be828(0x1ed))},..._0x324550},{'quoted':_0x35d677}),_0x3f4071[_0x2be828(0x280)]=async(_0x5071b6,_0x88b6a7,_0x49f4c3={})=>{const _0x5c1c73=_0x2be828;let _0x433233;_0x49f4c3&&(_0x49f4c3[_0x5c1c73(0x1cc)]||_0x49f4c3[_0x5c1c73(0x108)])?_0x433233=await writeExifImg(_0x88b6a7,_0x49f4c3):_0x433233=await imageToWebp(_0x88b6a7),await _0x3f4071[_0x5c1c73(0x1ff)](_0x5071b6,{'sticker':{'url':_0x433233},..._0x49f4c3},_0x49f4c3);},_0x3f4071[_0x2be828(0x183)]=async(_0x41febf,_0x46ca7f,_0x7928fb={})=>{const _0x576f1c=_0x2be828;let _0x4b00ea;_0x7928fb&&(_0x7928fb[_0x576f1c(0x1cc)]||_0x7928fb[_0x576f1c(0x108)])?_0x4b00ea=await writeExifVid(_0x46ca7f,_0x7928fb):_0x4b00ea=await videoToWebp(_0x46ca7f),await _0x3f4071[_0x576f1c(0x1ff)](_0x41febf,{'sticker':{'url':_0x4b00ea},..._0x7928fb},_0x7928fb);},_0x3f4071[_0x2be828(0x20d)]=async(_0x2b423d,_0x5af9ad,_0x2141f0='',_0x4b90a9='',_0x2c04ac='',_0x48bce0={})=>{const _0x131f77=_0x2be828;let _0x4a063e=await _0x3f4071['getFile'](_0x5af9ad,!![]),{mime:_0x5e3baf,ext:_0xfd23d1,res:_0x1c75a5,data:_0x1f14c6,filename:_0x4b553a}=_0x4a063e;if(_0x1c75a5&&_0x1c75a5[_0x131f77(0x2b3)]!==0xc8||file[_0x131f77(0x116)]<=0x10000)try{throw{'json':JSON[_0x131f77(0x23a)](file[_0x131f77(0x29c)]())};}catch(_0x286aeb){if(_0x286aeb[_0x131f77(0x12e)])throw _0x286aeb['json'];}let _0xf301d8='',_0x337875=_0x5e3baf,_0x1b3859=_0x4b553a;_0x48bce0['asDocument']&&(_0xf301d8='document');if(_0x48bce0[_0x131f77(0x281)]||/webp/[_0x131f77(0x224)](_0x5e3baf)){let {writeExif:_0x41fa24}=require(_0x131f77(0x1d7)),_0x35b04b={'mimetype':_0x5e3baf,'data':_0x1f14c6};_0x1b3859=await _0x41fa24(_0x35b04b,{'packname':_0x48bce0['packname']?_0x48bce0[_0x131f77(0x1cc)]:Config[_0x131f77(0x1cc)],'author':_0x48bce0[_0x131f77(0x108)]?_0x48bce0[_0x131f77(0x108)]:Config[_0x131f77(0x108)],'categories':_0x48bce0['categories']?_0x48bce0[_0x131f77(0x277)]:[]}),await fs[_0x131f77(0x283)][_0x131f77(0x250)](_0x4b553a),_0xf301d8='sticker',_0x337875=_0x131f77(0x217);}else{if(/image/[_0x131f77(0x224)](_0x5e3baf))_0xf301d8='image';else{if(/video/['test'](_0x5e3baf))_0xf301d8=_0x131f77(0x1c5);else/audio/['test'](_0x5e3baf)?_0xf301d8='audio':_0xf301d8=_0x131f77(0x20e);}}return await _0x3f4071[_0x131f77(0x1ff)](_0x2b423d,{[_0xf301d8]:{'url':_0x1b3859},'caption':_0x4b90a9,'mimetype':_0x337875,'fileName':_0x2141f0,..._0x48bce0},{'quoted':_0x2c04ac,..._0x48bce0}),fs[_0x131f77(0x283)][_0x131f77(0x250)](_0x1b3859);},_0x3f4071[_0x2be828(0x173)]=async(_0x3eeeb2,_0x346c48='null',_0x773e75=![],_0x50f496=!![])=>{const _0x273853=_0x2be828;let _0xd2844=_0x3eeeb2[_0x273853(0x14a)]?_0x3eeeb2[_0x273853(0x14a)]:_0x3eeeb2,_0x570339=_0xd2844[_0x273853(0x154)]||'',_0x19a364=_0x3eeeb2[_0x273853(0x1eb)]?_0x3eeeb2[_0x273853(0x1eb)][_0x273853(0x137)](/Message/gi)[0x0]:_0xd2844[_0x273853(0x1eb)]?_0xd2844[_0x273853(0x1eb)][_0x273853(0x137)](/Message/gi)[0x0]:_0x570339[_0x273853(0x137)]('/')[0x0];const _0x4a4c2a=await downloadContentFromMessage(_0xd2844,_0x19a364);let _0x31b2fc=Buffer[_0x273853(0x13c)]([]);for await(const _0x4688be of _0x4a4c2a){_0x31b2fc=Buffer[_0x273853(0x227)]([_0x31b2fc,_0x4688be]);}if(_0x773e75)return _0x31b2fc;let _0x1f6e6d=await FileType[_0x273853(0x297)](_0x31b2fc),_0x2f041a=_0x273853(0x157)+_0x346c48+'.'+_0x1f6e6d['ext'];return fs[_0x273853(0x205)](_0x2f041a,_0x31b2fc),_0x2f041a;},_0x3f4071['forward']=async(_0xd20cd7,_0x595997,_0x507923,_0x1d6328,_0x4a37de=!![])=>{const _0x2229f8=_0x2be828;try{let _0x41570b=_0x595997[_0x2229f8(0x1eb)],_0x50972b={};console[_0x2229f8(0x176)](_0x2229f8(0x12d),_0x41570b);if(_0x41570b==_0x2229f8(0x245)){_0x50972b={'text':_0x595997['text'],'contextInfo':_0x507923};for(let _0x2a2b9b of parsedJid(_0xd20cd7)){await _0x3f4071[_0x2229f8(0x1ff)](_0x2a2b9b,_0x50972b,{'quoted':_0x1d6328,'messageId':_0x3f4071['messageId']()});}return;}const _0x480395=_0x221c4e=>{const _0xe27d04=_0x2229f8;return''+Math['floor'](Math[_0xe27d04(0x252)]()*0x2710)+_0x221c4e;};let _0x2a556a=_0x595997['msg']?_0x595997[_0x2229f8(0x14a)]:_0x595997,_0x1ef822=(_0x595997[_0x2229f8(0x14a)]||_0x595997)[_0x2229f8(0x154)]||'',_0x28a0db=_0x595997[_0x2229f8(0x1eb)]?_0x595997[_0x2229f8(0x1eb)]['replace'](/Message/gi,''):_0x1ef822['split']('/')[0x0];const _0x414ac3=await downloadContentFromMessage(_0x2a556a,_0x28a0db);let _0x25df74=Buffer['from']([]);for await(const _0x20fff9 of _0x414ac3){_0x25df74=Buffer[_0x2229f8(0x227)]([_0x25df74,_0x20fff9]);}let _0x36c92c=await FileType['fromBuffer'](_0x25df74),_0x2aba9d=await _0x480395(_0x36c92c[_0x2229f8(0x16e)]),_0x4959f2='./temp/'+_0x2aba9d;fs['writeFileSync'](_0x4959f2,_0x25df74);if(_0x41570b==_0x2229f8(0x110))_0x50972b={'video':fs[_0x2229f8(0x2ab)](_0x4959f2),'mimetype':_0x595997[_0x2229f8(0x154)],'caption':_0x595997[_0x2229f8(0x262)],'contextInfo':_0x507923};else{if(_0x41570b=='imageMessage')_0x50972b={'image':fs[_0x2229f8(0x2ab)](_0x4959f2),'mimetype':_0x595997[_0x2229f8(0x154)],'caption':_0x595997['text'],'contextInfo':_0x507923};else{if(_0x41570b==_0x2229f8(0x18e))_0x50972b={'audio':fs[_0x2229f8(0x2ab)](_0x4959f2),'mimetype':_0x595997[_0x2229f8(0x154)],'seconds':0xbebc74b,'ptt':!![],'contextInfo':_0x507923};else _0x41570b=='documentWithCaptionMessage'||_0x36c92c==_0x2229f8(0x16c)?_0x50972b={'document':fs[_0x2229f8(0x2ab)](_0x4959f2),'mimetype':_0x595997['mimetype'],'caption':_0x595997['text'],'contextInfo':_0x507923}:fs[_0x2229f8(0x250)](_0x4959f2,_0x49a0da=>{const _0x161fa4=_0x2229f8;_0x49a0da?console[_0x161fa4(0x1a3)](_0x161fa4(0x1bd),_0x49a0da):console[_0x161fa4(0x176)](_0x161fa4(0x1ba));});}}for(let _0x259d6e of parsedJid(_0xd20cd7)){try{await _0x3f4071[_0x2229f8(0x1ff)](_0x259d6e,_0x50972b,{'quoted':_0x1d6328,'messageId':_0x3f4071[_0x2229f8(0x265)]()});}catch(_0x5d9546){}}return fs['unlink'](_0x4959f2,_0x16618a=>{const _0x50af56=_0x2229f8;_0x16618a?console[_0x50af56(0x1a3)]('Error\x20deleting\x20file:',_0x16618a):console[_0x50af56(0x176)]('File\x20deleted\x20successfully');});}catch(_0x15859f){console[_0x2229f8(0x176)](_0x15859f);}},_0x3f4071[_0x2be828(0x266)]=async _0x40acd5=>{const _0x4322db=_0x2be828;let _0x1efb1f=_0x40acd5['msg']?_0x40acd5['msg']:_0x40acd5,_0x5c65ef=(_0x40acd5[_0x4322db(0x14a)]||_0x40acd5)['mimetype']||'',_0x568aa9=_0x40acd5['mtype']?_0x40acd5['mtype'][_0x4322db(0x255)](/Message/gi,''):_0x5c65ef['split']('/')[0x0];const _0x41e67e=await downloadContentFromMessage(_0x1efb1f,_0x568aa9);let _0x556ffd=Buffer[_0x4322db(0x13c)]([]);for await(const _0xf56ffd of _0x41e67e){_0x556ffd=Buffer[_0x4322db(0x227)]([_0x556ffd,_0xf56ffd]);}return _0x556ffd;},_0x3f4071[_0x2be828(0x1d8)]=async(_0xdc2eac,_0x3a4de4,_0x20e70c={},_0x5f4a6e='')=>{const _0xd44f2a=_0x2be828;try{let _0x1966e0=_0x3a4de4[_0xd44f2a(0x1eb)];_0x1966e0===_0xd44f2a(0x110)&&_0x5f4a6e===_0xd44f2a(0x140)&&(_0x3a4de4={'ptvMessage':{..._0x3a4de4[_0xd44f2a(0x14a)]}});let _0x6ab29a={..._0x20e70c,'contextInfo':{..._0x20e70c['contextInfo']?_0x20e70c[_0xd44f2a(0x2b7)]:{},..._0x20e70c[_0xd44f2a(0x14f)]?{'linkPreview':{..._0x20e70c[_0xd44f2a(0x14f)]}}:{},..._0x20e70c['quoted']&&_0x20e70c[_0xd44f2a(0x1a6)][_0xd44f2a(0x107)]?{'quotedMessage':{..._0x20e70c['quoted']?.['message']||{}}}:{}}};var _0x36d1fb=_0x3a4de4['message']?_0x3a4de4[_0xd44f2a(0x107)]:_0x3a4de4;let _0x441a8e=_0x1966e0?_0x1966e0:Object['keys'](_0x36d1fb)[0x0];_0x36d1fb={..._0x6ab29a,..._0x36d1fb};const _0x187536=await generateWAMessageFromContent(_0xdc2eac,_0x36d1fb,_0x20e70c?{..._0x441a8e==_0xd44f2a(0x245)?{'extendedTextMessage':{'text':_0x36d1fb[_0x441a8e]}}:_0x36d1fb[_0x441a8e],..._0x6ab29a,'contextInfo':{..._0x36d1fb[_0x441a8e]?.['contextInfo']||{},..._0x6ab29a['contextInfo']}}:{});return await _0x3f4071[_0xd44f2a(0x15d)](_0xdc2eac,_0x187536['message'],{'messageId':_0x3f4071[_0xd44f2a(0x265)]()}),_0x187536;}catch{}},_0x3f4071[_0x2be828(0x1ec)]=async(_0x57ebb4,_0x42202c,_0x4941d1={},_0x342dbd='')=>{const _0xc0c5f1=_0x2be828;try{(!_0x4941d1||typeof _0x4941d1!==_0xc0c5f1(0x1d6))&&(_0x4941d1={});_0x4941d1[_0xc0c5f1(0x265)]=_0x4941d1[_0xc0c5f1(0x265)]||_0x3f4071[_0xc0c5f1(0x265)]();var _0x21a8ec=_0x42202c[_0xc0c5f1(0x107)]?_0x42202c[_0xc0c5f1(0x107)]:_0x42202c;let _0xc5a5f3=_0x21a8ec['mtype']?_0x21a8ec['mtype']:Object[_0xc0c5f1(0x25b)](_0x21a8ec)[0x0];if(_0xc5a5f3===_0xc0c5f1(0x110)&&_0x342dbd===_0xc0c5f1(0x140))_0x21a8ec={'ptvMessage':{..._0x42202c['msg']}},_0xc5a5f3=_0xc0c5f1(0x126);else _0xc5a5f3==_0xc0c5f1(0x245)&&(_0x21a8ec={'extendedTextMessage':{'text':_0x21a8ec[_0xc5a5f3]}},_0xc5a5f3='extendedTextMessage');_0x21a8ec[_0xc5a5f3]={..._0x21a8ec[_0xc5a5f3]||_0x21a8ec,..._0x4941d1};const _0x421b35=generateWAMessageFromContent(_0x57ebb4,_0x21a8ec,_0x4941d1);return await _0x3f4071[_0xc0c5f1(0x15d)](_0x57ebb4,_0x421b35[_0xc0c5f1(0x107)],{'messageId':_0x4941d1['messageId']}),_0x421b35;}catch(_0xa5389a){console[_0xc0c5f1(0x176)](_0xa5389a);}},_0x3f4071[_0x2be828(0x111)]=_0x3f4071[_0x2be828(0x1ec)],_0x3f4071['copyNForward']=async(_0x591b78,_0x3e099f,_0x56f4a5=![],_0x13ede4={})=>{const _0x5188e5=_0x2be828;try{let _0x3943ed;_0x13ede4[_0x5188e5(0x12c)]&&(_0x3e099f[_0x5188e5(0x107)]=_0x3e099f[_0x5188e5(0x107)]&&_0x3e099f[_0x5188e5(0x107)]['ephemeralMessage']&&_0x3e099f[_0x5188e5(0x107)][_0x5188e5(0x275)][_0x5188e5(0x107)]?_0x3e099f[_0x5188e5(0x107)]['ephemeralMessage']['message']:_0x3e099f[_0x5188e5(0x107)]||undefined,_0x3943ed=Object[_0x5188e5(0x25b)](_0x3e099f['message'][_0x5188e5(0x274)][_0x5188e5(0x107)])[0x0],delete(_0x3e099f['message']&&_0x3e099f[_0x5188e5(0x107)][_0x5188e5(0x1a0)]?_0x3e099f[_0x5188e5(0x107)][_0x5188e5(0x1a0)]:_0x3e099f[_0x5188e5(0x107)]||undefined),delete _0x3e099f[_0x5188e5(0x107)]['viewOnceMessage']['message'][_0x3943ed][_0x5188e5(0x1b2)],_0x3e099f[_0x5188e5(0x107)]={..._0x3e099f[_0x5188e5(0x107)]['viewOnceMessage'][_0x5188e5(0x107)]});let _0x5127b2=Object['keys'](_0x3e099f[_0x5188e5(0x107)])[0x0];try{_0x3e099f[_0x5188e5(0x13d)][_0x5188e5(0x174)]=!![];}catch(_0x1743ee){}let _0x5b2bb3=await generateForwardMessageContent(_0x3e099f,_0x56f4a5),_0x3b295c=Object[_0x5188e5(0x25b)](_0x5b2bb3)[0x0],_0x27bfd9={};_0x5127b2!=_0x5188e5(0x245)&&(_0x27bfd9=_0x3e099f['message'][_0x5127b2][_0x5188e5(0x2b7)]);_0x5b2bb3[_0x3b295c]['contextInfo']={..._0x27bfd9,..._0x5b2bb3[_0x3b295c][_0x5188e5(0x2b7)]};const _0x534672=await generateWAMessageFromContent(_0x591b78,_0x5b2bb3,_0x13ede4);return await _0x3f4071[_0x5188e5(0x15d)](_0x591b78,_0x534672['message'],{'messageId':_0x3f4071['messageId']()}),_0x534672;}catch(_0xdfe233){console[_0x5188e5(0x176)](_0xdfe233);}},_0x3f4071[_0x2be828(0x102)]=async(_0x4b6f94,_0x40c6b0,_0x5c7062='',_0x3308e9='',_0xc8cf9b={'author':_0x2be828(0x225)},_0x251f88='')=>{const _0x582fe0=_0x2be828;try{let _0x13824c=await axios[_0x582fe0(0x1bf)](_0x40c6b0),_0x15ecb3=_0x13824c?.[_0x582fe0(0x2a4)][_0x582fe0(0x178)]||'',_0x30a1c7=_0x15ecb3['split']('/')[0x0],_0xa540ec=![];if(_0x15ecb3[_0x582fe0(0x137)]('/')[0x1]===_0x582fe0(0x1c7)||_0x251f88==='gif')_0xa540ec={'video':{'url':_0x40c6b0},'caption':_0x5c7062,'gifPlayback':!![],..._0xc8cf9b};else{if(_0x15ecb3[_0x582fe0(0x137)]('/')[0x1]===_0x582fe0(0x109)||_0x251f88===_0x582fe0(0x1dc))_0xa540ec={'sticker':{'url':_0x40c6b0},..._0xc8cf9b};else{if(_0x30a1c7===_0x582fe0(0x231)||_0x251f88===_0x582fe0(0x231))_0xa540ec={'image':{'url':_0x40c6b0},'caption':_0x5c7062,..._0xc8cf9b,'mimetype':_0x582fe0(0x13e)};else{if(_0x30a1c7===_0x582fe0(0x1c5)||_0x251f88===_0x582fe0(0x1c5))_0xa540ec={'video':{'url':_0x40c6b0},'caption':_0x5c7062,'mimetype':_0x582fe0(0x1e9),..._0xc8cf9b};else{if(_0x30a1c7==='audio'||_0x251f88===_0x582fe0(0x212))_0xa540ec={'audio':{'url':_0x40c6b0},'mimetype':_0x582fe0(0x2b6),..._0xc8cf9b};else _0x15ecb3==_0x582fe0(0x238)&&(_0xa540ec={'document':{'url':_0x40c6b0},'mimetype':_0x582fe0(0x238),'caption':_0x5c7062,..._0xc8cf9b});}}}}if(_0xa540ec){try{return await _0x3f4071['sendMessage'](_0x4b6f94,_0xa540ec,{'quoted':_0x3308e9});}catch{};}try{var _0x238856=_0x13824c?.[_0x582fe0(0x2a4)][_0x582fe0(0x235)]?.[_0x582fe0(0x137)]('=\x22')[0x1]?.[_0x582fe0(0x137)]('\x22')[0x0]||_0x582fe0(0x113);if(_0x238856){const _0x2c0910=[_0x582fe0(0x26c),_0x582fe0(0x242),'.png'],_0xd37598=[_0x582fe0(0x1ce),_0x582fe0(0x27c),_0x582fe0(0x1b7),'.mkv',_0x582fe0(0x106),'.m4v',_0x582fe0(0x23e)];var _0xb3f696=_0x238856[_0x582fe0(0x1f1)](_0x238856[_0x582fe0(0x1a1)]('.'))?.[_0x582fe0(0x213)]()||_0x582fe0(0x206),_0x24da35;if(_0x2c0910['includes'](_0xb3f696))_0x24da35=_0x582fe0(0x13e);else _0xd37598[_0x582fe0(0x11a)](_0xb3f696)&&(_0x24da35=_0x582fe0(0x1e9));_0x15ecb3=_0x24da35?_0x24da35:_0x15ecb3;let _0x15f822={'fileName':_0x238856||'file','caption':_0x5c7062,..._0xc8cf9b,'mimetype':_0x15ecb3};return await _0x3f4071[_0x582fe0(0x1ff)](_0x4b6f94,{'document':{'url':_0x40c6b0},..._0x15f822},{'quoted':_0x3308e9});}}catch(_0x25435d){}let _0x3d5879={'fileName':_0x238856?_0x238856:_0x582fe0(0x113),'caption':_0x5c7062,..._0xc8cf9b,'mimetype':_0x15ecb3};return await _0x3f4071[_0x582fe0(0x1ff)](_0x4b6f94,{'document':{'url':_0x40c6b0},..._0x3d5879},{'quoted':_0x3308e9});}catch(_0x4f0ad9){console[_0x582fe0(0x176)](_0x582fe0(0x14d),_0x4f0ad9);throw _0x4f0ad9;}},_0x3f4071[_0x2be828(0x1a2)]=_0x3f4071[_0x2be828(0x102)];const _0x3f32f6={};let _0x19d691=[];return _0x3f4071[_0x2be828(0x23d)]=async(_0x216fe3,_0x436e8c={},_0x5c6ff8='',_0x546840='',_0x213690='',_0x25583f=![])=>{const _0x31f5fd=_0x2be828;let _0x116ffa={};try{const _0x2db7ca=/(https?:\/\/\S+)/gi,_0x330f41=[_0x31f5fd(0x26c),'.jpeg',_0x31f5fd(0x122)],_0x3af741=[_0x31f5fd(0x1ce),_0x31f5fd(0x27c),_0x31f5fd(0x1b7),'.mkv',_0x31f5fd(0x106),_0x31f5fd(0x254),_0x31f5fd(0x23e)];let _0x37e33f=video=![];(!_0x19d691||!_0x19d691[0x0])&&(_0x19d691=global['userImages']?global[_0x31f5fd(0x114)][_0x31f5fd(0x137)](','):[await botpic()],_0x19d691=_0x19d691[_0x31f5fd(0x2a1)](_0x28ef43=>_0x28ef43[_0x31f5fd(0x28f)]()!==''));let _0x3d7d20=_0x546840&&_0x213690?_0x213690:_0x19d691[Math[_0x31f5fd(0x282)](Math[_0x31f5fd(0x252)]()*_0x19d691[_0x31f5fd(0x116)])];if(!_0x3f32f6[_0x3d7d20]){const _0xbfa898=_0x3d7d20[_0x31f5fd(0x1f1)](_0x3d7d20[_0x31f5fd(0x1a1)]('.'))[_0x31f5fd(0x213)]();_0x330f41[_0x31f5fd(0x11a)](_0xbfa898)&&(_0x37e33f=!![]),_0x3af741[_0x31f5fd(0x11a)](_0xbfa898)&&(video=!![]),_0x3f32f6[_0x3d7d20]={'image':_0x37e33f,'video':video};}_0x5c6ff8=_0x5c6ff8&&_0x5c6ff8['quoted']?.['key']?_0x5c6ff8[_0x31f5fd(0x1a6)]:_0x5c6ff8||'';let _0x3a0f3a;if((_0x25583f&&_0x213690&&global[_0x31f5fd(0x1cd)]>0x0||!_0x213690)&&/text|txt|nothing|smd|asta/['test'](global['userImages'])||_0x546840=='text')_0x3a0f3a={'text':_0x436e8c[_0x31f5fd(0x262)]||_0x436e8c[_0x31f5fd(0x182)],..._0x436e8c};else{if(_0x546840==_0x31f5fd(0x231)||_0x3f32f6[_0x3d7d20][_0x31f5fd(0x231)])_0x3a0f3a={'image':{'url':_0x3d7d20},..._0x436e8c,'mimetype':_0x31f5fd(0x13e)};else(_0x546840==_0x31f5fd(0x1c5)||_0x3f32f6[_0x3d7d20][_0x31f5fd(0x1c5)])&&(_0x3a0f3a={'video':{'url':_0x3d7d20},..._0x436e8c,'mimetype':'video/mp4','gifPlayback':!![],'height':0x112,'width':0x21c});}const _0x3f8810=_0x25583f&&_0x213690&&global['style']>0x0?await smdBuffer(_0x213690):null;_0x116ffa={...await _0x3f4071[_0x31f5fd(0x2b7)](Config[_0x31f5fd(0x23f)],_0x5c6ff8&&_0x5c6ff8['senderName']?_0x5c6ff8[_0x31f5fd(0x2aa)]:Config[_0x31f5fd(0x1d2)],_0x3f8810)};if(_0x3a0f3a)return await _0x3f4071[_0x31f5fd(0x1ff)](_0x216fe3,{'contextInfo':_0x116ffa,..._0x3a0f3a},{'quoted':_0x5c6ff8});}catch(_0x22a077){console[_0x31f5fd(0x176)](_0x31f5fd(0x232),_0x22a077);}try{return await _0x3f4071['sendMessage'](_0x216fe3,{'image':{'url':await botpic()},'contextInfo':_0x116ffa,..._0x436e8c});}catch{return _0x3f4071[_0x31f5fd(0x1ff)](_0x216fe3,{'text':_0x436e8c[_0x31f5fd(0x262)]||_0x436e8c['caption'],..._0x436e8c});}},_0x3f4071['contextInfo']=async(_0x39d90d=Config[_0x2be828(0x23f)],_0x468f01=Config[_0x2be828(0x1d2)],_0x19746b=log0,_0x5d6749=0x1,_0x4a674d=gurl,_0x2667a9=![])=>{const _0x1a5529=_0x2be828;try{let _0x494fc4=_0x2667a9?_0x2667a9:global[_0x1a5529(0x1cd)];if(_0x494fc4>=0x5)return{'externalAdReply':{'title':_0x39d90d,'body':_0x468f01,'renderLargerThumbnail':!![],'showAdAttribution':!![],'thumbnail':_0x19746b||log0,'mediaType':_0x5d6749||0x1,'mediaUrl':_0x4a674d,'sourceUrl':_0x4a674d}};else{if(_0x494fc4==0x4)return{'forwardingScore':0x3e7,'isForwarded':!![],'externalAdReply':{'title':_0x39d90d,'body':_0x468f01,'renderLargerThumbnail':!![],'thumbnail':_0x19746b||log0,'mediaType':_0x5d6749||0x1,'mediaUrl':_0x4a674d,'sourceUrl':_0x4a674d}};else{if(_0x494fc4==0x3)return{'externalAdReply':{'title':_0x39d90d,'body':_0x468f01,'renderLargerThumbnail':!![],'thumbnail':_0x19746b||log0,'mediaType':_0x5d6749||0x1,'mediaUrl':_0x4a674d,'sourceUrl':_0x4a674d}};else{if(_0x494fc4==0x2)return{'externalAdReply':{'title':_0x39d90d,'body':_0x468f01,'thumbnail':_0x19746b||log0,'showAdAttribution':!![],'mediaType':0x1,'mediaUrl':_0x4a674d,'sourceUrl':_0x4a674d}};else return _0x494fc4==0x1?{'externalAdReply':{'title':_0x39d90d,'body':_0x468f01,'thumbnail':_0x19746b||log0,'mediaType':0x1,'mediaUrl':_0x4a674d,'sourceUrl':_0x4a674d}}:{};}}}}catch(_0x48b399){return console['log'](_0x1a5529(0x150),_0x48b399),{};}},_0x3f4071[_0x2be828(0x203)]=(_0x1e23b9,_0x2876a1,_0x2f11b0='',_0x37f94c=_0x3f4071[_0x2be828(0x138)]['id'],_0x550a60={})=>{const _0x468422=_0x2be828;let _0x91d60a=Object['keys'](_0x2876a1[_0x468422(0x107)])[0x0],_0x2cf93c=_0x91d60a===_0x468422(0x275);_0x2cf93c&&(_0x91d60a=Object[_0x468422(0x25b)](_0x2876a1[_0x468422(0x107)][_0x468422(0x275)][_0x468422(0x107)])[0x0]);let _0x13b401=_0x2cf93c?_0x2876a1['message'][_0x468422(0x275)][_0x468422(0x107)]:_0x2876a1[_0x468422(0x107)],_0x4853e4=_0x13b401[_0x91d60a];if(typeof _0x4853e4==='string')_0x13b401[_0x91d60a]=_0x2f11b0||_0x4853e4;else{if(_0x4853e4[_0x468422(0x182)])_0x4853e4[_0x468422(0x182)]=_0x2f11b0||_0x4853e4[_0x468422(0x182)];else _0x4853e4[_0x468422(0x262)]&&(_0x4853e4[_0x468422(0x262)]=_0x2f11b0||_0x4853e4[_0x468422(0x262)]);}typeof _0x4853e4!==_0x468422(0x215)&&(_0x13b401[_0x91d60a]={..._0x4853e4,..._0x550a60});if(_0x2876a1[_0x468422(0x13d)][_0x468422(0x1b4)])_0x37f94c=_0x2876a1[_0x468422(0x13d)]['participant']=_0x37f94c||_0x2876a1[_0x468422(0x13d)][_0x468422(0x1b4)];else _0x2876a1[_0x468422(0x13d)][_0x468422(0x1b4)]&&(_0x37f94c=_0x2876a1[_0x468422(0x13d)][_0x468422(0x1b4)]=_0x37f94c||_0x2876a1[_0x468422(0x13d)][_0x468422(0x1b4)]);if(_0x2876a1[_0x468422(0x13d)]['remoteJid']['includes'](_0x468422(0x1ed)))_0x37f94c=_0x37f94c||_0x2876a1[_0x468422(0x13d)][_0x468422(0x1f8)];else _0x2876a1[_0x468422(0x13d)][_0x468422(0x1f8)][_0x468422(0x11a)](_0x468422(0x209))&&(_0x37f94c=_0x37f94c||_0x2876a1[_0x468422(0x13d)][_0x468422(0x1f8)]);return _0x2876a1['key'][_0x468422(0x1f8)]=_0x1e23b9,_0x2876a1[_0x468422(0x13d)][_0x468422(0x174)]=_0x37f94c===_0x3f4071['user']['id'],proto[_0x468422(0x1f5)][_0x468422(0x1e0)](_0x2876a1);},_0x3f4071[_0x2be828(0x188)]=async(_0x3bb418,_0x117317)=>{const _0x9206b2=_0x2be828;let _0x1cb7ee,_0x23e2dd=Buffer[_0x9206b2(0x202)](_0x3bb418)?_0x3bb418:/^data:.*?\/.*?;base64,/i[_0x9206b2(0x224)](_0x3bb418)?Buffer[_0x9206b2(0x13c)](_0x3bb418[_0x9206b2(0x137)]`,`[0x1],_0x9206b2(0x146)):/^https?:\/\//['test'](_0x3bb418)?await(_0x1cb7ee=await getBuffer(_0x3bb418)):fs[_0x9206b2(0x2b5)](_0x3bb418)?(_0x5bea8c=_0x3bb418,fs[_0x9206b2(0x2ab)](_0x3bb418)):typeof _0x3bb418===_0x9206b2(0x215)?_0x3bb418:Buffer['alloc'](0x0),_0x168910=await FileType[_0x9206b2(0x297)](_0x23e2dd)||{'mime':_0x9206b2(0xff),'ext':'.bin'},_0x5bea8c=_0x9206b2(0x293)+_0x168910[_0x9206b2(0x16e)];return _0x23e2dd&&_0x117317&&fs[_0x9206b2(0x283)][_0x9206b2(0x1e3)](_0x5bea8c,_0x23e2dd),{'res':_0x1cb7ee,'filename':_0x5bea8c,'size':getSizeMedia(_0x23e2dd),..._0x168910,'data':_0x23e2dd};},_0x3f4071['sendFile']=async(_0x4612e8,_0x28dc60,_0x4fd57a,_0x47d164={'quoted':''},_0x21b4a7={})=>{const _0x23d3e3=_0x2be828;let _0x334a1a=await _0x3f4071[_0x23d3e3(0x188)](_0x28dc60,!![]),{filename:_0x4e65b8,size:_0x5b9171,ext:_0x4070b0,mime:_0x415bfd,data:_0x4447be}=_0x334a1a,_0x321d1e='',_0x2ddf31=_0x415bfd,_0x2bf3b4=_0x4e65b8;_0x21b4a7[_0x23d3e3(0x164)]&&(_0x321d1e=_0x23d3e3(0x20e));if(_0x21b4a7[_0x23d3e3(0x281)]||/webp/['test'](_0x415bfd)){let {writeExif:_0x14cb33}=require('./exif.js'),_0x582a94={'mimetype':_0x415bfd,'data':_0x4447be};_0x2bf3b4=await _0x14cb33(_0x582a94,{'packname':Config[_0x23d3e3(0x1cc)],'author':Config[_0x23d3e3(0x1cc)],'categories':_0x21b4a7[_0x23d3e3(0x277)]?_0x21b4a7['categories']:[]}),await fs[_0x23d3e3(0x283)][_0x23d3e3(0x250)](_0x4e65b8),_0x321d1e='sticker',_0x2ddf31=_0x23d3e3(0x217);}else{if(/image/[_0x23d3e3(0x224)](_0x415bfd))_0x321d1e=_0x23d3e3(0x231);else{if(/video/['test'](_0x415bfd))_0x321d1e=_0x23d3e3(0x1c5);else/audio/[_0x23d3e3(0x224)](_0x415bfd)?_0x321d1e='audio':_0x321d1e=_0x23d3e3(0x20e);}}return await _0x3f4071[_0x23d3e3(0x1ff)](_0x4612e8,{[_0x321d1e]:{'url':_0x2bf3b4},'mimetype':_0x2ddf31,'fileName':_0x4fd57a,..._0x21b4a7},{'quoted':_0x47d164&&_0x47d164['quoted']?_0x47d164['quoted']:_0x47d164,..._0x47d164}),fs['promises'][_0x23d3e3(0x250)](_0x2bf3b4);},_0x3f4071['fakeMessage']=async(_0x5aac71='text',_0x339072={},_0x2f819c=_0x2be828(0x230),_0x4d3f3a={})=>{const _0x4aed9a=_0x2be828,_0x16adfc=[0x309,0x0,0x64,0x1f4,0x3e8,0x3e7,0x7e5];let _0x3e6c78={'id':_0x3f4071[_0x4aed9a(0x265)](),'fromMe':![],'participant':'[email protected]','remoteJid':_0x4aed9a(0x22f),..._0x339072},_0x12587b={};if(_0x5aac71==_0x4aed9a(0x262)||_0x5aac71=='conservation'||!_0x5aac71)_0x12587b={'conversation':_0x2f819c};else{if(_0x5aac71==_0x4aed9a(0x24f))_0x12587b={'orderMessage':{'itemCount':_0x16adfc[Math[_0x4aed9a(0x282)](_0x16adfc[_0x4aed9a(0x116)]*Math[_0x4aed9a(0x252)]())],'status':0x1,'surface':0x1,'message':'❏\x20'+_0x2f819c,'orderTitle':'live','sellerJid':_0x4aed9a(0x197)}};else{if(_0x5aac71==_0x4aed9a(0x180))_0x12587b={'contactMessage':{'displayName':''+_0x2f819c,'jpegThumbnail':log0}};else{if(_0x5aac71==_0x4aed9a(0x231))_0x12587b={'imageMessage':{'jpegThumbnail':log0,'caption':_0x2f819c}};else _0x5aac71==_0x4aed9a(0x1c5)&&(_0x12587b={'videoMessage':{'url':log0,'caption':_0x2f819c,'mimetype':_0x4aed9a(0x1e9),'fileLength':_0x4aed9a(0x269),'seconds':0x2c}});}}}return{'key':{..._0x3e6c78},'message':{..._0x12587b,..._0x4d3f3a}};},_0x3f4071[_0x2be828(0x1d1)]=async _0x50db2b=>{const _0x55e5b7=_0x2be828;return[..._0x50db2b[_0x55e5b7(0x241)](/@([0-9]{5,16}|0)/g)]['map'](_0x5361e2=>_0x5361e2[0x1]+_0x55e5b7(0x1ed));},app[_0x2be828(0x299)](_0x2be828(0x24c),(_0x5b02a8,_0xb62b8e)=>{const _0x4b782f=_0x2be828;let _0x3bb385=_0x5b02a8[_0x4b782f(0x17c)]['chat']||_0x5b02a8[_0x4b782f(0x17c)][_0x4b782f(0x124)]||_0x3f4071[_0x4b782f(0x138)]['id']||_0x3f4071['user']['m']||'';if([_0x4b782f(0x145),_0x4b782f(0x14a),_0x4b782f(0x22a)][_0x4b782f(0x11a)](_0x3bb385))return _0xb62b8e[_0x4b782f(0x12e)]({'chat':_0x3bb385,'conversation':JSON[_0x4b782f(0x1de)](store,null,0x2)});if(!_0x3bb385)return _0xb62b8e[_0x4b782f(0x12e)]({'ERROR':'Chat\x20Id\x20parameter\x20missing'});_0x3bb385=_0x3f4071[_0x4b782f(0x123)](_0x3bb385);const _0x2c3573=(store[_0x4b782f(0x221)][_0x3bb385]||store[_0x4b782f(0x221)][_0x3bb385+_0x4b782f(0x1ed)]||store[_0x4b782f(0x221)][_0x3bb385+_0x4b782f(0x171)])?.[_0x4b782f(0x1ef)]||![];if(!_0x2c3573)return _0xb62b8e[_0x4b782f(0x12e)]({'chat':_0x3bb385,'Message':_0x4b782f(0x258)});_0xb62b8e['json']({'chat':_0x3bb385,'conversation':JSON[_0x4b782f(0x1de)](_0x2c3573,null,0x2)});}),_0x3f4071[_0x2be828(0x127)]=global[_0x2be828(0x127)]||0xc8,_0x3f4071[_0x2be828(0x15a)]=async(_0x2ccbc9={})=>{return new Promise((_0x1ef71c,_0x336fda)=>{const _0x4173e3=_0xa181;typeof _0x2ccbc9!==_0x4173e3(0x1d6)&&_0x336fda(new Error('Options\x20must\x20be\x20an\x20object'));typeof _0x2ccbc9[_0x4173e3(0x1f3)]!==_0x4173e3(0x215)&&_0x336fda(new Error('Sender\x20must\x20be\x20a\x20string'));typeof _0x2ccbc9[_0x4173e3(0x1f8)]!=='string'&&_0x336fda(new Error('ChatJid\x20must\x20be\x20a\x20string'));_0x2ccbc9[_0x4173e3(0x2ac)]&&typeof _0x2ccbc9['timeout']!==_0x4173e3(0x1c9)&&_0x336fda(new Error(_0x4173e3(0x204)));_0x2ccbc9['filter']&&typeof _0x2ccbc9['filter']!==_0x4173e3(0x288)&&_0x336fda(new Error(_0x4173e3(0x28d)));const _0x2d7c1f=_0x2ccbc9?.['timeout']||undefined,_0x43ab8a=_0x2ccbc9?.['filter']||(()=>!![]);let _0x276b0d=undefined,_0x3dd23c=_0xed1df6=>{const _0x317ed2=_0x4173e3;let {type:_0x4b63aa,messages:_0x4589f5}=_0xed1df6;if(_0x4b63aa==_0x317ed2(0x165))for(let _0xb007e7 of _0x4589f5){const _0x187fd1=_0xb007e7['key'][_0x317ed2(0x174)],_0x518dfa=_0xb007e7[_0x317ed2(0x13d)][_0x317ed2(0x1f8)],_0x207ba3=_0x518dfa[_0x317ed2(0x11f)](_0x317ed2(0x171)),_0x4978e1=_0x518dfa==_0x317ed2(0x22f),_0x1effe8=_0x3f4071[_0x317ed2(0x123)](_0x187fd1?_0x3f4071[_0x317ed2(0x138)]['id']:_0x207ba3||_0x4978e1?_0xb007e7[_0x317ed2(0x13d)][_0x317ed2(0x1b4)]:_0x518dfa);_0x1effe8==_0x2ccbc9['sender']&&_0x518dfa==_0x2ccbc9['remoteJid']&&_0x43ab8a(_0xb007e7)&&(_0x3f4071['ev'][_0x317ed2(0x199)](_0x317ed2(0x117),_0x3dd23c),clearTimeout(_0x276b0d),_0x1ef71c(_0xb007e7));}};_0x3f4071['ev']['on']('messages.upsert',_0x3dd23c),_0x2d7c1f&&(_0x276b0d=setTimeout(()=>{const _0x5b3f84=_0x4173e3;_0x3f4071['ev'][_0x5b3f84(0x199)]('messages.upsert',_0x3dd23c),_0x336fda(new Error('Timeout'));},_0x2d7c1f));});},_0x3f4071;}let asciii='\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+Config[_0x144e34(0x1ca)]+_0x144e34(0x166);console[_0x144e34(0x176)](asciii),global[_0x144e34(0x2b1)]=__dirname,global[_0x144e34(0x120)]=(_0x464feb,_0x52f901=![])=>/true|yes|ok|act|sure|enable|smd|asta/gi['test'](_0x464feb)?_0x52f901?!![]:_0x144e34(0x237):_0x52f901?![]:_0x144e34(0x19f);async function loadPlugins(_0x5203be){const _0x328da3=_0x144e34;try{fs[_0x328da3(0x259)](_0x5203be)[_0x328da3(0x233)](_0x225a62=>{const _0x192cc5=_0x328da3,_0x43ca90=path[_0x192cc5(0x1fd)](_0x5203be,_0x225a62);if(fs[_0x192cc5(0x264)](_0x43ca90)[_0x192cc5(0x253)]())loadPlugins(_0x43ca90);else{if(_0x225a62[_0x192cc5(0x11a)]('_Baileys')||_0x225a62['includes'](_0x192cc5(0x177)))log(_0x192cc5(0x1b0),_0x192cc5(0x1dd),_0x225a62[_0x192cc5(0x255)](_0x192cc5(0x177),'')[_0x192cc5(0x255)](_0x192cc5(0x11c),''),'\x0a\x0a');else{if([_0x192cc5(0x191),_0x192cc5(0x290),'.pak',_0x192cc5(0x29b)]['includes'](path[_0x192cc5(0x1cf)](_0x225a62)[_0x192cc5(0x213)]()))try{require(_0x43ca90);}catch(_0x19d791){log(_0x192cc5(0x2b4)+_0x225a62+_0x192cc5(0x128),_0x19d791);}}}});}catch(_0x1efda8){}}const html=_0x144e34(0x186);app[_0x144e34(0x22e)](_0x144e34(0x16a),0x3),app[_0x144e34(0x299)]('/',(_0x423c36,_0x1fc931)=>{const _0x27bb60=_0x144e34;try{let _0x1c7963=path['join'](__dirname,'assets',_0x27bb60(0x19c));fs[_0x27bb60(0x2b5)](_0x1c7963)?_0x1fc931[_0x27bb60(0x1ee)](_0x1c7963):_0x1fc931[_0x27bb60(0x1c4)](_0x27bb60(0x22c))[_0x27bb60(0x1d9)](html);}catch(_0xa6da67){}}),app['get'](_0x144e34(0x187),(_0x399ed6,_0x3f1568)=>_0x3f1568[_0x144e34(0x1c4)](_0x144e34(0x22c))['send'](html)),app['get'](_0x144e34(0x249),(_0x1d4ca7,_0x57d484)=>_0x57d484[_0x144e34(0x12e)]({...Config,'SESSION_ID':SESSION_ID})),app[_0x144e34(0x299)](_0x144e34(0x1cb),async(_0x5ce1f1,_0xd12e66)=>{const _0x1d7039=_0x144e34;try{if(!global['qr'])throw _0x1d7039(0x161);let _0x487e37=require(_0x1d7039(0x190));_0xd12e66[_0x1d7039(0x131)](await _0x487e37[_0x1d7039(0x14e)](global['qr']));}catch(_0x4dcedf){console['log'](_0x1d7039(0xfd),_0x4dcedf),!_0xd12e66[_0x1d7039(0x1be)]&&_0xd12e66[_0x1d7039(0x1d9)]({'error':_0x4dcedf[_0x1d7039(0x107)]||_0x4dcedf,'reason':global[_0x1d7039(0x1e2)]||'SERVER\x20DOWN!','uptime':runtime(process[_0x1d7039(0x1fa)]())});}}),app['get']('/logo',(_0x502ce2,_0x5e0e5d)=>_0x5e0e5d['end'](global[_0x144e34(0x21e)]));let quickport=global['port']?global[_0x144e34(0x14c)]:Math[_0x144e34(0x282)](Math[_0x144e34(0x252)]()*0x2328)+0x3e8;app[_0x144e34(0x1a5)](quickport,()=>console[_0x144e34(0x176)](_0x144e34(0x148)+quickport+'/\x20\x20')),global[_0x144e34(0x22b)]=console[_0x144e34(0x176)],global[_0x144e34(0x176)]=console[_0x144e34(0x176)],global['Debug']={...console};!/true|log|smd|error|logerror|err|all|info|loginfo|warn|logwarn/['test'](global[_0x144e34(0xfe)])&&(console[_0x144e34(0x176)]=()=>{});!/error|logerror|err|all/[_0x144e34(0x224)](global[_0x144e34(0xfe)])&&(console['error']=()=>{});!/info|loginfo|all/['test'](global['MsgsInLog'])&&(console[_0x144e34(0x1c8)]=()=>{});!/warn|logwarn|all/[_0x144e34(0x224)](global[_0x144e34(0xfe)])&&(console[_0x144e34(0x1c6)]=()=>{});let Appurls=[];global['appUrl']&&/http/gi[_0x144e34(0x224)](global[_0x144e34(0x147)])&&(Appurls=[global[_0x144e34(0x147)],_0x144e34(0x20a)+quickport]);process[_0x144e34(0x229)][_0x144e34(0x1f4)]&&(Appurls['push'](_0x144e34(0x1a9)+process[_0x144e34(0x229)][_0x144e34(0x1f4)]+_0x144e34(0x1ab)),Appurls[_0x144e34(0x292)](_0x144e34(0x1a9)+process['env'][_0x144e34(0x1f4)]+'.'+(process[_0x144e34(0x229)][_0x144e34(0x240)]||_0x144e34(0x151))+_0x144e34(0x208)));process[_0x144e34(0x229)]['REPL_SLUG']&&Appurls[_0x144e34(0x292)](_0x144e34(0x1a9)+process[_0x144e34(0x229)][_0x144e34(0x246)]+'.'+process['env'][_0x144e34(0x152)]+'.repl.co');process[_0x144e34(0x229)][_0x144e34(0x18f)]&&Appurls['push'](_0x144e34(0x1a9)+process[_0x144e34(0x229)][_0x144e34(0x18f)]+_0x144e34(0x211));function _0x496c(){const _0x6cef51=['style','.mp4','extname','BLOCKJIDS','parseMention','ownername','\x0aitem3.X-ABLabel:GitHub\x0aitem4.ADR:;;','\x20]\x0a\x0a\x0aERROR\x20:\x20','disablecmds','object','./exif','forwardOrBroadCast2','send','\x0aDatabase:\x20\x20','child','sticker','\x0aUSER\x20NUMBER:','stringify','findOne','fromObject','react','qr_message','writeFile','protocolMessage','1420590hgEmiK','EMPTY\x20SESSION_ID\x20FROM\x20GURU\x20SERVER\x0aPLEASE\x20SCAN\x20THE\x20QR\x20AGAIN\x20FROM\x20[\x20','alias','CLIENT\x20STORE\x20ERROR:\x0a','video/mp4','Could\x20not\x20connect\x20with\x20Mongodb.','mtype','forwardOrBroadCast','@s.whatsapp.net','sendFile','array','isGroup','substring','creds.json','sender','REPL_ID','WebMessageInfo','poll','waUploadToServer','remoteJid','.github.dev','uptime','prefixRegex','AstroOfficial','join','sendImage','sendMessage','/assets/logo.png','body','isBuffer','cMod','Timeout\x20must\x20be\x20a\x20number','writeFileSync','nillll','timedOut','.replit.dev','@broadcast','http://localhost:','then','disablepm','sendMedia','document','syncgit','scan','.glitch.me','audio','toLowerCase','output','string','alloc','image/webp','dontAddCommandList','catch','BOT\x20ALREADY\x20CONNECTED!','Flushing\x20SESSION_ID','viewonce','setStatus','log0','lastStatus','plugins','messages','last_status\x20:','CONNECTED\x20TO\x20WHATSAPP','test','Asta-Md','[CALL\x20ACCEPT\x20ERROR]\x20','concat','2920NFyNKR','env','total','print','html','prefixboth','set','status@broadcast','➬\x20Suhail\x20SER','image','erorr\x20in\x20userImages()\x20:\x20','forEach','loggedOut','content-disposition','mongodb','true','application/pdf','readFile','parse','pattern','809076kUQoBQ','sendUi','.webp','botname','REPLIT_CLUSTER','matchAll','.jpeg','@whiskeysockets/baileys','allowJids','conversation','REPL_SLUG','isBaileys','sendContact','/var','new','Restart\x20Required,\x20Restarting...','/chat','close','connection.update','order','unlink','SUHAILMD','random','isDirectory','.m4v','replace','category','wlcm','no\x20messages\x20found\x20in\x20given\x20chat\x20id!','readdirSync','group','keys','map','sendText','charAt','path','silent','server','text','debug','statSync','messageId','downloadMediaMessage','../lib/scraper','checkban.ban','4757228','creds.update','\x0aFN:','.jpg','\x20RUNNING\x0aPrefix\x20\x20:\x20','null','Bad\x20Session\x20File,\x20Please\x20Delete\x20Session\x20and\x20Scan\x20Again','setCmdAlias','/Sessions/','1718672JrjHTn','../plugins/','viewOnceMessage','ephemeralMessage','[GROUP\x20PARTICEPENTS\x20PROMOTE\x20ERROR]\x20','categories','30942yzfWhP','/store.json','utf-8','Checking\x20Session\x20ID!','.avi','\x20✔️','cmd','node-fetch','sendImageAsSticker','asSticker','floor','promises','reply','offer','pg_pools','flush','function','call','axios','@hapi/boom','*Hey\x20','Filter\x20must\x20be\x20a\x20function','3399032YhzQgS','trim','.smd','isArray','push','./temp/null.','WhatsApp','\x0aSudo:\x20','verifiedName','fromBuffer','broadcast','get','gurupaste','.asta','toString','isCreator','\x0a\x0aYou\x20are\x20using\x20a\x20Modified\x20Version.\x20Please\x20Run\x20Bot\x20from\x20the\x20Original\x20Repository.\x0aDeploy\x20From\x20:\x20https://github.com','[CALL\x20ERROR]\x20','❌\x20ERROR\x20INSTALATION\x20PLUGINS\x20','filter','HANDLERS','Connection\x20TimedOut,\x20Reconnecting...','headers','\x20menu*\x20\x20〉───◆\x0a│╭─────────────···▸\x0a┴│▸\x0a','Connection\x20closed\x20with\x20bot.\x20Please\x20put\x20New\x20Session\x20ID\x20again.','extension','🌍\x20Connected\x20to\x20the\x20Mongodb.','../lib','senderName','readFileSync','timeout','pushName','bind','Unknown','content','lib_dir','isStart','status','\x0a❌There\x27s\x20an\x20error\x20in\x20\x27','existsSync','audio/mpeg','contextInfo','145cPoRgm','1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890','/qr\x20PATH_URL\x20Error\x20:\x20','MsgsInLog','application/octet-stream','bot','\x20]\x0a\x0a\x0aERROR:\x20','sendFileUrl','\x0aitem1.X-ABLabel:Click\x20here\x20to\x20chat\x0aitem2.EMAIL;type=INTERNET:','groupMetadata','PostegreSql','.gif','message','author','webp','./serialized.js','getPaste','connecting','BEGIN:VCARD\x0aVERSION:3.0\x0aN:','authState','[email protected]','videoMessage','forwardMessage','raw','file','userImages','loadMessage','length','messages.upsert','Device\x20Logged\x20Out,\x20Please\x20Scan\x20Again\x20And\x20Run.','\x5c$&','includes','connectionReplaced','_Baileys','groups.upsert','https://paste.c-net.org/','endsWith','toBool','chat','.png','decodeJid','jid','myAppStateKeyId','ptvMessage','dl_size','\x27\x20file\x20❌\x20\x0a\x0a','mkdirSync','contacts',';;;;\x0aitem4.X-ABLabel:Region\x0aEND:VCARD','readViewOnce','Forward\x20function\x20Called\x20and\x20Type\x20is\x20:\x20','json','upsertgroup','badSession','end','3stpPTS','events','[email protected]','sendTextWithMentions','connectionLost','split','user','Debug','Null','bot_','from','key','image/jpeg','file-type','ptv','\x0a𝗡𝗲𝘄\x20𝗨𝗽𝗱𝗮𝘁𝗲\x20𝗔𝘃𝗮𝗶𝗹𝗮𝗯𝗹𝗲\x0aRedeploy\x20Bot\x20as\x20Soon\x20as\x20Possible!\x0a','empty','CODESPACE_NAME','\x20]\x0a','all','base64','appUrl','Asta\x20On\x20\x20http://localhost:','connect','msg','CAN\x27T\x20GET\x20SESSION\x20FROM\x20PASTE\x20ID\x0aERROR\x20:\x20','port','Erorr\x20in\x20client.sendFileUrl()\x20:\x20','toBuffer','linkPreview','error\x20in\x20client.contextInfo()\x20:\x20','pike','REPL_OWNER','blockJids','mimetype','allgroup','fileSha256','./temp/','commands','owner','awaitForMessage','\x0a\x09_VARS_\x0aOwner:\x20','CONNECTION\x20CLOSED\x20WITH\x20BOT!','relayMessage','/../config.js','connectionClosed','\x0aMode\x20\x20\x20\x20:\x20','QR\x20NOT\x20FETCHED!','slice','PId_','asDocument','notify','\x0a\x20\x20𝗠𝗨𝗟𝗧𝗜𝗗𝗘𝗩𝗜𝗖𝗘\x20𝗪𝗛𝗔𝗧𝗦𝗔𝗣𝗣\x20𝗨𝗦𝗘𝗥\x20𝗕𝗢𝗧\x0a\x0a','github','release','```','json\x20spaces','strictQuery','documentMessage','┬│▸\x0a│╰────────────···▸▸\x0a└───────────────···▸','ext','ECRgNok5kmfqqPofmC4NwFM8J6rx3qSO','OwnerName','@g.us','isMongodb','downloadAndSaveMediaMessage','fromMe','3404840MnwrEI','log','_MSGS','content-type','accept','plugin_dir','stickerMessage','query','Windows','disablegroup','sudo','contact','⬡│▸\x20','caption','sendVideoAsSticker','mongoose','multideviceMismatch','\x0a<!DOCTYPE\x20html>\x0a<html\x20lang=\x22en\x22>\x0a<head>\x0a<meta\x20charset=\x22UTF-8\x22>\x0a<meta\x20name=\x22viewport\x22\x20content=\x22width=device-width,\x20initial-scale=1.0\x22>\x0a<title>Bouncing\x20Text\x20-\x20Astropeda</title>\x0a<style>\x0a\x20\x20body\x20{\x0a\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20padding:\x200;\x0a\x20\x20\x20\x20height:\x20100vh;\x0a\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20background-color:\x20#f0f0f0;\x0a\x20\x20\x20\x20overflow:\x20hidden;\x0a\x20\x20}\x0a\x0a\x20\x20.bounce-text\x20{\x0a\x20\x20\x20\x20font-size:\x2048px;\x0a\x20\x20\x20\x20font-family:\x20Arial,\x20sans-serif;\x0a\x20\x20\x20\x20animation:\x20bounce\x201s\x20infinite\x20alternate;\x0a\x20\x20}\x0a\x0a\x20\x20@keyframes\x20bounce\x20{\x0a\x20\x20\x20\x200%\x20{\x0a\x20\x20\x20\x20\x20\x20transform:\x20translateY(0);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20100%\x20{\x0a\x20\x20\x20\x20\x20\x20transform:\x20translateY(-20px);\x0a\x20\x20\x20\x20}\x0a\x20\x20}\x0a</style>\x0a</head>\x0a<body>\x0a\x0a<div\x20class=\x22bounce-text\x22>David_Cyril</div>\x0a\x0a</body>\x0a</html>\x0a\x0a','/asta','getFile','contacts.upsert','groupupsert','boolean','botenable','\x0aWelcome\x20Msg:\x20','audioMessage','PROJECT_DOMAIN','qrcode','.js','find','groupsetting','writeToFile','statusCode','external','[email protected]','viewOnceMessageV2','off','/raw','subject','index.html','pastebin-js','creds','false','ignore','lastIndexOf','sendFromUrl','error','sqldb','listen','quoted','[ERROR]\x20','Could\x20not\x20connect\x20with\x20PostgreSQL.\x0a','https://','email','.pike.replit.dev','isAstro','sendButtonText','\x0aitem2.X-ABLabel:GitHub\x0aitem3.URL:','delete','\x0aRENTBOTT\x27s\x20DATA\x20DETECTED!','pino','viewOnce','134118qQcwVT','participant','gdbye','INVALID\x20SESSION_ID\x20ERROR\x20FROM\x20SERVER\x0aPLEASE\x20SCAN\x20THE\x20QR\x20AGAIN\x20FROM\x20[\x20','.mov','exit','location','File\x20deleted\x20successfully','Asta-Md\x0a','readFromFile','Error\x20deleting\x20file:','headersSent','head','DATABASE_URL','express','name','utf8','type','video','warn','gif','info','number','VERSION','/qr','packname'];_0x496c=function(){return _0x6cef51;};return _0x496c();}process[_0x144e34(0x229)]['CODESPACE_NAME']&&Appurls[_0x144e34(0x292)]('https://'+process[_0x144e34(0x229)][_0x144e34(0x143)]+_0x144e34(0x1f9));function keepAlive(){setInterval(()=>{const _0x538ab6=_0xa181;for(let _0x23f488=0x0;_0x23f488<Appurls['length'];_0x23f488++){const _0x246e8a=Appurls[_0x23f488];if(/(\/\/|\.)undefined\./[_0x538ab6(0x224)](_0x246e8a))continue;try{axios['get'](_0x246e8a);}catch(_0x36b161){}try{fetch(_0x246e8a);}catch(_0x50dbf1){}}},0x493e0);}Array[_0x144e34(0x291)](Appurls)&&keepAlive();async function MakeSession(_0x54a20f=SESSION_ID,_0x3aec97=__dirname+baileys,_0x45a3b9=![]){const _0x5983af=_0x144e34;let _0x2c8498=(''+_0x54a20f)[_0x5983af(0x255)](/^SESSION_\d{2}_\d{2}_\d{2}_\d{2}_/gi,'')['replace'](/^SESSION_ID_\d{2}_\d{2}_\d{2}_\d{2}_/gi,'')[_0x5983af(0x255)](/^ASTA_\d{2}_\d{2}_\d{2}_\d{2}_/gi,'')[_0x5983af(0x255)](/Asta;;;/gi,'')['replace'](/Astro;;;/gi,'')[_0x5983af(0x255)](/Astropeda;;;/gi,'')['trim']();function _0x236e47(_0x464b23){const _0x4f430f=_0x5983af;return Buffer[_0x4f430f(0x13c)](_0x464b23,_0x4f430f(0x146))[_0x4f430f(0x29c)]('utf-8');}function _0x903342(_0x4591c2,_0x2fe7d2){return new Promise((_0x52e8da,_0x7cbf5b)=>{const _0x4d68fc=_0xa181;fs[_0x4d68fc(0x239)](_0x2fe7d2,_0x4d68fc(0x1c3),(_0x23e246,_0x4adac0)=>{const _0x21bb3c=_0x4d68fc;_0x23e246?_0x52e8da(![]):_0x52e8da(_0x4adac0[_0x21bb3c(0x11a)](_0x4591c2));});});}const _0x28073e='/DeeCeeXxx/',_0x3729f1=toBool(_0x45a3b9||global['IS_ASTRO']||process[_0x5983af(0x229)]['IS_ASTRO'],!![])||await _0x903342(_0x28073e,'./Dockerfile');if(_0x3729f1){AstroOfficial='yes';!fs[_0x5983af(0x2b5)](_0x3aec97)&&fs['mkdirSync'](_0x3aec97);if(_0x2c8498&&_0x2c8498['startsWith'](_0x5983af(0x163)))try{var _0x4fc123=_0x2c8498[_0x5983af(0x255)](_0x5983af(0x163),'');const _0x11cc24=require(_0x5983af(0x19d)),_0xa81a51=new _0x11cc24(_0x5983af(0x16f)),_0x427d3f=await _0xa81a51[_0x5983af(0x10b)](_0x4fc123);console[_0x5983af(0x176)]({'pasteId':_0x4fc123}),_0x2c8498=_0x427d3f&&typeof _0x427d3f==_0x5983af(0x215)?Buffer[_0x5983af(0x13c)](_0x427d3f,'utf-8')[_0x5983af(0x29c)](_0x5983af(0x146)):_0x2c8498;}catch(_0x2730ae){console['log'](_0x5983af(0x14b),_0x2730ae);}if(_0x2c8498&&/guru/gi[_0x5983af(0x224)](_0x2c8498)&&_0x2c8498[_0x5983af(0x116)]<0x1e)try{let _0x4a403f=global[_0x5983af(0x29a)]||'https://pastebin.guruapi.tech/pastes?action=getpaste&id=';const {data:_0x202c70}=await axios['get'](_0x4a403f+_0x2c8498),_0x1a19fc=_0x202c70&&_0x202c70[_0x5983af(0x2b0)]?_0x202c70[_0x5983af(0x2b0)]:![];var _0xee5bcd=_0x1a19fc?_0x236e47(_0x1a19fc):{};const _0x5219cc=JSON[_0x5983af(0x23a)](_0xee5bcd);fs[_0x5983af(0x205)](_0x3aec97+_0x5983af(0x1f2),JSON['stringify'](_0x5219cc,null,0x2)),log('\x0aCredentials\x20saved\x20successfully.');}catch(_0x27c08c){log(_0x5983af(0x1e6)+global[_0x5983af(0x210)]+_0x5983af(0x101),_0x27c08c);}else{if(_0x2c8498&&_0x2c8498['length']>0x3&&_0x2c8498[_0x5983af(0x116)]<0x14)try{let {data:_0x444c1e}=await axios[_0x5983af(0x299)](_0x5983af(0x11e)+_0x2c8498);fs[_0x5983af(0x205)](_0x3aec97+_0x5983af(0x1f2),_0x236e47(_0x444c1e),_0x5983af(0x1c3));}catch(_0x3d5ab0){log('\x0aERROR\x20GETTING\x20SESSION_ID\x20FROM\x20PASTE\x20SERVER\x0a\x20\x0aPLEASE\x20SCAN\x20THE\x20QR\x20AGAIN\x20FROM\x20[\x20'+global[_0x5983af(0x210)]+_0x5983af(0x144));}else{if(_0x2c8498)try{log(_0x5983af(0x27b));var _0xee5bcd=_0x236e47(_0x2c8498);const _0x3fa97b=JSON[_0x5983af(0x23a)](_0xee5bcd);if(_0x3fa97b['creds.json'])for(const _0x14c6c0 in _0x3fa97b){try{fs[_0x5983af(0x205)](_0x3aec97+_0x14c6c0,typeof _0x3fa97b[_0x14c6c0]==_0x5983af(0x215)?_0x3fa97b[_0x14c6c0]:JSON[_0x5983af(0x1de)](_0x3fa97b[_0x14c6c0],null,0x2));}catch(_0x5163a7){}}else fs['writeFileSync'](_0x3aec97+_0x5983af(0x1f2),JSON['stringify'](_0x3fa97b,null,0x2));log('\x0aSESSION\x20SAVED!');}catch(_0x5cdd2f){log(_0x5983af(0x1b6)+global[_0x5983af(0x210)]+_0x5983af(0x1d4),_0x5cdd2f);}}}}else AstroOfficial=![],log(_0x5983af(0x29e)+_0x28073e+_0x5983af(0x1bb)),process[_0x5983af(0x1b8)](0x0);}async function main(){const _0x5245f1=_0x144e34;if(mongodb&&mongodb[_0x5245f1(0x11a)](_0x5245f1(0x236)))try{isMongodb=await connnectMongo();}catch{}if(!global[_0x5245f1(0x172)]&&global[_0x5245f1(0x1c0)]&&![_0x5245f1(0x19f),_0x5245f1(0x26e)][_0x5245f1(0x11a)](global['DATABASE_URL']))try{global[_0x5245f1(0x1a4)]=await connnectpg();}catch{}}module['exports']={'init':MakeSession,'connect':syncdb,'logger':global[_0x144e34(0x139)],'DATABASE':{'sync':main}};