forked from prabhasha2006/RedDragon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
7 lines (1 loc) · 34.6 KB
/
index.js
1
2
3
4
5
6
7
const _0x28791a=_0x37e0;(function(_0xaa3f03,_0x31ca23){const _0x45c469=_0x37e0,_0x21a0bd=_0xaa3f03();while(!![]){try{const _0x2ce510=-parseInt(_0x45c469(0x87))/0x1*(-parseInt(_0x45c469(0xc3))/0x2)+-parseInt(_0x45c469(0x108))/0x3*(-parseInt(_0x45c469(0xed))/0x4)+parseInt(_0x45c469(0x15a))/0x5*(-parseInt(_0x45c469(0x110))/0x6)+-parseInt(_0x45c469(0xfb))/0x7*(-parseInt(_0x45c469(0xfc))/0x8)+parseInt(_0x45c469(0x11e))/0x9*(-parseInt(_0x45c469(0xe4))/0xa)+parseInt(_0x45c469(0xf4))/0xb*(-parseInt(_0x45c469(0xde))/0xc)+parseInt(_0x45c469(0x97))/0xd;if(_0x2ce510===_0x31ca23)break;else _0x21a0bd['push'](_0x21a0bd['shift']());}catch(_0x12f5ac){_0x21a0bd['push'](_0x21a0bd['shift']());}}}(_0x238e,0x25f33));const {modul}=require(_0x28791a(0x156)),moment=require('moment-timezone'),{baileys,boom,chalk,fs,figlet,FileType,path,pino,process,PhoneNumber,axios,yargs,_}=modul,{Boom}=boom,{default:XeonBotIncConnect,BufferJSON,initInMemoryKeyStore,DisconnectReason,AnyMessageContent,makeInMemoryStore,useMultiFileAuthState,delay,fetchLatestBaileysVersion,generateForwardMessageContent,prepareWAMessageMedia,generateWAMessageFromContent,generateMessageID,downloadContentFromMessage,jidDecode,getAggregateVotesInPollMessage,proto}=require(_0x28791a(0x119)),{color,bgcolor}=require(_0x28791a(0x152)),colors=require('colors'),{start}=require(_0x28791a(0x9e)),{uncache,nocache}=require(_0x28791a(0x11f)),{imageToWebp,videoToWebp,writeExifImg,writeExifVid}=require(_0x28791a(0x98)),{smsg,isUrl,generateMessageTag,getBuffer,getSizeMedia,fetchJson,await,sleep,reSize}=require(_0x28791a(0xec));let ec={};console['log'](_0x28791a(0x80));const pullBotData=()=>{const _0x542a48=_0x28791a;ec=require(_0x542a48(0x166));if(ec[_0x542a48(0x160)]==undefined)return;};setTimeout(pullBotData,0x3e8),setInterval(()=>{pullBotData();},0x1388);const prefix='';global['db']=JSON[_0x28791a(0xac)](fs['readFileSync'](_0x28791a(0x146)));function _0x238e(){const _0x542679=['send5ButLoc','FN:','remove','public','false','contacts','\x0aOnly\x20Admins\x20can\x20edit\x20group\x20info.\x0a','3581227pdNprp','./lib/exif','sendButtonText','categories','sendMedia','timedOut','Bad\x20Session\x20File,\x20Please\x20Delete\x20Session\x20and\x20Scan\x20Again','./lib/spinner','appenTextMessage','audio','sendTextWithMentions','welcomestate','head','notify','VERSION:3.0\x0a','child','../index.js','subject','existsSync','TEL;type=CELL;type=VOICE;waid=','asVideo','parse','creds.update','isBuffer','concat','sendContact','sendMessage','add','yellow','error','pollUpdates','bind','server','connectionReplaced','💡💡💡💡💡💡💡💡💡💡💡💡💡💡💡💡','image/webp','ignore','getNumber','toString','parseMention','Connection\x20Lost\x20from\x20Server,\x20reconnecting...','red','asSticker','\x0aAll\x20participants\x20can\x20edit\x20group\x20info.\x0a','5578dGgbXU','getFile','readFileSync','[email protected]','DD-MM-YYYY','❌Error\x20in\x20Connection.update\x20','connection.update','conversation','group-participants.update','Updated\x20file','set','format','mimetype','isGroup','botname','profilePictureUrl','messages','document','replace','test','magenta','goodbye','\x0a\x0a💬\x20Reading\x20Messages...','ownerName','anticall','voters','12.1','168uGLHBU','\x20The\x20file\x20size\x20is\x20too\x20large\x0a\x0a','offer','./index.js','relayMessage','sendVideoAsSticker','40bGFABs','audio/mpeg','video/mp4','\x0a🔮Connecting...','name','Caught\x20exception:\x20','data','\x0a✅Passed...','./lib/myfunc','531884tybSPJ','close','sendFileUrl','restrict','call','key','content-type','146641SxEaOB','split','sticker','international','fromBuffer','RedDragon\x20Conneted','https://i.ibb.co/RBx5SQC/avatar-group-large-v2.png?q=60','245KDRlDe','57016iFycgl','welcome','@s.whatsapp.net','mime','contextInfo','waUploadToServer','uncaughtException','ephemeralMessage','base64','./RedDragon.js','asImage','Device\x20Logged\x20Out,\x20Please\x20Scan\x20Again\x20And\x20Run.','3cJOqIz','verifiedName','Message','participants','./com.reddragon/image/welcome.jpg','sendKatalog','utf-8','unlink','18ynHDMZ','sendImage','\x0aOnly\x20Admins\x20can\x20send\x20messages.\x0a','map','groupMetadata','quoted','connectionLost','connectionClosed','receivedPendingNotifications','@whiskeysockets/baileys','\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','desc','Restart\x20Required,\x20Restarting...','writeFile','518715xNbyMv','./lib/loader','author','.bin','image','join','packname','filename','headers','HH:mm:ss','size','statSync','user','application/octet-stream','Connection\x20Replaced,\x20Another\x20New\x20Session\x20Opened,\x20Please\x20Close\x20Current\x20Session\x20First','statusCode','message','getName','output','asDocument','log','🔮Account\x20=>\x20','silent','promises','mtype','viewOnce','connection','then','END:VCARD','unlinkSync','status@broadcast','keys','ext','alloc','decodeJid','This\x20group\x20is\x20locked\x20useing\x20name\x20{botoff},{nobot},{botlock}','fromMe','open','100000','promote','./database/database.json','json','green','\x20Contact','./com.reddragon/image/goodbye.jpg','audio/ogg;\x20codecs=opus','../RedDragon.js','withoutContact','settings','loadMessage','Connection\x20closed,\x20reconnecting....','msg','./lib/color','readMessages','from','\x0a🔮Starting...','./module','sendButImg','status','sendPoll','267635AAVPoK','string','startsWith','action','remoteJid','pop','aliveimage','filter','INR','Asia/Kolkata','writeFileSync','announce','./EveloCodeServer','matchAll','@g.us','connecting','Opera','🥳Wow\x20{user}🎁{n}Now\x20you\x20are\x20an\x20*admin👤*','messages.upsert','Red\x20Dragon','length','application/pdf','\x0a\x0aLoading...','viewOnceMessage','readViewOnce','Unknown\x20DisconnectReason:\x20','\x0aGroup\x20description\x20updated\x20to,\x0a','setStatus','footer','27BhJVvm','BAE5','sendFile','Updated','./lib','ownerNumber','bold','downloadAndSaveMediaMessage','\x0aAll\x20participants\x20can\x20send\x20messages.\x0a'];_0x238e=function(){return _0x542679;};return _0x238e();}if(global['db'])global['db']={'sticker':{},'database':{},'game':{},'others':{},'users':{},'chats':{},'settings':{},...global['db']||{}};function _0x37e0(_0x559a63,_0xec077e){const _0x238eb3=_0x238e();return _0x37e0=function(_0x37e0c2,_0x2ab138){_0x37e0c2=_0x37e0c2-0x80;let _0x137be1=_0x238eb3[_0x37e0c2];return _0x137be1;},_0x37e0(_0x559a63,_0xec077e);}const owner=ec[_0x28791a(0x8c)],store=makeInMemoryStore({'logger':pino()[_0x28791a(0xa6)]({'level':_0x28791a(0x134),'stream':'store'})});require(_0x28791a(0x105)),nocache(_0x28791a(0x14c),_0x1e5ed1=>console[_0x28791a(0x132)](color(_0x28791a(0xcc),_0x28791a(0xc0)),color('\x27'+_0x1e5ed1+'\x27',_0x28791a(0x148)),_0x28791a(0x8a))),require(_0x28791a(0xe1)),nocache(_0x28791a(0xa7),_0x5ae5f8=>console[_0x28791a(0x132)](color(_0x28791a(0xcc),_0x28791a(0xc0)),color('\x27'+_0x5ae5f8+'\x27',_0x28791a(0x148)),_0x28791a(0x8a)));const isLockedGroup=_0x3ae112=>{const _0x2c5fd2=_0x28791a;!_0x3ae112&&(_0x3ae112='');if(_0x3ae112['match'](/{botoff}|{nobot}|{botlock}/gi))return console[_0x2c5fd2(0x132)](_0x2c5fd2(0x141)),!![];};async function XeonBotIncBot(){const _0x23260=_0x28791a,{saveCreds:_0x25f40a,state:_0xd690d9}=await useMultiFileAuthState('./'),_0x1a1fcc=XeonBotIncConnect({'logger':pino({'level':_0x23260(0x134)}),'printQRInTerminal':!![],'browser':['RedDragon',_0x23260(0x16a),_0x23260(0xdd)],'auth':_0xd690d9,'getMessage':async _0x439e99=>{const _0x3f20c3=_0x23260;if(store){const _0xd2ce2f=await store[_0x3f20c3(0x14f)](_0x439e99[_0x3f20c3(0x15e)],_0x439e99['id']);return _0xd2ce2f[_0x3f20c3(0x12e)]||undefined;}return{'conversation':_0x3f20c3(0xf9)};}});store[_0x23260(0xb6)](_0x1a1fcc['ev']),_0x1a1fcc['ev']['on'](_0x23260(0xc9),async _0x1bd315=>{const _0x30f0ac=_0x23260,{connection:_0x7cc4b2,lastDisconnect:_0x1ee50e}=_0x1bd315;try{if(_0x7cc4b2===_0x30f0ac(0xee)){let _0x1abd07=new Boom(_0x1ee50e?.[_0x30f0ac(0xb4)])?.[_0x30f0ac(0x130)][_0x30f0ac(0x12d)];if(_0x1abd07===DisconnectReason['badSession'])console['log'](_0x30f0ac(0x9d)),XeonBotIncBot();else{if(_0x1abd07===DisconnectReason[_0x30f0ac(0x117)])console['log'](_0x30f0ac(0x150)),XeonBotIncBot();else{if(_0x1abd07===DisconnectReason[_0x30f0ac(0x116)])console[_0x30f0ac(0x132)](_0x30f0ac(0xbf)),XeonBotIncBot();else{if(_0x1abd07===DisconnectReason[_0x30f0ac(0xb8)])console[_0x30f0ac(0x132)](_0x30f0ac(0x12c)),XeonBotIncBot();else{if(_0x1abd07===DisconnectReason['loggedOut'])console[_0x30f0ac(0x132)](_0x30f0ac(0x107)),XeonBotIncBot();else{if(_0x1abd07===DisconnectReason['restartRequired'])console[_0x30f0ac(0x132)](_0x30f0ac(0x11c)),XeonBotIncBot();else{if(_0x1abd07===DisconnectReason[_0x30f0ac(0x9c)])console[_0x30f0ac(0x132)]('Connection\x20TimedOut,\x20Reconnecting...'),XeonBotIncBot();else _0x1a1fcc['end'](_0x30f0ac(0x83)+_0x1abd07+'|'+_0x7cc4b2);}}}}}}}(_0x1bd315[_0x30f0ac(0x138)]==_0x30f0ac(0x169)||_0x1bd315['receivedPendingNotifications']==_0x30f0ac(0x94))&&console[_0x30f0ac(0x132)](color(_0x30f0ac(0xe7),_0x30f0ac(0xb3))),_0x1bd315[_0x30f0ac(0x138)]==_0x30f0ac(0x143)||_0x1bd315[_0x30f0ac(0x118)]=='true'?(console[_0x30f0ac(0x132)](color(_0x30f0ac(0xb9),_0x30f0ac(0xd7))),console['log'](color(_0x30f0ac(0x133)+JSON['stringify'](_0x1a1fcc['user'],null,0x2),'yellow')),await delay(0x7cf),console[_0x30f0ac(0x132)](chalk[_0x30f0ac(0xb3)](_0x30f0ac(0x11a)+chalk[_0x30f0ac(0x8d)]['blue'](_0x30f0ac(0x16d))+'\x0a\x0a')),console[_0x30f0ac(0x132)](color('--------------------------------------------------','magenta')),console['log'](color(_0x30f0ac(0x155),'cyan')),console[_0x30f0ac(0x132)](color(_0x30f0ac(0xeb),'red'))):console['log'](_0x1bd315[_0x30f0ac(0x118)]);}catch(_0x9f6c83){console[_0x30f0ac(0x132)](_0x30f0ac(0xc8)+_0x9f6c83),XeonBotIncBot();}}),await delay(0x15b3),start('2',colors[_0x23260(0x8d)]['white'](_0x23260(0xd9))),_0x1a1fcc['ev']['on'](_0x23260(0xad),await _0x25f40a),_0x1a1fcc['ev']['on'](_0x23260(0xf1),async _0x4ed22f=>{const _0x583499=_0x23260;let _0x29db29=await _0x1a1fcc[_0x583499(0x140)](_0x1a1fcc['user']['id']),_0x187a18=db[_0x583499(0x14e)][_0x29db29][_0x583499(0xdb)];if(!_0x187a18)return;console[_0x583499(0x132)](_0x4ed22f);for(let _0x1f7c66 of _0x4ed22f){if(_0x1f7c66[_0x583499(0xd0)]==![]){if(_0x1f7c66['status']==_0x583499(0xe0)){}}}}),_0x1a1fcc['ev']['on'](_0x23260(0x16c),async _0x8ac077=>{const _0x501d63=_0x23260;try{const _0x39ebb4=_0x8ac077[_0x501d63(0xd3)][0x0];if(!_0x39ebb4[_0x501d63(0x12e)])return;_0x39ebb4['message']=Object['keys'](_0x39ebb4[_0x501d63(0x12e)])[0x0]==='ephemeralMessage'?_0x39ebb4[_0x501d63(0x12e)][_0x501d63(0x103)]['message']:_0x39ebb4[_0x501d63(0x12e)];_0x39ebb4[_0x501d63(0xf2)]&&_0x39ebb4[_0x501d63(0xf2)][_0x501d63(0x15e)]===_0x501d63(0x13c)&&await _0x1a1fcc[_0x501d63(0x153)]([_0x39ebb4[_0x501d63(0xf2)]]);if(!_0x1a1fcc[_0x501d63(0x93)]&&!_0x39ebb4['key'][_0x501d63(0x142)]&&_0x8ac077['type']===_0x501d63(0xa4))return;if(_0x39ebb4[_0x501d63(0xf2)]['id'][_0x501d63(0x15c)](_0x501d63(0x88))&&_0x39ebb4[_0x501d63(0xf2)]['id'][_0x501d63(0x16e)]===0x10)return;const _0x53cf59=smsg(_0x1a1fcc,_0x39ebb4,store);require('./RedDragon')(_0x1a1fcc,_0x53cf59,_0x8ac077,store);}catch(_0x4bfdf4){console[_0x501d63(0x132)](_0x4bfdf4);}}),_0x1a1fcc['ev']['on']('groups',async _0x36071e=>{const _0x5bdfcc=_0x23260;console[_0x5bdfcc(0x132)]('263------'),console['log'](_0x36071e);}),_0x1a1fcc['ev']['on']('groups.update',async _0x206505=>{const _0x42b875=_0x23260;try{ppgroup=await _0x1a1fcc['profilePictureUrl'](anu['id'],_0x42b875(0x122));}catch(_0x3eb114){ppgroup=_0x42b875(0xfa);}const _0x54ad8e=_0x206505[0x0];if(isLockedGroup())return;if(_0x54ad8e[_0x42b875(0x165)]==!![])await sleep(0x7d0),_0x1a1fcc[_0x42b875(0xb1)](_0x54ad8e['id'],{'text':_0x42b875(0x112)});else{if(_0x54ad8e[_0x42b875(0x165)]==![])await sleep(0x7d0),_0x1a1fcc[_0x42b875(0xb1)](_0x54ad8e['id'],{'text':_0x42b875(0x8f)});else{if(_0x54ad8e[_0x42b875(0xf0)]==!![])await sleep(0x7d0),_0x1a1fcc[_0x42b875(0xb1)](_0x54ad8e['id'],{'text':_0x42b875(0x96)});else{if(_0x54ad8e['restrict']==![])await sleep(0x7d0),_0x1a1fcc[_0x42b875(0xb1)](_0x54ad8e['id'],{'text':_0x42b875(0xc2)});else!_0x54ad8e[_0x42b875(0x11b)]==''?(await sleep(0x7d0),_0x1a1fcc[_0x42b875(0xb1)](_0x54ad8e['id'],{'text':_0x42b875(0x84)+_0x54ad8e[_0x42b875(0x11b)]})):(await sleep(0x7d0),_0x1a1fcc[_0x42b875(0xb1)](_0x54ad8e['id'],{'text':'\x0aGroup\x20name\x20updated\x20to,\x0a'+_0x54ad8e[_0x42b875(0xa8)]}));}}}}),_0x1a1fcc['ev']['on'](_0x23260(0xcb),async _0x508424=>{const _0x36f89e=_0x23260;console[_0x36f89e(0x132)](_0x508424);try{let _0x200b45=await _0x1a1fcc[_0x36f89e(0x114)](_0x508424['id']),_0x47ef5c=_0x508424['participants'];for(let _0x504c77 of _0x47ef5c){try{ppuser=await _0x1a1fcc[_0x36f89e(0xd2)](_0x504c77,_0x36f89e(0x122));}catch(_0x5cd978){ppuser='https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_960_720.png?q=60',ppuser=_0x36f89e(0x10c);}try{ppgroup=await _0x1a1fcc[_0x36f89e(0xd2)](_0x508424['id'],_0x36f89e(0x122));}catch(_0x48c6d5){ppgroup=_0x36f89e(0xfa);}memb=_0x200b45[_0x36f89e(0x10b)][_0x36f89e(0x16e)],XeonWlcm=await getBuffer(ppuser),XeonLft=await getBuffer(ppuser);if(_0x508424['action']==_0x36f89e(0xb2)){if(isLockedGroup())return;const _0x533f5b=await getBuffer(ppuser);let _0x2162d4=_0x504c77;const _0x40ba90=moment['tz'](_0x36f89e(0x163))[_0x36f89e(0xce)](_0x36f89e(0x127)),_0x7e834e=moment['tz'](_0x36f89e(0x163))['format'](_0x36f89e(0xc7)),_0x3092c3=_0x200b45[_0x36f89e(0x10b)][_0x36f89e(0x16e)];let _0x4507c4=_0x1dfa58=>{const _0x58e65d=_0x36f89e;return _0x1dfa58=_0x1dfa58['replace'](/{date}/g,_0x7e834e),_0x1dfa58=_0x1dfa58['replace'](/{time}/g,_0x40ba90),_0x1dfa58=_0x1dfa58[_0x58e65d(0xd5)](/{user}/g,_0x2162d4['split']('@')[0x0]),_0x1dfa58=_0x1dfa58[_0x58e65d(0xd5)](/{botname}/g,ec[_0x58e65d(0xd1)]),_0x1dfa58=_0x1dfa58[_0x58e65d(0xd5)](/{ownername}/g,ec[_0x58e65d(0xda)]),_0x1dfa58=_0x1dfa58[_0x58e65d(0xd5)](/{ownernumber}/g,ec[_0x58e65d(0x8c)]),_0x1dfa58=_0x1dfa58['replace'](/{groupname}/g,_0x200b45['subject']),_0x1dfa58=_0x1dfa58['replace'](/{n}/gi,'\x0a'),_0x1dfa58=_0x1dfa58+ec[_0x58e65d(0x86)],_0x1dfa58;};if(!ec[_0x36f89e(0xa2)])return;_0x1a1fcc[_0x36f89e(0xb1)](_0x508424['id'],{'caption':_0x4507c4(ec[_0x36f89e(0xfd)]),'image':{'url':ppuser}});}else{if(_0x508424['action']==_0x36f89e(0x92)){if(isLockedGroup())return;const _0x5be689=await getBuffer(ppuser);let _0x2e4fc7=_0x504c77;const _0x168271=moment['tz'](_0x36f89e(0x163))[_0x36f89e(0xce)](_0x36f89e(0x127)),_0x5a70bf=moment['tz'](_0x36f89e(0x163))['format'](_0x36f89e(0xc7)),_0x587ffa=_0x200b45[_0x36f89e(0x10b)][_0x36f89e(0x16e)],_0x48eb3b=_0x200b45[_0x36f89e(0x10b)][_0x36f89e(0x16e)];let _0x11ed50=_0x27ac77=>{const _0x48294a=_0x36f89e;return _0x27ac77=_0x27ac77[_0x48294a(0xd5)](/{date}/g,_0x5a70bf),_0x27ac77=_0x27ac77[_0x48294a(0xd5)](/{time}/g,_0x168271),_0x27ac77=_0x27ac77[_0x48294a(0xd5)](/{user}/g,_0x2e4fc7[_0x48294a(0xf5)]('@')[0x0]),_0x27ac77=_0x27ac77['replace'](/{botname}/g,ec[_0x48294a(0xd1)]),_0x27ac77=_0x27ac77['replace'](/{ownername}/g,ec[_0x48294a(0xda)]),_0x27ac77=_0x27ac77[_0x48294a(0xd5)](/{ownernumber}/g,ec[_0x48294a(0x8c)]),_0x27ac77=_0x27ac77['replace'](/{groupname}/g,_0x200b45[_0x48294a(0xa8)]),_0x27ac77=_0x27ac77[_0x48294a(0xd5)](/{n}/gi,'\x0a'),_0x27ac77=_0x27ac77+ec[_0x48294a(0x86)],_0x27ac77;};if(!ec[_0x36f89e(0xa2)])return;_0x1a1fcc[_0x36f89e(0xb1)](_0x508424['id'],{'caption':_0x11ed50(ec[_0x36f89e(0xd8)]),'image':{'url':_0x36f89e(0x14a)}});}else{if(_0x508424[_0x36f89e(0x15d)]==_0x36f89e(0x145)){if(isLockedGroup())return;const _0x5f0237=await getBuffer(ppuser),_0x2b77b8=moment['tz'](_0x36f89e(0x163))[_0x36f89e(0xce)](_0x36f89e(0x127)),_0x4924a6=moment['tz']('Asia/Kolkata')[_0x36f89e(0xce)]('DD-MM-YYYY');let _0x5a1e85=_0x504c77,_0x3e4d2e=_0x3c1207=>{const _0x3035f8=_0x36f89e;return _0x3c1207=_0x3c1207[_0x3035f8(0xd5)](/{date}/g,_0x4924a6),_0x3c1207=_0x3c1207[_0x3035f8(0xd5)](/{time}/g,_0x2b77b8),_0x3c1207=_0x3c1207['replace'](/{user}/g,_0x5a1e85[_0x3035f8(0xf5)]('@')[0x0]),_0x3c1207=_0x3c1207[_0x3035f8(0xd5)](/{botname}/g,ec[_0x3035f8(0xd1)]),_0x3c1207=_0x3c1207[_0x3035f8(0xd5)](/{ownername}/g,ec[_0x3035f8(0xda)]),_0x3c1207=_0x3c1207[_0x3035f8(0xd5)](/{ownernumber}/g,ec[_0x3035f8(0x8c)]),_0x3c1207=_0x3c1207['replace'](/{groupname}/g,_0x200b45[_0x3035f8(0xa8)]),_0x3c1207=_0x3c1207[_0x3035f8(0xd5)](/{n}/gi,'\x0a'),_0x3c1207=_0x3c1207+ec[_0x3035f8(0x86)],_0x3c1207;};_0x1a1fcc[_0x36f89e(0xb1)](_0x508424['id'],{'text':_0x3e4d2e(_0x36f89e(0x16b))});}else{if(_0x508424[_0x36f89e(0x15d)]=='demote'){if(isLockedGroup())return;const _0x13f6cf=await getBuffer(ppuser),_0x4e5f93=moment['tz'](_0x36f89e(0x163))['format'](_0x36f89e(0x127)),_0x2c378c=moment['tz'](_0x36f89e(0x163))[_0x36f89e(0xce)](_0x36f89e(0xc7));let _0x2c8c7a=_0x504c77,_0x440b96=_0x57e2f7=>{const _0x39d17b=_0x36f89e;return _0x57e2f7=_0x57e2f7[_0x39d17b(0xd5)](/{date}/g,_0x2c378c),_0x57e2f7=_0x57e2f7[_0x39d17b(0xd5)](/{time}/g,_0x4e5f93),_0x57e2f7=_0x57e2f7[_0x39d17b(0xd5)](/{user}/g,_0x2c8c7a[_0x39d17b(0xf5)]('@')[0x0]),_0x57e2f7=_0x57e2f7[_0x39d17b(0xd5)](/{botname}/g,ec[_0x39d17b(0xd1)]),_0x57e2f7=_0x57e2f7['replace'](/{ownername}/g,ec[_0x39d17b(0xda)]),_0x57e2f7=_0x57e2f7['replace'](/{ownernumber}/g,ec[_0x39d17b(0x8c)]),_0x57e2f7=_0x57e2f7[_0x39d17b(0xd5)](/{groupname}/g,_0x200b45['subject']),_0x57e2f7=_0x57e2f7['replace'](/{n}/gi,'\x0a'),_0x57e2f7=_0x57e2f7+ec[_0x39d17b(0x86)],_0x57e2f7;};_0x1a1fcc[_0x36f89e(0xb1)](_0x508424['id'],{'text':_0x440b96('☹️Omg!\x20{user}❗{n}You\x20dismissed\x20as\x20an\x20admin💔')});}}}}}}catch(_0x3f7967){console[_0x36f89e(0x132)](_0x3f7967);}});async function _0x7920fd(_0x7212a9){const _0x43e337=_0x23260;if(store){const _0x41fbac=await store[_0x43e337(0x14f)](_0x7212a9[_0x43e337(0x15e)],_0x7212a9['id']);return _0x41fbac?.[_0x43e337(0x12e)];}return{'conversation':'EveloCode'};}return _0x1a1fcc['ev']['on']('messages.update',async _0x2f65bf=>{const _0x576ff1=_0x23260;for(const {key:_0x331b80,update:_0x360cff}of _0x2f65bf){if(_0x360cff[_0x576ff1(0xb5)]&&_0x331b80[_0x576ff1(0x142)]){const _0x2fd553=await _0x7920fd(_0x331b80);if(_0x2fd553){const _0x5c5f8a=await getAggregateVotesInPollMessage({'message':_0x2fd553,'pollUpdates':_0x360cff['pollUpdates']});var _0x5b53fd=_0x5c5f8a[_0x576ff1(0x161)](_0xa0b322=>_0xa0b322[_0x576ff1(0xdc)]['length']!==0x0)[0x0]?.[_0x576ff1(0xe8)];if(_0x5b53fd==undefined)return;var _0x1a61c0=prefix+_0x5b53fd;_0x1a1fcc[_0x576ff1(0x9f)](_0x1a61c0,_0x2f65bf);}}}}),_0x1a1fcc[_0x23260(0xa1)]=async(_0x5da5d7,_0x53b71e,_0x3a05d6,_0x805067={})=>_0x1a1fcc[_0x23260(0xb1)](_0x5da5d7,{'text':_0x53b71e,'contextInfo':{'mentionedJid':[..._0x53b71e['matchAll'](/@(\d{0,16})/g)][_0x23260(0x113)](_0x1a3329=>_0x1a3329[0x1]+'@s.whatsapp.net')},..._0x805067},{'quoted':_0x3a05d6}),_0x1a1fcc[_0x23260(0x140)]=_0x5164c7=>{const _0x3314f2=_0x23260;if(!_0x5164c7)return _0x5164c7;if(/:\d+@/gi[_0x3314f2(0xd6)](_0x5164c7)){let _0x5c06fb=jidDecode(_0x5164c7)||{};return _0x5c06fb[_0x3314f2(0x12a)]&&_0x5c06fb[_0x3314f2(0xb7)]&&_0x5c06fb['user']+'@'+_0x5c06fb[_0x3314f2(0xb7)]||_0x5164c7;}else return _0x5164c7;},_0x1a1fcc['ev']['on']('contacts.update',_0x386b8d=>{const _0x32a2d3=_0x23260;for(let _0x50653a of _0x386b8d){let _0xa1c22=_0x1a1fcc['decodeJid'](_0x50653a['id']);if(store&&store[_0x32a2d3(0x95)])store['contacts'][_0xa1c22]={'id':_0xa1c22,'name':_0x50653a[_0x32a2d3(0xa4)]};}}),_0x1a1fcc[_0x23260(0x12f)]=(_0x526740,_0x1e54a4=![])=>{const _0x341594=_0x23260;id=_0x1a1fcc['decodeJid'](_0x526740),_0x1e54a4=_0x1a1fcc[_0x341594(0x14d)]||_0x1e54a4;let _0x2ff67b;if(id['endsWith'](_0x341594(0x168)))return new Promise(async _0x1cdf61=>{const _0x1edc0d=_0x341594;_0x2ff67b=store[_0x1edc0d(0x95)][id]||{};if(!(_0x2ff67b[_0x1edc0d(0xe8)]||_0x2ff67b[_0x1edc0d(0xa8)]))_0x2ff67b=_0x1a1fcc['groupMetadata'](id)||{};_0x1cdf61(_0x2ff67b[_0x1edc0d(0xe8)]||_0x2ff67b[_0x1edc0d(0xa8)]||PhoneNumber('+'+id['replace'](_0x1edc0d(0xfe),''))[_0x1edc0d(0xbc)](_0x1edc0d(0xf7)));});else _0x2ff67b=id===_0x341594(0xc6)?{'id':id,'name':'WhatsApp'}:id===_0x1a1fcc[_0x341594(0x140)](_0x1a1fcc['user']['id'])?_0x1a1fcc[_0x341594(0x12a)]:store['contacts'][id]||{};return(_0x1e54a4?'':_0x2ff67b[_0x341594(0xe8)])||_0x2ff67b['subject']||_0x2ff67b[_0x341594(0x109)]||PhoneNumber('+'+_0x526740[_0x341594(0xd5)](_0x341594(0xfe),''))[_0x341594(0xbc)](_0x341594(0xf7));},_0x1a1fcc[_0x23260(0xbe)]=(_0x5cb5d2='')=>{const _0x1dff62=_0x23260;return[..._0x5cb5d2[_0x1dff62(0x167)](/@([0-9]{5,16}|0)/g)][_0x1dff62(0x113)](_0x16ddf2=>_0x16ddf2[0x1]+_0x1dff62(0xfe));},_0x1a1fcc[_0x23260(0xb0)]=async(_0xc507b0,_0x16b7eb,_0x569020='',_0x5ee35d={})=>{const _0x56d50a=_0x23260;let _0x43e528=[];for(let _0x56c9c5 of _0x16b7eb){_0x43e528['push']({'displayName':await _0x1a1fcc['getName'](_0x56c9c5),'vcard':'BEGIN:VCARD\x0a'+_0x56d50a(0xa5)+(_0x56d50a(0x91)+await _0x1a1fcc[_0x56d50a(0x12f)](_0x56c9c5)+'\x0a')+'ORG:EveloCode;\x0a'+(_0x56d50a(0xaa)+_0x56c9c5+':+'+_0x56c9c5+'\x0a')+_0x56d50a(0x13a)});}_0x1a1fcc[_0x56d50a(0xb1)](_0xc507b0,{'contacts':{'displayName':_0x43e528[_0x56d50a(0x16e)]+_0x56d50a(0x149),'contacts':_0x43e528},..._0x5ee35d},{'quoted':_0x569020});},_0x1a1fcc[_0x23260(0x85)]=_0xebe9b7=>{const _0x2b9c5c=_0x23260;return _0x1a1fcc['query']({'tag':'iq','attrs':{'to':_0x2b9c5c(0xfe),'type':_0x2b9c5c(0xcd),'xmlns':'status'},'content':[{'tag':_0x2b9c5c(0x158),'attrs':{},'content':Buffer[_0x2b9c5c(0x154)](_0xebe9b7,_0x2b9c5c(0x10e))}]}),_0xebe9b7;},_0x1a1fcc[_0x23260(0x93)]=!![],_0x1a1fcc[_0x23260(0x111)]=async(_0x307a09,_0x4a52b4,_0x4f39f1='',_0x801b45='',_0x46dcbb)=>{const _0x57bc68=_0x23260;let _0x2023f4=Buffer[_0x57bc68(0xae)](_0x4a52b4)?_0x4a52b4:/^data:.*?\/.*?;base64,/i['test'](_0x4a52b4)?Buffer[_0x57bc68(0x154)](_0x4a52b4[_0x57bc68(0xf5)]`,`[0x1],'base64'):/^https?:\/\//['test'](_0x4a52b4)?await await getBuffer(_0x4a52b4):fs[_0x57bc68(0xa9)](_0x4a52b4)?fs[_0x57bc68(0xc5)](_0x4a52b4):Buffer['alloc'](0x0);return await _0x1a1fcc[_0x57bc68(0xb1)](_0x307a09,{'image':_0x2023f4,'caption':_0x4f39f1,..._0x46dcbb},{'quoted':_0x801b45});},_0x1a1fcc['sendImageAsSticker']=async(_0x568246,_0x57990e,_0x469c88,_0xd5e884={})=>{const _0x9a87a9=_0x23260;let _0x2d9a5d=Buffer[_0x9a87a9(0xae)](_0x57990e)?_0x57990e:/^data:.*?\/.*?;base64,/i[_0x9a87a9(0xd6)](_0x57990e)?Buffer['from'](_0x57990e[_0x9a87a9(0xf5)]`,`[0x1],_0x9a87a9(0x104)):/^https?:\/\//[_0x9a87a9(0xd6)](_0x57990e)?await await getBuffer(_0x57990e):fs[_0x9a87a9(0xa9)](_0x57990e)?fs[_0x9a87a9(0xc5)](_0x57990e):Buffer['alloc'](0x0),_0x3de333;_0xd5e884&&(_0xd5e884[_0x9a87a9(0x124)]||_0xd5e884[_0x9a87a9(0x120)])?_0x3de333=await writeExifImg(_0x2d9a5d,_0xd5e884):_0x3de333=await imageToWebp(_0x2d9a5d),await _0x1a1fcc[_0x9a87a9(0xb1)](_0x568246,{'sticker':{'url':_0x3de333},..._0xd5e884},{'quoted':_0x469c88})[_0x9a87a9(0x139)](_0x269051=>{const _0xbefdd7=_0x9a87a9;return fs[_0xbefdd7(0x13b)](_0x3de333),_0x269051;});},_0x1a1fcc[_0x23260(0xe3)]=async(_0xa31890,_0x15ba75,_0x3e18f4,_0x74a4ee={})=>{const _0x454659=_0x23260;let _0x31143f=Buffer[_0x454659(0xae)](_0x15ba75)?_0x15ba75:/^data:.*?\/.*?;base64,/i[_0x454659(0xd6)](_0x15ba75)?Buffer[_0x454659(0x154)](_0x15ba75[_0x454659(0xf5)]`,`[0x1],'base64'):/^https?:\/\//['test'](_0x15ba75)?await await getBuffer(_0x15ba75):fs[_0x454659(0xa9)](_0x15ba75)?fs[_0x454659(0xc5)](_0x15ba75):Buffer[_0x454659(0x13f)](0x0),_0x38333;return _0x74a4ee&&(_0x74a4ee[_0x454659(0x124)]||_0x74a4ee[_0x454659(0x120)])?_0x38333=await writeExifVid(_0x31143f,_0x74a4ee):_0x38333=await videoToWebp(_0x31143f),await _0x1a1fcc[_0x454659(0xb1)](_0xa31890,{'sticker':{'url':_0x38333},..._0x74a4ee},{'quoted':_0x3e18f4}),_0x38333;},_0x1a1fcc['copyNForward']=async(_0x42bc84,_0x37e025,_0x453568=![],_0x18b8b4={})=>{const _0x9711ca=_0x23260;let _0x53297e;_0x18b8b4[_0x9711ca(0x82)]&&(_0x37e025[_0x9711ca(0x12e)]=_0x37e025[_0x9711ca(0x12e)]&&_0x37e025[_0x9711ca(0x12e)][_0x9711ca(0x103)]&&_0x37e025['message'][_0x9711ca(0x103)][_0x9711ca(0x12e)]?_0x37e025[_0x9711ca(0x12e)]['ephemeralMessage']['message']:_0x37e025[_0x9711ca(0x12e)]||undefined,_0x53297e=Object['keys'](_0x37e025[_0x9711ca(0x12e)][_0x9711ca(0x81)][_0x9711ca(0x12e)])[0x0],delete(_0x37e025[_0x9711ca(0x12e)]&&_0x37e025[_0x9711ca(0x12e)]['ignore']?_0x37e025[_0x9711ca(0x12e)][_0x9711ca(0xbb)]:_0x37e025[_0x9711ca(0x12e)]||undefined),delete _0x37e025[_0x9711ca(0x12e)][_0x9711ca(0x81)]['message'][_0x53297e][_0x9711ca(0x137)],_0x37e025[_0x9711ca(0x12e)]={..._0x37e025[_0x9711ca(0x12e)][_0x9711ca(0x81)][_0x9711ca(0x12e)]});let _0x2b70ef=Object['keys'](_0x37e025[_0x9711ca(0x12e)])[0x0],_0x15ebdb=await generateForwardMessageContent(_0x37e025,_0x453568),_0x307319=Object[_0x9711ca(0x13d)](_0x15ebdb)[0x0],_0x1c0a05={};if(_0x2b70ef!=_0x9711ca(0xca))_0x1c0a05=_0x37e025['message'][_0x2b70ef][_0x9711ca(0x100)];_0x15ebdb[_0x307319][_0x9711ca(0x100)]={..._0x1c0a05,..._0x15ebdb[_0x307319]['contextInfo']};const _0x162b90=await generateWAMessageFromContent(_0x42bc84,_0x15ebdb,_0x18b8b4?{..._0x15ebdb[_0x307319],..._0x18b8b4,..._0x18b8b4[_0x9711ca(0x100)]?{'contextInfo':{..._0x15ebdb[_0x307319][_0x9711ca(0x100)],..._0x18b8b4[_0x9711ca(0x100)]}}:{}}:{});return await _0x1a1fcc[_0x9711ca(0xe2)](_0x42bc84,_0x162b90['message'],{'messageId':_0x162b90[_0x9711ca(0xf2)]['id']}),_0x162b90;},_0x1a1fcc[_0x23260(0x8e)]=async(_0x2b46b0,_0x39e273,_0x5cb675=!![])=>{const _0x409c64=_0x23260;let _0x73d23d=_0x2b46b0[_0x409c64(0x151)]?_0x2b46b0[_0x409c64(0x151)]:_0x2b46b0,_0x599a6f=(_0x2b46b0[_0x409c64(0x151)]||_0x2b46b0)[_0x409c64(0xcf)]||'',_0x1395f4=_0x2b46b0[_0x409c64(0x136)]?_0x2b46b0[_0x409c64(0x136)][_0x409c64(0xd5)](/Message/gi,''):_0x599a6f[_0x409c64(0xf5)]('/')[0x0];const _0x5c4721=await downloadContentFromMessage(_0x73d23d,_0x1395f4);let _0x11157e=Buffer[_0x409c64(0x154)]([]);for await(const _0x56b02a of _0x5c4721){_0x11157e=Buffer[_0x409c64(0xaf)]([_0x11157e,_0x56b02a]);}let _0x9b3cfd=await FileType[_0x409c64(0xf8)](_0x11157e);return trueFileName=_0x5cb675?_0x39e273+'.'+_0x9b3cfd['ext']:_0x39e273,await fs[_0x409c64(0x164)](trueFileName,_0x11157e),trueFileName;},_0x1a1fcc['downloadMediaMessage']=async _0x46ee8f=>{const _0xcf9bbb=_0x23260;let _0x2db005=(_0x46ee8f[_0xcf9bbb(0x151)]||_0x46ee8f)[_0xcf9bbb(0xcf)]||'',_0x5f1835=_0x46ee8f[_0xcf9bbb(0x136)]?_0x46ee8f[_0xcf9bbb(0x136)][_0xcf9bbb(0xd5)](/Message/gi,''):_0x2db005[_0xcf9bbb(0xf5)]('/')[0x0];const _0x1af303=await downloadContentFromMessage(_0x46ee8f,_0x5f1835);let _0x5552d3=Buffer[_0xcf9bbb(0x154)]([]);for await(const _0x5a2998 of _0x1af303){_0x5552d3=Buffer[_0xcf9bbb(0xaf)]([_0x5552d3,_0x5a2998]);}return _0x5552d3;},_0x1a1fcc[_0x23260(0xc4)]=async(_0x284364,_0x409f64)=>{const _0x49b316=_0x23260;let _0x57865b,_0x1c24d4=Buffer[_0x49b316(0xae)](_0x284364)?_0x284364:/^data:.*?\/.*?;base64,/i[_0x49b316(0xd6)](_0x284364)?Buffer[_0x49b316(0x154)](_0x284364[_0x49b316(0xf5)]`,`[0x1],_0x49b316(0x104)):/^https?:\/\//[_0x49b316(0xd6)](_0x284364)?await(_0x57865b=await getBuffer(_0x284364)):fs[_0x49b316(0xa9)](_0x284364)?(filename=_0x284364,fs[_0x49b316(0xc5)](_0x284364)):typeof _0x284364===_0x49b316(0x15b)?_0x284364:Buffer['alloc'](0x0),_0x1d5e82=await FileType[_0x49b316(0xf8)](_0x1c24d4)||{'mime':_0x49b316(0x12b),'ext':_0x49b316(0x121)};filename=path[_0x49b316(0x123)](__filename,_0x49b316(0x8b)+new Date()*0x1+'.'+_0x1d5e82[_0x49b316(0x13e)]);if(_0x1c24d4&&_0x409f64)fs[_0x49b316(0x135)][_0x49b316(0x11d)](filename,_0x1c24d4);return{'res':_0x57865b,'filename':filename,'size':await getSizeMedia(_0x1c24d4),..._0x1d5e82,'data':_0x1c24d4};},_0x1a1fcc[_0x23260(0x9b)]=async(_0x200b40,_0x4347ca,_0x221bc3='',_0x54858b='',_0x386602='',_0x346c38={})=>{const _0x7cf50f=_0x23260;let _0x5106cb=await _0x1a1fcc['getFile'](_0x4347ca,!![]),{mime:_0xed168b,ext:_0x2460af,res:_0x405cd4,data:_0x200f64,filename:_0x5dcad2}=_0x5106cb;if(_0x405cd4&&_0x405cd4['status']!==0xc8||file['length']<=0x10000)try{throw{'json':JSON['parse'](file[_0x7cf50f(0xbd)]())};}catch(_0x100644){if(_0x100644[_0x7cf50f(0x147)])throw _0x100644['json'];}let _0x47980d='',_0x2ab2ac=_0xed168b,_0x5345b3=_0x5dcad2;if(_0x346c38[_0x7cf50f(0x131)])_0x47980d=_0x7cf50f(0xd4);if(_0x346c38[_0x7cf50f(0xc1)]||/webp/['test'](_0xed168b)){let {writeExif:_0x5b0c59}=require(_0x7cf50f(0x98)),_0x5c687c={'mimetype':_0xed168b,'data':_0x200f64};_0x5345b3=await _0x5b0c59(_0x5c687c,{'packname':_0x346c38[_0x7cf50f(0x124)]?_0x346c38[_0x7cf50f(0x124)]:global[_0x7cf50f(0x124)],'author':_0x346c38[_0x7cf50f(0x120)]?_0x346c38[_0x7cf50f(0x120)]:global[_0x7cf50f(0x120)],'categories':_0x346c38[_0x7cf50f(0x9a)]?_0x346c38[_0x7cf50f(0x9a)]:[]}),await fs[_0x7cf50f(0x135)][_0x7cf50f(0x10f)](_0x5dcad2),_0x47980d=_0x7cf50f(0xf6),_0x2ab2ac=_0x7cf50f(0xba);}else{if(/image/['test'](_0xed168b))_0x47980d=_0x7cf50f(0x122);else{if(/video/[_0x7cf50f(0xd6)](_0xed168b))_0x47980d='video';else{if(/audio/['test'](_0xed168b))_0x47980d='audio';else _0x47980d=_0x7cf50f(0xd4);}}}return await _0x1a1fcc[_0x7cf50f(0xb1)](_0x200b40,{[_0x47980d]:{'url':_0x5345b3},'caption':_0x54858b,'mimetype':_0x2ab2ac,'fileName':_0x221bc3,..._0x346c38},{'quoted':_0x386602,..._0x346c38}),fs['promises'][_0x7cf50f(0x10f)](_0x5345b3);},_0x1a1fcc['sendText']=(_0xc393e7,_0x15bbff,_0xdc1696='',_0x2c9c3c)=>_0x1a1fcc[_0x23260(0xb1)](_0xc393e7,{'text':_0x15bbff,..._0x2c9c3c},{'quoted':_0xdc1696}),_0x1a1fcc['serializeM']=_0x593250=>smsg(_0x1a1fcc,_0x593250,store),_0x1a1fcc[_0x23260(0x99)]=(_0x4ec415,_0x3592aa=[],_0x2314d4,_0x46d1da,_0x543840='',_0x3d67c3={})=>{const _0x22fef2=_0x23260;let _0x44f8f3={'text':_0x2314d4,'footer':_0x46d1da,'buttons':_0x3592aa,'headerType':0x2,..._0x3d67c3};_0x1a1fcc[_0x22fef2(0xb1)](_0x4ec415,_0x44f8f3,{'quoted':_0x543840,..._0x3d67c3});},_0x1a1fcc[_0x23260(0x10d)]=async(_0x5ab684,_0xff2f3a='',_0x2c6073='',_0x18cabb,_0x562c53={})=>{const _0x26d069=_0x23260;let _0x57f33a=await prepareWAMessageMedia({'image':_0x18cabb},{'upload':_0x1a1fcc[_0x26d069(0x101)]});const _0x3a9aed=generateWAMessageFromContent(_0x5ab684,{'productMessage':{'product':{'productImage':_0x57f33a['imageMessage'],'productId':'9999','title':_0xff2f3a,'description':_0x2c6073,'currencyCode':_0x26d069(0x162),'priceAmount1000':_0x26d069(0x144),'url':''+websitex,'productImageCount':0x1,'salePriceAmount1000':'0'},'businessOwnerJid':ownernumber+'@s.whatsapp.net'}},_0x562c53);return _0x1a1fcc[_0x26d069(0xe2)](_0x5ab684,_0x3a9aed['message'],{'messageId':_0x3a9aed[_0x26d069(0xf2)]['id']});},_0x1a1fcc[_0x23260(0x90)]=async(_0x2bfa5e,_0x3839a9='',_0x4dbe1c='',_0x52dfc9,_0x2da11a=[],_0x543fab={})=>{const _0x5347a4=_0x23260;var _0x5af7f2=generateWAMessageFromContent(_0x2bfa5e,proto[_0x5347a4(0x10a)]['fromObject']({'templateMessage':{'hydratedTemplate':{'hydratedContentText':_0x3839a9,'locationMessage':{'jpegThumbnail':_0x52dfc9},'hydratedFooterText':_0x4dbe1c,'hydratedButtons':_0x2da11a}}}),_0x543fab);_0x1a1fcc['relayMessage'](_0x2bfa5e,_0x5af7f2['message'],{'messageId':_0x5af7f2['key']['id']});},_0x1a1fcc[_0x23260(0x157)]=async(_0x353926,_0x3c6cb0,_0x3a816d,_0x486c99,_0x1ef71e)=>{const _0x37355c=_0x23260;let _0x4626bb=Buffer['isBuffer'](_0x3c6cb0)?_0x3c6cb0:/^data:.*?\/.*?;base64,/i[_0x37355c(0xd6)](_0x3c6cb0)?Buffer[_0x37355c(0x154)](_0x3c6cb0[_0x37355c(0xf5)]`,`[0x1],_0x37355c(0x104)):/^https?:\/\//[_0x37355c(0xd6)](_0x3c6cb0)?await await getBuffer(_0x3c6cb0):fs['existsSync'](_0x3c6cb0)?fs[_0x37355c(0xc5)](_0x3c6cb0):Buffer[_0x37355c(0x13f)](0x0),_0x819f07={'image':_0x4626bb,'jpegThumbnail':_0x4626bb,'caption':_0x3a816d,'fileLength':'1','footer':_0x486c99,'buttons':_0x1ef71e,'headerType':0x4};_0x1a1fcc['sendMessage'](_0x353926,_0x819f07,{'quoted':m});},_0x1a1fcc[_0x23260(0x89)]=async(_0x466fa1,_0x362f5c,_0x1f2052='',_0x37c889='',_0x24065b,_0x2babb6=![],_0x1e8ab9={})=>{const _0x3571f2=_0x23260;let _0x27c75f=await _0x1a1fcc[_0x3571f2(0xc4)](_0x362f5c,!![]),{res:_0x2ee888,data:_0x2abd89,filename:_0x1efe88}=_0x27c75f;if(_0x2ee888&&_0x2ee888[_0x3571f2(0x158)]!==0xc8||_0x2abd89[_0x3571f2(0x16e)]<=0x10000)try{throw{'json':JSON[_0x3571f2(0xac)](_0x2abd89[_0x3571f2(0xbd)]())};}catch(_0x37edda){if(_0x37edda[_0x3571f2(0x147)])throw _0x37edda['json'];}const _0x42d92c=fs[_0x3571f2(0x129)](_0x1efe88)[_0x3571f2(0x128)]/0x400/0x400;if(_0x42d92c>=0x708)throw new Error(_0x3571f2(0xdf));let _0x3ae2b9={};if(_0x24065b)_0x3ae2b9[_0x3571f2(0x115)]=_0x24065b;if(!_0x27c75f)_0x1e8ab9[_0x3571f2(0x131)]=!![];let _0x3a8bac='',_0x4e7b79=_0x1e8ab9[_0x3571f2(0xcf)]||_0x27c75f[_0x3571f2(0xff)],_0x54a88c;if(/webp/[_0x3571f2(0xd6)](_0x27c75f[_0x3571f2(0xff)])||/image/[_0x3571f2(0xd6)](_0x27c75f[_0x3571f2(0xff)])&&_0x1e8ab9[_0x3571f2(0xc1)])_0x3a8bac=_0x3571f2(0xf6);else{if(/image/['test'](_0x27c75f[_0x3571f2(0xff)])||/webp/[_0x3571f2(0xd6)](_0x27c75f[_0x3571f2(0xff)])&&_0x1e8ab9[_0x3571f2(0x106)])_0x3a8bac=_0x3571f2(0x122);else{if(/video/[_0x3571f2(0xd6)](_0x27c75f[_0x3571f2(0xff)]))_0x3a8bac='video';else{if(/audio/[_0x3571f2(0xd6)](_0x27c75f[_0x3571f2(0xff)]))_0x54a88c=await toAudio(_0x2abd89,_0x27c75f[_0x3571f2(0x13e)]),_0x2abd89=_0x54a88c[_0x3571f2(0xea)],_0x1efe88=_0x54a88c[_0x3571f2(0x125)],_0x3a8bac=_0x3571f2(0xa0),_0x4e7b79=_0x1e8ab9[_0x3571f2(0xcf)]||_0x3571f2(0x14b);else _0x3a8bac=_0x3571f2(0xd4);}}}if(_0x1e8ab9['asDocument'])_0x3a8bac=_0x3571f2(0xd4);delete _0x1e8ab9[_0x3571f2(0xc1)],delete _0x1e8ab9['asLocation'],delete _0x1e8ab9[_0x3571f2(0xab)],delete _0x1e8ab9[_0x3571f2(0x131)],delete _0x1e8ab9[_0x3571f2(0x106)];let _0x286ae9={..._0x1e8ab9,'caption':_0x37c889,'ptt':_0x2babb6,[_0x3a8bac]:{'url':_0x1efe88},'mimetype':_0x4e7b79,'fileName':_0x1f2052||_0x1efe88['split']('/')[_0x3571f2(0x15f)]()},_0x25f482;try{_0x25f482=await _0x1a1fcc[_0x3571f2(0xb1)](_0x466fa1,_0x286ae9,{..._0x3ae2b9,..._0x1e8ab9});}catch(_0x26851b){console[_0x3571f2(0xb4)](_0x26851b),_0x25f482=null;}finally{if(!_0x25f482)_0x25f482=await _0x1a1fcc['sendMessage'](_0x466fa1,{..._0x286ae9,[_0x3a8bac]:_0x2abd89},{..._0x3ae2b9,..._0x1e8ab9});return _0x2abd89=null,_0x25f482;}},_0x1a1fcc[_0x23260(0xef)]=async(_0x34732d,_0x507786,_0x3c1f3c,_0x46e6e2,_0x227bcd={})=>{const _0x2874fa=_0x23260;let _0x892b32='',_0x3d3f78=await axios[_0x2874fa(0xa3)](_0x507786);_0x892b32=_0x3d3f78[_0x2874fa(0x126)][_0x2874fa(0xf3)];if(_0x892b32[_0x2874fa(0xf5)]('/')[0x1]==='gif')return _0x1a1fcc['sendMessage'](_0x34732d,{'video':await getBuffer(_0x507786),'caption':_0x3c1f3c,'gifPlayback':!![],..._0x227bcd},{'quoted':_0x46e6e2,..._0x227bcd});let _0x53b7f9=_0x892b32['split']('/')[0x0]+_0x2874fa(0x10a);if(_0x892b32===_0x2874fa(0x16f))return _0x1a1fcc[_0x2874fa(0xb1)](_0x34732d,{'document':await getBuffer(_0x507786),'mimetype':_0x2874fa(0x16f),'caption':_0x3c1f3c,..._0x227bcd},{'quoted':_0x46e6e2,..._0x227bcd});if(_0x892b32['split']('/')[0x0]===_0x2874fa(0x122))return _0x1a1fcc[_0x2874fa(0xb1)](_0x34732d,{'image':await getBuffer(_0x507786),'caption':_0x3c1f3c,..._0x227bcd},{'quoted':_0x46e6e2,..._0x227bcd});if(_0x892b32[_0x2874fa(0xf5)]('/')[0x0]==='video')return _0x1a1fcc[_0x2874fa(0xb1)](_0x34732d,{'video':await getBuffer(_0x507786),'caption':_0x3c1f3c,'mimetype':_0x2874fa(0xe6),..._0x227bcd},{'quoted':_0x46e6e2,..._0x227bcd});if(_0x892b32[_0x2874fa(0xf5)]('/')[0x0]==='audio')return _0x1a1fcc[_0x2874fa(0xb1)](_0x34732d,{'audio':await getBuffer(_0x507786),'caption':_0x3c1f3c,'mimetype':_0x2874fa(0xe5),..._0x227bcd},{'quoted':_0x46e6e2,..._0x227bcd});},_0x1a1fcc[_0x23260(0x159)]=(_0x58056a,_0x38bad6='',_0x104c6d=[],_0x101782=0x1)=>{const _0x5ef09d=_0x23260;return _0x1a1fcc[_0x5ef09d(0xb1)](_0x58056a,{'poll':{'name':_0x38bad6,'values':_0x104c6d,'selectableCount':_0x101782}});},_0x1a1fcc;}XeonBotIncBot(),process['on'](_0x28791a(0x102),function(_0x56a7b4){const _0x5d1ea1=_0x28791a;console[_0x5d1ea1(0x132)](_0x5d1ea1(0xe9),_0x56a7b4);});