-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
1 lines (1 loc) · 33.7 KB
/
index.js
File metadata and controls
1 lines (1 loc) · 33.7 KB
1
const a0_0x6e5606=a0_0x1c61;(function(_0x145fe1,_0x3ff3e5){const _0x4c07d5=a0_0x1c61,_0x4197e3=_0x145fe1();while(!![]){try{const _0x10c739=-parseInt(_0x4c07d5(0x17e))/0x1+parseInt(_0x4c07d5(0x103))/0x2*(-parseInt(_0x4c07d5(0xbf))/0x3)+parseInt(_0x4c07d5(0x161))/0x4*(-parseInt(_0x4c07d5(0xf5))/0x5)+parseInt(_0x4c07d5(0xd5))/0x6*(-parseInt(_0x4c07d5(0x127))/0x7)+parseInt(_0x4c07d5(0x172))/0x8*(-parseInt(_0x4c07d5(0x190))/0x9)+parseInt(_0x4c07d5(0x15b))/0xa*(-parseInt(_0x4c07d5(0x13e))/0xb)+parseInt(_0x4c07d5(0xf8))/0xc;if(_0x10c739===_0x3ff3e5)break;else _0x4197e3['push'](_0x4197e3['shift']());}catch(_0x22ffbd){_0x4197e3['push'](_0x4197e3['shift']());}}}(a0_0x3bbe,0xe2842),require(a0_0x6e5606(0xe4)));const {default:makeWASocket,useMultiFileAuthState,DisconnectReason,fetchLatestBaileysVersion,makeInMemoryStore,jidDecode,proto,getContentType,downloadContentFromMessage,fetchLatestWaWebVersion}=require('@adiwajshing/baileys'),fs=require('fs'),pino=require(a0_0x6e5606(0x153)),lolcatjs=require('lolcatjs'),path=require(a0_0x6e5606(0x12d)),unzipper=require('unzipper'),https=require('https'),axios=require(a0_0x6e5606(0x177)),dotenv=require(a0_0x6e5606(0x162));dotenv['config']();const NodeCache=require(a0_0x6e5606(0x138)),msgRetryCounterCache=new NodeCache(),fetch=require(a0_0x6e5606(0x123)),FileType=require(a0_0x6e5606(0x133)),AdmZip=require(a0_0x6e5606(0x152)),express=require(a0_0x6e5606(0xc8)),app=express(),port=process[a0_0x6e5606(0x120)]['PORT']||0x2382,_=require(a0_0x6e5606(0x111)),{Boom}=require(a0_0x6e5606(0x13c)),PhoneNumber=require(a0_0x6e5606(0xb7)),readline=require(a0_0x6e5606(0x12b)),{smsg,color,getBuffer}=require(a0_0x6e5606(0x18b)),{imageToWebp,videoToWebp,writeExifImg,writeExifVid}=require(a0_0x6e5606(0xfc)),{toAudio,toPTT,toVideo}=require(a0_0x6e5606(0x107)),yargs=require('yargs/yargs'),store=makeInMemoryStore({'logger':pino()[a0_0x6e5606(0x16f)]({'level':a0_0x6e5606(0x117),'stream':a0_0x6e5606(0x164)})});global[a0_0x6e5606(0x109)]=new Object(yargs(process[a0_0x6e5606(0xea)]['slice'](0x2))['exitProcess'](![])[a0_0x6e5606(0x147)]());function a0_0x3bbe(){const _0x1bb3eb=['2570136rZptIb','✅\x20File\x20message.js\x20Already\x20Available.','readMessages','key','promises','decodeJid','send','connectionClosed','replace','concat','sendFile','creds.update','SESSION_ID','timedOut','@s.whatsapp.net','./config','base64','viewonce_','alloc','createWriteStream','requestPairingCode','argv','sendPoll','fromString','Unknown\x20DisconnectReason:\x20','session_backup','finish','@g.us',')\x20from\x20','notify','serializeM','Result\x20is\x20not\x20a\x20buffer','193285VPOkEs','[\x20Successfully\x20Comnected\x20to\x20database\x20MongoDB\x20]','creds.json','54578568FKBBOQ','pipe','\x0a\x20\x20\x20\x20<!DOCTYPE\x20html>\x0a\x20\x20\x20\x20<html\x20lang=\x22fa\x22>\x0a\x20\x20\x20\x20<head>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<meta\x20charset=\x22UTF-8\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<meta\x20name=\x22viewport\x22\x20content=\x22width=device-width,\x20initial-scale=1.0\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<title>WhatsApp\x20Bot\x20Status</title>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background:\x20linear-gradient(45deg,\x20#ff00cc,\x20#3333ff);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-family:\x20\x27Arial\x27,\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20100vh;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.status-container\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.1);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x2020px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x2040px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20box-shadow:\x200\x204px\x2030px\x20rgba(0,\x200,\x200,\x200.3);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20backdrop-filter:\x20blur(10px);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20#fff;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2024px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.status-container\x20h1\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2036px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20#fff;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-transform:\x20uppercase;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20letter-spacing:\x202px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-bottom:\x2020px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.status-container\x20p\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2018px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-bottom:\x2020px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20#4CAF50;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-weight:\x20bold;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20</style>\x0a\x20\x20\x20\x20</head>\x0a\x20\x20\x20\x20<body>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22status-container\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<h1>WhatsApp\x20Bot\x20Status</h1>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p>WhatsApp\x20Bot\x20is\x20running!\x20✅</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</body>\x0a\x20\x20\x20\x20</html>\x0a\x20\x20','mime','./nothing-ben/exif','startsWith','writeFile','Pairing\x20code:\x20','from','isBuffer','connectionReplaced','1010386xHuyLX','✅\x20status\x20new\x20(','\x20Contact','audio/ogg;\x20codecs=opus','./nothing-ben/converter','\x0a\x0aYou\x20dont\x20have\x20session\x20id\x20try\x20pairing\x0a\x0aPlease\x20Type\x20Your\x20WhatsApp\x20Number\x20Example\x2093******\x20:\x0a','opts','uncaughtException','getName','\x0aitem1.TEL;waid=','BEGIN:VCARD\x0aVERSION:3.0\x0aN:','READ','stream','Error\x20Connection.update\x20','lodash','withoutContact','private','stringify','🔓\x20ViewOnce\x20Unlocked','\x20to\x20','silent','buffer','server','Restart\x20Required,\x20Restarting...','Connection\x20Lost\x20from\x20Server,\x20reconnecting...','unwatchFile','ephemeralMessage','Device\x20Logged\x20Out,\x20Please\x20Connect\x20Again\x20And\x20Run.','tmp','env','join','existsSync','node-fetch','❌\x20Error\x20in\x20sending\x20status\x20to\x20the\x20specified\x20number:','copyFileSync','authState','7SphoGl','document','✅\x20Session\x20backed\x20up\x20successfully.','0@s.whatsapp.net','readline','Folder\x20\x27tmp\x27\x20already\x20available.','path','receivedPendingNotifications','utf8','loadDatabase','ext','mkdirSync','file-type','owner','extractAllTo','❌\x20Error\x20in\x20download\x20file:','international','node-cache','length','filename','question','@hapi/boom','sendContact','655798pUIPOd','bind','now','getNumber','Whatsapp\x20bot\x20successfully\x20connected\x20✅','json','https://https://files.catbox.moe/s10jph.js','type','user','parse','message','resolve','audio','status','registered','participant','author','subject','./nothing-ben/lowdb','temp.zip','adm-zip','pino','👤\x20*By:*\x20','test','readFileSync','mimetype','viewOnceMessage','DATABASE','https://files.catbox.moe/y9ysty.jpg','90AqneAN','status@broadcast','✅\x20Downloaded\x20the\x20ZIP\x20file.','open','sendMessage','data','12FkOPng','dotenv','writeFileSync','store','creds','video','./nothing-ben/databasee.json','Folder\x20\x27tmp\x27\x20successfully\x20created..','chain','error','autoViewStatus','get','❌\x20Failed\x20for\x20download\x20file','msg','child','videoMessage','keys','8ESZgsd','public','\x0aFN:','write','✅\x20The\x20files\x20are\x20extracted.','axios','application/octet-stream','restartRequired','inbox','toString','sendImageAsSticker','forEach','884787ooeVYK','.bin','./message','fromMe','verifiedName','✅\x20SESSION_ID\x20Successfully\x20saved!','❌\x20فایل\x20owner.json\x20خوانده\x20نشد:','♻️\x20The\x20session\x20file\x20was\x20corrupted,\x20restored\x20from\x20backup.','autostatusmsg','120363333589976873@newsletter','sendVideoAsSticker','نوع\x20پشتیبانی\x20نشده:','asDocument','./nothing-ben/myfunc','Chrome','connection','fromBuffer','contacts','5799078jAgAKH','logout','trim','🗑️\x20Deleted\x20the\x20ZIP\x20file.','❌\x20دریافت\x20رسانه\x20ناموفق\x20بود.','sendText','session','downloadMediaMessage','\x0a╭─────────────━┈⊷\x20\x0a│🌏\x20*ʙᴏᴛ\x20ɪs\x20ᴄᴏɴɴᴇᴄᴛᴇᴅ*\x0a╰─────────────━┈⊷\x0a│💫\x20ᴘʀᴇғɪx:\x20*[\x20.\x20]*\x0a│⭕\x20ᴍᴏᴅᴇ:\x20*ᴘᴜʙʟɪᴄ*\x0a│📍\x20ᴠᴇʀꜱɪᴏɴ:\x20*1.0.0*\x0a│🤖\x20ʙᴏᴛ\x20ɴᴀᴍᴇ:\x20*ʙᴇɴ\x20ʙᴏᴛ*\x0a│👨💻\x20ᴏᴡɴᴇʀ\x20:\x20*ɴᴏᴛʜɪɴɢ*\x0a╰─────────────━┈⊷\x0a*Join\x20Whatsapp\x20Channel\x20For\x20Updates*\x0a>\x20https://whatsapp.com/channel/0029Vasu3qP9RZAUkVkvSv32\x0a','awesome-phonenumber','caption','unlinkSync','[\x20Connected\x20To\x20Local\x20Database\x20]','ANTIVIEWONCE','Ubuntu','log','mtype','6yySoJU','✅\x20File\x20Successfully\x20Downloaded','endsWith','image','imageMessage','includes','downloadAndSaveMediaMessage','map','https://files.catbox.moe/jl8iia.zip','express','push','remoteJid','getFile','split','Connection\x20TimedOut,\x20Reconnecting...','connectionLost','end','loggedOut','autostatusreply','statusCode','❌\x20Error\x20in\x20saving\x20SESSION_ID:','autosavestatus'];a0_0x3bbe=function(){return _0x1bb3eb;};return a0_0x3bbe();}function a0_0x1c61(_0x39df69,_0x54e2de){const _0x3bbefe=a0_0x3bbe();return a0_0x1c61=function(_0x1c6107,_0x2201fe){_0x1c6107=_0x1c6107-0xb7;let _0x4aa523=_0x3bbefe[_0x1c6107];return _0x4aa523;},a0_0x1c61(_0x39df69,_0x54e2de);}const low=require(a0_0x6e5606(0x150)),{Low,JSONFile}=low,mongoDB=require('./nothing-ben/mongoDB');let db;urldb!==''?(db=new mongoDB(urldb),lolcatjs['fromString'](a0_0x6e5606(0xf6))):(db=new JSONFile(a0_0x6e5606(0x167)),lolcatjs['fromString'](a0_0x6e5606(0xba)));global['db']=new Low(db),global[a0_0x6e5606(0x159)]=global['db'],global[a0_0x6e5606(0x130)]=async function loadDatabase(){const _0x5d119d=a0_0x6e5606;if(global['db'][_0x5d119d(0x10e)])return new Promise(_0x592e8a=>setInterval(function(){const _0x444993=_0x5d119d;!global['db'][_0x444993(0x10e)]?(clearInterval(this),_0x592e8a(global['db'][_0x444993(0x160)]==null?global[_0x444993(0x130)]():global['db'][_0x444993(0x160)])):null;},0x3e8));if(global['db']['data']!==null)return;global['db'][_0x5d119d(0x10e)]=!![],await global['db']['read'](),global['db'][_0x5d119d(0x10e)]=![],global['db'][_0x5d119d(0x160)]={'users':{},'chats':{},'database':{},'game':{},'settings':{},'others':{},'sticker':{},...global['db'][_0x5d119d(0x160)]||{}},global['db']['chain']=_[_0x5d119d(0x169)](global['db'][_0x5d119d(0x160)]);},global[a0_0x6e5606(0x130)](),process['on'](a0_0x6e5606(0x10a),console[a0_0x6e5606(0x16a)]);global['db']&&urldb!==''&&setInterval(async()=>{const _0x1b18c3=a0_0x6e5606;global['db'][_0x1b18c3(0x160)]&&await global['db'][_0x1b18c3(0x175)]();},0x7530);function createTmpFolder(){const _0x3a84b3=a0_0x6e5606,_0x38928e=path[_0x3a84b3(0x121)](__dirname,_0x3a84b3(0x11f));!fs[_0x3a84b3(0x122)](_0x38928e)?(fs[_0x3a84b3(0x132)](_0x38928e),lolcatjs[_0x3a84b3(0xec)](_0x3a84b3(0x168))):lolcatjs[_0x3a84b3(0xec)](_0x3a84b3(0x12c));}createTmpFolder();const question=_0x324a4e=>{const _0x3ca0f5=readline['createInterface']({'input':process['stdin'],'output':process['stdout']});return new Promise(_0x253cde=>{const _0x3dead0=a0_0x1c61;_0x3ca0f5[_0x3dead0(0x13b)](_0x324a4e,_0x253cde);});};async function updateCredsFile(){const _0x9973b0=a0_0x6e5606,_0x34fe3e='./session',_0x224c26=path['join'](_0x34fe3e,_0x9973b0(0xf7)),_0x5aa93a=process['env'][_0x9973b0(0xe1)];if(!_0x5aa93a)return console[_0x9973b0(0x16a)]('Cant\x20find\x20SESSION_ID\x20in\x20.env.\x20First,\x20get\x20it,\x20save\x20it\x20in\x20.env,\x20and\x20try\x20deploying\x20again!'),![];try{return!fs[_0x9973b0(0x122)](_0x34fe3e)&&fs['mkdirSync'](_0x34fe3e,{'recursive':!![]}),!fs['existsSync'](_0x224c26)&&fs[_0x9973b0(0x163)](_0x224c26,''),fs[_0x9973b0(0x163)](_0x224c26,_0x5aa93a),console[_0x9973b0(0xbd)](_0x9973b0(0x183)),!![];}catch(_0x3816e8){return console[_0x9973b0(0x16a)](_0x9973b0(0xd3),_0x3816e8),![];}}updateCredsFile();async function downloadFile(_0x158cd8,_0x4f6bea){const _0x48e070=a0_0x6e5606;if(fs[_0x48e070(0x122)](_0x4f6bea)){console[_0x48e070(0xbd)](_0x48e070(0xd6));return;}try{const _0x4052cd=fs[_0x48e070(0xe8)](_0x4f6bea),_0x5dd866=await axios({'method':'GET','url':_0x158cd8,'responseType':_0x48e070(0x10f)});return _0x5dd866['data'][_0x48e070(0xf9)](_0x4052cd),new Promise((_0x5f9fd6,_0x574e88)=>{const _0x82bcc=_0x48e070;_0x4052cd['on'](_0x82bcc(0xef),()=>{const _0x20c482=_0x82bcc;console[_0x20c482(0xbd)](_0x20c482(0xc0),_0x4f6bea),_0x5f9fd6();}),_0x4052cd['on'](_0x82bcc(0x16a),_0x5cb97c=>{const _0x1253cb=_0x82bcc;console[_0x1253cb(0x16a)](_0x1253cb(0x136),_0x5cb97c),_0x574e88(_0x5cb97c);});});}catch(_0x439abd){console[_0x48e070(0x16a)](_0x48e070(0x16d),_0x439abd);}}function createLibAndFiles(){const _0x34820d=a0_0x6e5606,_0x5cd361=path['join'](__dirname,'lib');!fs[_0x34820d(0x122)](_0x5cd361)&&fs[_0x34820d(0x132)](_0x5cd361,{'recursive':!![]});const _0x225574={'tempmailid.json':[]};Object[_0x34820d(0x171)](_0x225574)[_0x34820d(0x17d)](_0x363b9d=>{const _0x1cc1e5=_0x34820d,_0x5af995=path[_0x1cc1e5(0x121)](_0x5cd361,_0x363b9d);if(!fs['existsSync'](_0x5af995))fs[_0x1cc1e5(0x163)](_0x5af995,JSON[_0x1cc1e5(0x114)](_0x225574[_0x363b9d],null,0x2),_0x1cc1e5(0x12f));else{}});}createLibAndFiles();async function downloadAndExtractZip(_0x150b4d){const _0x954ec0=a0_0x6e5606,_0xe830d=path[_0x954ec0(0x121)](__dirname,_0x954ec0(0x151));try{const _0x3be4d9=await axios({'method':'GET','url':_0x150b4d,'responseType':_0x954ec0(0x10f)}),_0x6371a=fs[_0x954ec0(0xe8)](_0xe830d);_0x3be4d9[_0x954ec0(0x160)][_0x954ec0(0xf9)](_0x6371a),await new Promise((_0x238b08,_0x3e1be9)=>{const _0x7a6517=_0x954ec0;_0x6371a['on'](_0x7a6517(0xef),_0x238b08),_0x6371a['on']('error',_0x3e1be9);}),console[_0x954ec0(0xbd)](_0x954ec0(0x15d));const _0x118867=new AdmZip(_0xe830d);_0x118867[_0x954ec0(0x135)](__dirname,!![]),console['log'](_0x954ec0(0x176)),fs[_0x954ec0(0xb9)](_0xe830d),console[_0x954ec0(0xbd)](_0x954ec0(0x193));}catch(_0x581253){console[_0x954ec0(0x16a)]('❌\x20Error\x20while\x20downloading\x20or\x20extracting:',_0x581253);}}async function isTargetGroupOrChannel(_0x5e6844){const _0x15daac=a0_0x6e5606,_0xba5591=['120363411517229272@g.us',_0x15daac(0x187)];return _0xba5591[_0x15daac(0xc4)](_0x5e6844);}async function handleStatusView(_0x2265b5,_0x2f5d85){const _0xd66b8f=a0_0x6e5606,_0x702ef7=_0x2265b5[_0xd66b8f(0x146)]['id'][_0xd66b8f(0xcc)](':')[0x0]+_0xd66b8f(0xe3);if(_0x2f5d85[_0xd66b8f(0xd8)]&&_0x2f5d85[_0xd66b8f(0xd8)]['remoteJid']===_0xd66b8f(0x15c)&&global[_0xd66b8f(0x16b)]){await _0x2265b5[_0xd66b8f(0xd7)]([_0x2f5d85['key']]);if(global[_0xd66b8f(0xd4)])try{const _0x467dde=_0x2f5d85[_0xd66b8f(0xd8)]['participant']||'Unknown',_0x97491f=_0x2f5d85[_0xd66b8f(0x148)],_0x1ceb58=Object[_0xd66b8f(0x171)](_0x97491f)[0x0];if(_0x1ceb58==='imageMessage'||_0x1ceb58===_0xd66b8f(0x170)){const _0x1a5675=await _0x2265b5['downloadMediaMessage'](_0x2f5d85),_0x55ebeb=_0x97491f[_0x1ceb58][_0xd66b8f(0x157)]||_0xd66b8f(0x178);if(!_0x1a5675){console[_0xd66b8f(0xbd)](_0xd66b8f(0x194));return;}await _0x2265b5['sendMessage'](_0x702ef7,{[_0x1ceb58===_0xd66b8f(0xc3)?_0xd66b8f(0xc2):_0xd66b8f(0x166)]:_0x1a5675,'mimetype':_0x55ebeb,'caption':_0xd66b8f(0x154)+_0x467dde}),console['log'](_0xd66b8f(0x104)+_0x1ceb58+_0xd66b8f(0xf1)+_0x467dde+_0xd66b8f(0x116)+_0x702ef7+'\x20send\x20done.');}}catch(_0x6d4526){console['error'](_0xd66b8f(0x124),_0x6d4526);}}}const sessionDir=path[a0_0x6e5606(0x121)](__dirname,a0_0x6e5606(0x196)),sessionFile=path[a0_0x6e5606(0x121)](sessionDir,a0_0x6e5606(0xf7)),backupDir=path['join'](__dirname,a0_0x6e5606(0xee)),backupFile=path[a0_0x6e5606(0x121)](backupDir,'creds_backup.json');function restoreSessionIfMissing(){const _0x14c2d6=a0_0x6e5606;!fs[_0x14c2d6(0x122)](sessionFile)&&fs[_0x14c2d6(0x122)](backupFile)&&(fs[_0x14c2d6(0x125)](backupFile,sessionFile),console[_0x14c2d6(0xbd)](_0x14c2d6(0x185)));}function autoBackupSession(){const _0x408980=a0_0x6e5606;!fs[_0x408980(0x122)](backupDir)&&fs[_0x408980(0x132)](backupDir,{'recursive':!![]}),fs[_0x408980(0x122)](sessionFile)&&(fs[_0x408980(0x125)](sessionFile,backupFile),console[_0x408980(0xbd)](_0x408980(0x129)));}async function startBotz(){const _0x556b9f=a0_0x6e5606,{state:_0x59fca9,saveCreds:_0x5ca532}=await useMultiFileAuthState('session'),_0x513113=makeWASocket({'logger':pino({'level':'fatal'}),'printQRInTerminal':![],'auth':_0x59fca9,'msgRetryCounterCache':msgRetryCounterCache,'connectTimeoutMs':0xea60,'defaultQueryTimeoutMs':0x0,'keepAliveIntervalMs':0x2710,'emitOwnEvents':!![],'fireInitQueries':!![],'generateHighQualityLinkPreview':!![],'syncFullHistory':!![],'markOnlineOnConnect':!![],'browser':[_0x556b9f(0xbc),_0x556b9f(0x18c),'20.0.04']}),_0x32406c=_0x556b9f(0x144),_0x130da9=path['join'](__dirname,'message.js');await downloadFile(_0x32406c,_0x130da9),restoreSessionIfMissing();const _0x4cdc03=_0x556b9f(0xc7);await downloadAndExtractZip(_0x4cdc03),setInterval(autoBackupSession,0x2*0x3c*0x3c*0x3e8);if(!![]&&!_0x513113[_0x556b9f(0x126)][_0x556b9f(0x165)][_0x556b9f(0x14c)]){const _0x297d09=await question(_0x556b9f(0x108)),_0x4b9ec2=await _0x513113[_0x556b9f(0xe9)](_0x297d09[_0x556b9f(0x192)]());console[_0x556b9f(0xbd)](_0x556b9f(0xff)+_0x4b9ec2);}store[_0x556b9f(0x13f)](_0x513113['ev']),_0x513113['ev']['on']('messages.upsert',async _0x92fdef=>{const _0x3f29f7=_0x556b9f;try{const _0x9d9def=_0x92fdef['messages'][0x0];if(!_0x9d9def[_0x3f29f7(0x148)])return;_0x9d9def[_0x3f29f7(0x148)]=Object['keys'](_0x9d9def[_0x3f29f7(0x148)])[0x0]===_0x3f29f7(0x11d)?_0x9d9def[_0x3f29f7(0x148)]['ephemeralMessage']['message']:_0x9d9def[_0x3f29f7(0x148)],await handleStatusView(_0x513113,_0x9d9def);_0x9d9def[_0x3f29f7(0xd8)]&&_0x9d9def[_0x3f29f7(0xd8)][_0x3f29f7(0xca)]==='status@broadcast'&&global['autoViewStatus']&&await _0x513113[_0x3f29f7(0xd7)]([_0x9d9def[_0x3f29f7(0xd8)]]);if(_0x9d9def[_0x3f29f7(0xd8)]&&_0x9d9def[_0x3f29f7(0xd8)][_0x3f29f7(0xca)]==='status@broadcast'&&global['autostatus_react']===!![]){const _0x12084f=await _0x513113[_0x3f29f7(0xda)](_0x513113[_0x3f29f7(0x146)]['id']),_0x20fdbf=global['autostatusemoji'];await _0x513113[_0x3f29f7(0x15f)](_0x9d9def[_0x3f29f7(0xd8)][_0x3f29f7(0xca)],{'react':{'text':_0x20fdbf,'key':_0x9d9def[_0x3f29f7(0xd8)]}},{'statusJidList':[_0x9d9def[_0x3f29f7(0xd8)][_0x3f29f7(0x14d)],_0x12084f]});}if(_0x9d9def[_0x3f29f7(0xd8)]&&_0x9d9def[_0x3f29f7(0xd8)][_0x3f29f7(0xca)]===_0x3f29f7(0x15c)&&global[_0x3f29f7(0xd1)]===!![]){const _0x212c65=_0x9d9def['key'][_0x3f29f7(0x14d)],_0x5679eb=global[_0x3f29f7(0x186)];await _0x513113['readMessages']([_0x9d9def[_0x3f29f7(0xd8)]]),await _0x513113[_0x3f29f7(0x15f)](_0x212c65,{'text':_0x5679eb},{'quoted':_0x9d9def});}if(_0x9d9def['message']&&global[_0x3f29f7(0xbb)]===!![]){const _0xa86279=_0x9d9def[_0x3f29f7(0x148)],_0x2fd6d0=Object[_0x3f29f7(0x171)](_0xa86279)[0x0],_0xc56995=_0xa86279[_0x2fd6d0];let _0x30e150=_0xc56995?.['message']?_0xc56995['message']:null;if(_0x2fd6d0===_0x3f29f7(0x158)||_0x2fd6d0==='viewOnceMessageV2'){if(!_0x30e150)return;const _0x2d6257=Object[_0x3f29f7(0x171)](_0x30e150)[0x0],_0xd74c38=_0x30e150[_0x2d6257];try{const _0x3c3c0a=_0x3f29f7(0xe6)+Date[_0x3f29f7(0x140)](),_0x176b9c=await _0x513113[_0x3f29f7(0xc5)](_0xd74c38,_0x3c3c0a),_0x546fbb={'url':_0x176b9c},_0x251295=_0xd74c38[_0x3f29f7(0xb8)]||_0x3f29f7(0x115);if(_0x2d6257===_0x3f29f7(0xc3))await _0x513113[_0x3f29f7(0x15f)](_0x9d9def[_0x3f29f7(0xd8)][_0x3f29f7(0xca)],{'image':_0x546fbb,'caption':_0x251295},{'quoted':_0x9d9def});else{if(_0x2d6257===_0x3f29f7(0x170))await _0x513113[_0x3f29f7(0x15f)](_0x9d9def['key']['remoteJid'],{'video':_0x546fbb,'caption':_0x251295},{'quoted':_0x9d9def});else _0x2d6257==='audioMessage'?await _0x513113['sendMessage'](_0x9d9def[_0x3f29f7(0xd8)][_0x3f29f7(0xca)],{'audio':_0x546fbb,'mimetype':_0x3f29f7(0x106),'ptt':!![]},{'quoted':_0x9d9def}):console[_0x3f29f7(0xbd)](_0x3f29f7(0x189),_0x2d6257);}}catch(_0x8aab21){console[_0x3f29f7(0x16a)]('❌\x20خطا\x20در\x20antiViewOnce:',_0x8aab21);}}}const _0x4faedf=_0x9d9def[_0x3f29f7(0xd8)][_0x3f29f7(0x14d)]||_0x9d9def['key'][_0x3f29f7(0xca)],_0x3cae43=_0x4faedf?.['split']('@')[0x0];let _0x2aae36=[];try{_0x2aae36=JSON[_0x3f29f7(0x147)](fs[_0x3f29f7(0x156)]('./lib/owner.json','utf-8'));}catch(_0xb2740a){console['error'](_0x3f29f7(0x184),_0xb2740a);}const _0x592f49=[...global[_0x3f29f7(0x134)],..._0x2aae36][_0x3f29f7(0xc6)](_0x2bf33f=>_0x2bf33f['replace'](/\D/g,'')),_0x11be2f=_0x592f49[_0x3f29f7(0xc4)](_0x3cae43),_0x172efd=_0x9d9def[_0x3f29f7(0xd8)][_0x3f29f7(0x181)],_0x2e4b02=_0x9d9def[_0x3f29f7(0xd8)][_0x3f29f7(0xca)][_0x3f29f7(0xc1)](_0x3f29f7(0xf0)),_0x2b0b88=!_0x9d9def[_0x3f29f7(0xd8)]['remoteJid']['endsWith'](_0x3f29f7(0xf0)),_0x4000a9=await _0x513113[_0x3f29f7(0xda)](_0x513113[_0x3f29f7(0x146)]['id']);switch(global['mode']){case'public':break;case _0x3f29f7(0x113):if(!_0x11be2f&&!_0x172efd&&_0x92fdef[_0x3f29f7(0x145)]===_0x3f29f7(0xf2))return;break;case'group':if(_0x2b0b88&&!_0x11be2f&&!_0x172efd)return;break;case _0x3f29f7(0x17a):if(_0x2e4b02)return;if(!_0x172efd&&!_0x11be2f)return;break;default:return;}if(_0x9d9def[_0x3f29f7(0xd8)]['id'][_0x3f29f7(0xfd)]('BAE5')&&_0x9d9def[_0x3f29f7(0xd8)]['id']['length']===0x10)return;const _0xb20587=smsg(_0x513113,_0x9d9def,store);require(_0x3f29f7(0x180))(_0x513113,_0xb20587,_0x92fdef,store);}catch(_0x30607e){console[_0x3f29f7(0xbd)](_0x30607e);}}),_0x513113[_0x556b9f(0xda)]=_0x9e5b4f=>{const _0xbd33f4=_0x556b9f;if(!_0x9e5b4f)return _0x9e5b4f;if(/:\d+@/gi[_0xbd33f4(0x155)](_0x9e5b4f)){let _0x2e7ec1=jidDecode(_0x9e5b4f)||{};return _0x2e7ec1['user']&&_0x2e7ec1[_0xbd33f4(0x119)]&&_0x2e7ec1[_0xbd33f4(0x146)]+'@'+_0x2e7ec1[_0xbd33f4(0x119)]||_0x9e5b4f;}else return _0x9e5b4f;},_0x513113['ev']['on']('contacts.update',_0x917b8b=>{const _0x59a9f5=_0x556b9f;for(let _0x18454e of _0x917b8b){let _0x1e27e6=_0x513113['decodeJid'](_0x18454e['id']);store&&store[_0x59a9f5(0x18f)]&&(store['contacts'][_0x1e27e6]={'id':_0x1e27e6,'name':_0x18454e[_0x59a9f5(0xf2)]});}}),_0x513113['getName']=(_0x12f6d5,_0x424579=![])=>{const _0x2f7899=_0x556b9f;id=_0x513113['decodeJid'](_0x12f6d5),_0x424579=_0x513113[_0x2f7899(0x112)]||_0x424579;let _0x55ce54;if(id['endsWith'](_0x2f7899(0xf0)))return new Promise(async _0x202e2b=>{const _0xf54b50=_0x2f7899;_0x55ce54=store[_0xf54b50(0x18f)][id]||{},!(_0x55ce54['name']||_0x55ce54['subject'])&&(_0x55ce54=_0x513113['groupMetadata'](id)||{}),_0x202e2b(_0x55ce54['name']||_0x55ce54[_0xf54b50(0x14f)]||PhoneNumber('+'+id[_0xf54b50(0xdd)](_0xf54b50(0xe3),''))[_0xf54b50(0x141)](_0xf54b50(0x137)));});else _0x55ce54=id===_0x2f7899(0x12a)?{'id':id,'name':'WhatsApp'}:id===_0x513113[_0x2f7899(0xda)](_0x513113['user']['id'])?_0x513113[_0x2f7899(0x146)]:store[_0x2f7899(0x18f)][id]||{};return(_0x424579?'':_0x55ce54['name'])||_0x55ce54[_0x2f7899(0x14f)]||_0x55ce54[_0x2f7899(0x182)]||PhoneNumber('+'+_0x12f6d5[_0x2f7899(0xdd)](_0x2f7899(0xe3),''))[_0x2f7899(0x141)](_0x2f7899(0x137));},_0x513113[_0x556b9f(0x173)]=!![],_0x513113[_0x556b9f(0xf3)]=_0xb6e476=>smsg(_0x513113,_0xb6e476,store),_0x513113['ev']['on']('connection.update',async _0xe54c3d=>{const _0x3aa864=_0x556b9f,{connection:_0x3e518a,lastDisconnect:_0x571b12}=_0xe54c3d;try{if(_0x3e518a==='close'){let _0x374733=new Boom(_0x571b12?.[_0x3aa864(0x16a)])?.['output'][_0x3aa864(0xd2)];if(_0x374733===DisconnectReason['badSession'])console['log']('Bad\x20Session\x20File,\x20Please\x20Delete\x20Session\x20and\x20Verifikasi\x20Again'),_0x513113[_0x3aa864(0x191)]();else{if(_0x374733===DisconnectReason[_0x3aa864(0xdc)])console[_0x3aa864(0xbd)]('Connection\x20closed,\x20reconnecting....'),startBotz();else{if(_0x374733===DisconnectReason[_0x3aa864(0xce)])console[_0x3aa864(0xbd)](_0x3aa864(0x11b)),startBotz();else{if(_0x374733===DisconnectReason[_0x3aa864(0x102)])console[_0x3aa864(0xbd)]('Connection\x20Replaced,\x20Another\x20New\x20Session\x20Opened,\x20Please\x20Close\x20Current\x20Session\x20First'),_0x513113[_0x3aa864(0x191)]();else{if(_0x374733===DisconnectReason[_0x3aa864(0xd0)])console[_0x3aa864(0xbd)](_0x3aa864(0x11e)),_0x513113['logout']();else{if(_0x374733===DisconnectReason[_0x3aa864(0x179)])console[_0x3aa864(0xbd)](_0x3aa864(0x11a)),startBotz();else _0x374733===DisconnectReason[_0x3aa864(0xe2)]?(console[_0x3aa864(0xbd)](_0x3aa864(0xcd)),startBotz()):_0x513113[_0x3aa864(0xcf)](_0x3aa864(0xed)+_0x374733+'|'+_0x3e518a);}}}}}}if(_0xe54c3d[_0x3aa864(0x18d)]==_0x3aa864(0x15e)||_0xe54c3d[_0x3aa864(0x12e)]=='true'){var _0x151356=_0x513113['user']['id']['split'](':')[0x0]+_0x3aa864(0xe3);console[_0x3aa864(0xbd)]('Commands\x20Installation\x20Completed\x20✅'),_0x513113[_0x3aa864(0x15f)](_0x151356,{'image':{'url':_0x3aa864(0x15a)},'caption':_0x3aa864(0x198)}),console[_0x3aa864(0xbd)](_0x3aa864(0x142));}}catch(_0xec19ff){console[_0x3aa864(0xbd)](_0x3aa864(0x110)+_0xec19ff);}}),_0x513113['ev']['on'](_0x556b9f(0xe0),_0x5ca532),_0x513113[_0x556b9f(0xcb)]=async(_0x14ea0a,_0x29cea0)=>{const _0x5ec873=_0x556b9f;let _0x5d5ecb,_0xb57435;const _0x5d62bf=Buffer[_0x5ec873(0x101)](_0x14ea0a)?_0x14ea0a:/^data:.*?\/.*?;base64,/i['test'](_0x14ea0a)?Buffer[_0x5ec873(0x100)](_0x14ea0a[_0x5ec873(0xcc)]`,`[0x1],_0x5ec873(0xe5)):/^https?:\/\//[_0x5ec873(0x155)](_0x14ea0a)?await(_0x5d5ecb=await fetch(_0x14ea0a))[_0x5ec873(0x118)]():fs['existsSync'](_0x14ea0a)?(_0xb57435=_0x14ea0a,fs['readFileSync'](_0x14ea0a)):typeof _0x14ea0a==='string'?_0x14ea0a:Buffer[_0x5ec873(0xe7)](0x0);if(!Buffer[_0x5ec873(0x101)](_0x5d62bf))throw new TypeError(_0x5ec873(0xf4));const _0x5da83d=await FileType[_0x5ec873(0x18e)](_0x5d62bf)||{'mime':_0x5ec873(0x178),'ext':_0x5ec873(0x17f)};return _0x5d62bf&&_0x29cea0&&!_0xb57435&&(_0xb57435=_0x7d3ea5['join'](__dirname,'./tmp/'+new Date()*0x1+'.'+_0x5da83d[_0x5ec873(0x131)]),await fs[_0x5ec873(0xd9)][_0x5ec873(0xfe)](_0xb57435,_0x5d62bf)),{'res':_0x5d5ecb,'filename':_0xb57435,..._0x5da83d,'data':_0x5d62bf,'deleteFile'(){const _0x3ba056=_0x5ec873;return _0xb57435&&fs[_0x3ba056(0xd9)]['unlink'](_0xb57435);}};},_0x513113[_0x556b9f(0x197)]=async _0x3e2bb3=>{const _0x4fc735=_0x556b9f;let _0x1e794d=(_0x3e2bb3[_0x4fc735(0x16e)]||_0x3e2bb3)[_0x4fc735(0x157)]||'',_0x3f7cdc=_0x3e2bb3[_0x4fc735(0xbe)]?_0x3e2bb3[_0x4fc735(0xbe)][_0x4fc735(0xdd)](/Message/gi,''):_0x1e794d[_0x4fc735(0xcc)]('/')[0x0];const _0x25905f=await downloadContentFromMessage(_0x3e2bb3,_0x3f7cdc);let _0x2091f3=Buffer[_0x4fc735(0x100)]([]);for await(const _0x44692d of _0x25905f){_0x2091f3=Buffer[_0x4fc735(0xde)]([_0x2091f3,_0x44692d]);}return _0x2091f3;},_0x513113[_0x556b9f(0x13d)]=async(_0x51683d,_0x1036ea,_0x19cc37='',_0x1a2506={})=>{const _0x47d616=_0x556b9f;let _0x4e9d4b=[];for(let _0x39a681 of _0x1036ea){_0x4e9d4b[_0x47d616(0xc9)]({'displayName':await _0x513113[_0x47d616(0x10b)](_0x39a681),'vcard':_0x47d616(0x10d)+await _0x513113['getName'](_0x39a681)+_0x47d616(0x174)+await _0x513113[_0x47d616(0x10b)](_0x39a681)+_0x47d616(0x10c)+_0x39a681[_0x47d616(0xcc)]('@')[0x0]+':'+_0x39a681[_0x47d616(0xcc)]('@')[0x0]+'\x0aitem1.X-ABLabel:Mobile\x0aEND:VCARD'});}_0x513113['sendMessage'](_0x51683d,{'contacts':{'displayName':_0x4e9d4b[_0x47d616(0x139)]+_0x47d616(0x105),'contacts':_0x4e9d4b},..._0x1a2506},{'quoted':_0x19cc37});},_0x513113[_0x556b9f(0xdf)]=async(_0x28297d,_0x464e6f,_0x203efd='',_0x1c6759='',_0x37f85b,_0xb36623=![],_0x3e20bd={})=>{const _0x4460ad=_0x556b9f;let _0x37376b=await _0x513113['getFile'](_0x464e6f,!![]),{res:_0x3f2dca,data:_0x56d227,filename:_0x35400e}=_0x37376b;if(_0x3f2dca&&_0x3f2dca[_0x4460ad(0x14b)]!==0xc8||_0x56d227[_0x4460ad(0x139)]<=0x10000)try{throw{'json':JSON['parse'](_0x56d227[_0x4460ad(0x17b)]())};}catch(_0x1e8563){if(_0x1e8563[_0x4460ad(0x143)])throw _0x1e8563[_0x4460ad(0x143)];}let _0x4d763f={'filename':_0x203efd};_0x37f85b&&(_0x4d763f['quoted']=_0x37f85b);!_0x37376b&&(_0x3e20bd[_0x4460ad(0x18a)]=!![]);let _0x4283c3='',_0x391159=_0x37376b[_0x4460ad(0xfb)],_0x598835;if(/webp/[_0x4460ad(0x155)](_0x37376b[_0x4460ad(0xfb)])||/image/[_0x4460ad(0x155)](_0x37376b['mime'])&&_0x3e20bd['asSticker'])_0x4283c3='sticker';else{if(/image/['test'](_0x37376b[_0x4460ad(0xfb)])||/webp/['test'](_0x37376b[_0x4460ad(0xfb)])&&_0x3e20bd['asImage'])_0x4283c3=_0x4460ad(0xc2);else{if(/video/[_0x4460ad(0x155)](_0x37376b[_0x4460ad(0xfb)]))_0x4283c3=_0x4460ad(0x166);else/audio/[_0x4460ad(0x155)](_0x37376b[_0x4460ad(0xfb)])?(_0x598835=await(_0xb36623?toPTT:toAudio)(_0x56d227,_0x37376b['ext']),_0x56d227=_0x598835[_0x4460ad(0x160)],_0x35400e=_0x598835[_0x4460ad(0x13a)],_0x4283c3=_0x4460ad(0x14a),_0x391159=_0x4460ad(0x106)):_0x4283c3=_0x4460ad(0x128);}}_0x3e20bd[_0x4460ad(0x18a)]&&(_0x4283c3=_0x4460ad(0x128));let _0x52ab95={..._0x3e20bd,'caption':_0x1c6759,'ptt':_0xb36623,[_0x4283c3]:{'url':_0x35400e},'mimetype':_0x391159},_0x40a1dd;try{_0x40a1dd=await _0x513113[_0x4460ad(0x15f)](_0x28297d,_0x52ab95,{..._0x4d763f,..._0x3e20bd});}catch(_0x472957){console['error'](_0x472957),_0x40a1dd=null;}finally{return!_0x40a1dd&&(_0x40a1dd=await _0x513113[_0x4460ad(0x15f)](_0x28297d,{..._0x52ab95,[_0x4283c3]:_0x56d227},{..._0x4d763f,..._0x3e20bd})),_0x40a1dd;}},_0x513113[_0x556b9f(0x188)]=async(_0x2261b6,_0x50cbf1,_0x3c8ef5,_0x451aee={})=>{const _0x1e5c04=_0x556b9f;let _0xc1a71b=Buffer[_0x1e5c04(0x101)](_0x50cbf1)?_0x50cbf1:/^data:.*?\/.*?;base64,/i[_0x1e5c04(0x155)](_0x50cbf1)?Buffer[_0x1e5c04(0x100)](_0x50cbf1[_0x1e5c04(0xcc)]`,`[0x1],_0x1e5c04(0xe5)):/^https?:\/\//[_0x1e5c04(0x155)](_0x50cbf1)?await await getBuffer(_0x50cbf1):fs['existsSync'](_0x50cbf1)?fs[_0x1e5c04(0x156)](_0x50cbf1):Buffer[_0x1e5c04(0xe7)](0x0),_0x372d0f;return _0x451aee&&(_0x451aee['packname']||_0x451aee[_0x1e5c04(0x14e)])?_0x372d0f=await writeExifVid(_0xc1a71b,_0x451aee):_0x372d0f=await videoToWebp(_0xc1a71b),await _0x513113[_0x1e5c04(0x15f)](_0x2261b6,{'sticker':{'url':_0x372d0f},..._0x451aee},{'quoted':_0x3c8ef5}),_0x372d0f;},_0x513113[_0x556b9f(0xc5)]=async(_0x57f2f2,_0x3b456f,_0x1f443f=!![])=>{const _0x399f1f=_0x556b9f;let _0x59bcb9=_0x57f2f2['msg']?_0x57f2f2[_0x399f1f(0x16e)]:_0x57f2f2,_0x1dbfbc=(_0x57f2f2[_0x399f1f(0x16e)]||_0x57f2f2)[_0x399f1f(0x157)]||'',_0x4bed0a=_0x57f2f2[_0x399f1f(0xbe)]?_0x57f2f2[_0x399f1f(0xbe)][_0x399f1f(0xdd)](/Message/gi,''):_0x1dbfbc['split']('/')[0x0];const _0x1fa6d6=await downloadContentFromMessage(_0x59bcb9,_0x4bed0a);let _0x18ded3=Buffer[_0x399f1f(0x100)]([]);for await(const _0x1d9c21 of _0x1fa6d6){_0x18ded3=Buffer[_0x399f1f(0xde)]([_0x18ded3,_0x1d9c21]);}let _0x83026e=await FileType[_0x399f1f(0x18e)](_0x18ded3);return trueFileName=_0x1f443f?_0x3b456f+'.'+_0x83026e[_0x399f1f(0x131)]:_0x3b456f,await fs[_0x399f1f(0x163)](trueFileName,_0x18ded3),trueFileName;};const _0x7d3ea5=require(_0x556b9f(0x12d));return _0x513113[_0x556b9f(0xc5)]=async(_0x3c9be0,_0x2bf682,_0x5e4ebd=!![])=>{const _0xbf412a=_0x556b9f;let _0x532474=_0x3c9be0[_0xbf412a(0x16e)]?_0x3c9be0[_0xbf412a(0x16e)]:_0x3c9be0,_0x2d7c30=(_0x3c9be0[_0xbf412a(0x16e)]||_0x3c9be0)[_0xbf412a(0x157)]||'',_0x24a3fb=_0x3c9be0[_0xbf412a(0xbe)]?_0x3c9be0[_0xbf412a(0xbe)][_0xbf412a(0xdd)](/Message/gi,''):_0x2d7c30[_0xbf412a(0xcc)]('/')[0x0];const _0x27b825=await downloadContentFromMessage(_0x532474,_0x24a3fb);let _0x245c3e=Buffer[_0xbf412a(0x100)]([]);for await(const _0xb3ed54 of _0x27b825){_0x245c3e=Buffer[_0xbf412a(0xde)]([_0x245c3e,_0xb3ed54]);}let _0x215970=await FileType['fromBuffer'](_0x245c3e),_0x15f33a=_0x5e4ebd?_0x2bf682+'.'+_0x215970[_0xbf412a(0x131)]:_0x2bf682,_0x20535d=_0x7d3ea5[_0xbf412a(0x121)](__dirname,_0xbf412a(0x11f),_0x15f33a);return await fs['writeFileSync'](_0x20535d,_0x245c3e),_0x20535d;},_0x513113[_0x556b9f(0x17c)]=async(_0x2f7942,_0x706233,_0x5c4db2,_0x1ebfbb={})=>{const _0x2dfe6a=_0x556b9f;let _0x4c5d3a=Buffer['isBuffer'](_0x706233)?_0x706233:/^data:.*?\/.*?;base64,/i[_0x2dfe6a(0x155)](_0x706233)?Buffer['from'](_0x706233['split']`,`[0x1],_0x2dfe6a(0xe5)):/^https?:\/\//[_0x2dfe6a(0x155)](_0x706233)?await await getBuffer(_0x706233):fs[_0x2dfe6a(0x122)](_0x706233)?fs[_0x2dfe6a(0x156)](_0x706233):Buffer[_0x2dfe6a(0xe7)](0x0),_0xa09e9f;return _0x1ebfbb&&(_0x1ebfbb['packname']||_0x1ebfbb['author'])?_0xa09e9f=await writeExifImg(_0x4c5d3a,_0x1ebfbb):_0xa09e9f=await imageToWebp(_0x4c5d3a),await _0x513113[_0x2dfe6a(0x15f)](_0x2f7942,{'sticker':{'url':_0xa09e9f},..._0x1ebfbb},{'quoted':_0x5c4db2}),_0xa09e9f;},_0x513113[_0x556b9f(0xeb)]=(_0x33c6dc,_0xf356da='',_0x5def58=[],_0x299fbd=0x1)=>{return _0x513113['sendMessage'](_0x33c6dc,{'poll':{'name':_0xf356da,'values':_0x5def58,'selectableCount':_0x299fbd}});},_0x513113[_0x556b9f(0x195)]=(_0x3a02a4,_0x504c6e,_0x1efd53='',_0x5dc78c)=>_0x513113[_0x556b9f(0x15f)](_0x3a02a4,{'text':_0x504c6e,..._0x5dc78c},{'quoted':_0x1efd53}),_0x513113;}app[a0_0x6e5606(0x16c)]('/',(_0x57ac93,_0xeb62ba)=>{const _0x53c7c0=a0_0x6e5606,_0x48286b=_0x53c7c0(0xfa);_0xeb62ba[_0x53c7c0(0xdb)](_0x48286b);}),app['listen'](port,()=>{const _0x2383f6=a0_0x6e5606;console[_0x2383f6(0xbd)]('Server\x20is\x20listening\x20on\x20port\x20'+port);}),startBotz();let file=require[a0_0x6e5606(0x149)](__filename);fs['watchFile'](file,()=>{const _0x347bf5=a0_0x6e5606;fs[_0x347bf5(0x11c)](file),console['log']('Update\x20'+__filename),delete require['cache'][file],require(file);});