-
Notifications
You must be signed in to change notification settings - Fork 220
/
index.js
1 lines (1 loc) · 19.4 KB
/
index.js
1
function _0x6ecd(){const _0x54711c=['tmp','DATABASE','connection','serializeM','slice','Update\x20','.bin','Chrome','sticker','notify','readFileSync','sendPoll','stdout','restartRequired','resolve','audio/ogg;\x20codecs=opus','Ubuntu','\x20Contact','log','trim','length','Hello\x20World!','Folder\x20\x27','1631584cHURkC','error','815692CatMaO','image','creds.update','yargs/yargs','\x0aitem1.TEL;waid=','sendImageAsSticker','replace','@s.whatsapp.net','5yewlpt','authState','downloadAndSaveMediaMessage','path','international','7643421pajAmH','ephemeralMessage','4527219GOIYys','contacts.update','chain','getName','message','fromBuffer','mime','ext','store','split','1FJRCnV','2466222jgzepd','sendText','4925524NiqUFa','\x27\x20successfully\x20created','parse','close','decodeJid','contacts','alloc','getFile','asImage','verifiedName','toString','true','@adiwajshing/baileys','exitProcess','cache','loadDatabase','mtype','startsWith','Restart\x20Required,\x20Restarting...','node-cache','endsWith','\x27\x20already\x20available.','@hapi/boom','subject','\x0aFN:','./config','msg','from','readline','timedOut','getNumber','author','[Successfully\x20connected\x20to\x20MongoDB\x20database]','write','key','buffer','server','status@broadcast','./tmp/','public','end','downloadMediaMessage','unwatchFile','session','receivedPendingNotifications','data','Error\x20Di\x20Connection.update\x20','sendVideoAsSticker','silent','WhatsApp','Connection\x20closed,\x20reconnecting....','./src/database.json','audio','join','creds','writeFile','child','READ','loggedOut','./lib/converter','concat','document','lolcatjs','file-type','application/octet-stream','promises','Pairing\x20code:\x20','requestPairingCode','connectionReplaced','asSticker','opts','8400340xZBdak','quoted','\x0aitem1.X-ABLabel:Mobile\x0aEND:VCARD','pino','statusCode','keys','connectionClosed','Bad\x20Session\x20File,\x20Please\x20Delete\x20Session\x20and\x20Verifikasi\x20Again','./lib/mongoDB','json','registered','groupMetadata','read','existsSync','open','unlink','user','argv','watchFile','isBuffer','mimetype','string','test','Result\x20is\x20not\x20a\x20buffer','sendFile','21hzuehs','@g.us','sendMessage','stringify','question','Connect,\x20welcome\x20owner!','uncaughtException','20.0.04','logout','Device\x20Logged\x20Out,\x20Please\x20Verifikasi\x20Again\x20And\x20Run.','base64','fromString','./lib/lowdb','awesome-phonenumber','writeFileSync','messages.upsert','name'];_0x6ecd=function(){return _0x54711c;};return _0x6ecd();}const _0x19f338=_0x1628;(function(_0x3d82d9,_0x1c3359){const _0x55141f=_0x1628,_0x1fe8ba=_0x3d82d9();while(!![]){try{const _0x373914=parseInt(_0x55141f(0x10b))/0x1*(-parseInt(_0x55141f(0xf2))/0x2)+-parseInt(_0x55141f(0x101))/0x3+-parseInt(_0x55141f(0x10e))/0x4*(-parseInt(_0x55141f(0xfa))/0x5)+parseInt(_0x55141f(0x10c))/0x6*(parseInt(_0x55141f(0x16e))/0x7)+parseInt(_0x55141f(0xf0))/0x8+parseInt(_0x55141f(0xff))/0x9+-parseInt(_0x55141f(0x155))/0xa;if(_0x373914===_0x1c3359)break;else _0x1fe8ba['push'](_0x1fe8ba['shift']());}catch(_0x30424e){_0x1fe8ba['push'](_0x1fe8ba['shift']());}}}(_0x6ecd,0xb9bb4));function hi(){const _0x1f5753=_0x1628;console[_0x1f5753(0x191)](_0x1f5753(0xee));}hi(),require(_0x19f338(0x127));const {default:makeWASocket,useMultiFileAuthState,DisconnectReason,fetchLatestBaileysVersion,makeInMemoryStore,jidDecode,proto,getContentType,downloadContentFromMessage,fetchLatestWaWebVersion}=require(_0x19f338(0x11a)),fs=require('fs'),pino=require(_0x19f338(0x158)),lolcatjs=require(_0x19f338(0x14c)),path=require(_0x19f338(0xfd)),NodeCache=require(_0x19f338(0x121)),msgRetryCounterCache=new NodeCache(),fetch=require('node-fetch'),FileType=require(_0x19f338(0x14d)),_=require('lodash'),{Boom}=require(_0x19f338(0x124)),PhoneNumber=require(_0x19f338(0x17b)),readline=require(_0x19f338(0x12a)),{smsg,color,getBuffer}=require('./lib/myfunc'),{imageToWebp,videoToWebp,writeExifImg,writeExifVid}=require('./lib/exif'),{toAudio,toPTT,toVideo}=require(_0x19f338(0x149)),yargs=require(_0x19f338(0xf5)),store=makeInMemoryStore({'logger':pino()[_0x19f338(0x146)]({'level':_0x19f338(0x13e),'stream':_0x19f338(0x109)})});global[_0x19f338(0x154)]=new Object(yargs(process['argv']['slice'](0x2))[_0x19f338(0x11b)](![])[_0x19f338(0x110)]());const low=require(_0x19f338(0x17a)),{Low,JSONFile}=low,mongoDB=require(_0x19f338(0x15d)),opts=yargs(process[_0x19f338(0x166)][_0x19f338(0x183)](0x2))[_0x19f338(0x11b)](![])[_0x19f338(0x110)](),dbPath=_0x19f338(0x141);let db;function _0x1628(_0x19d20a,_0x1a5d41){const _0x1628af=_0x6ecd();return _0x1628=function(_0x486eb2,_0x4be59c){_0x486eb2=_0x486eb2-0xed;let _0x4157d9=_0x1628af[_0x486eb2];return _0x4157d9;},_0x1628(_0x19d20a,_0x1a5d41);}urldb!==''?(db=new mongoDB(urldb),lolcatjs[_0x19f338(0x179)](_0x19f338(0x12e))):(db=new JSONFile(dbPath),lolcatjs[_0x19f338(0x179)]('[Successfully\x20connected\x20to\x20Local\x20database]'));global['db']=new Low(db),global[_0x19f338(0x180)]=global['db'],global[_0x19f338(0x11d)]=async function loadDatabase(){const _0x43a440=_0x19f338;if(global['db'][_0x43a440(0x147)])return new Promise(_0x243e72=>setInterval(function(){const _0x49833e=_0x43a440;!global['db'][_0x49833e(0x147)]?(clearInterval(this),_0x243e72(global['db'][_0x49833e(0x13b)]==null?global[_0x49833e(0x11d)]():global['db']['data'])):null;},0x1*0x3e8));if(global['db'][_0x43a440(0x13b)]!==null)return;global['db'][_0x43a440(0x147)]=!![],await global['db'][_0x43a440(0x161)](),global['db'][_0x43a440(0x147)]=![],global['db'][_0x43a440(0x13b)]={'users':{},'chats':{},'database':{},'game':{},'settings':{},'others':{},'sticker':{},...global['db'][_0x43a440(0x13b)]||{}},global['db'][_0x43a440(0x103)]=_[_0x43a440(0x103)](global['db'][_0x43a440(0x13b)]);},global['loadDatabase'](),process['on'](_0x19f338(0x174),console['error']);global['db']&&urldb!==''&&setInterval(async()=>{const _0xe2ca6c=_0x19f338;if(global['db']['data'])await global['db'][_0xe2ca6c(0x12f)]();},0x1e*0x3e8);function createTmpFolder(){const _0x1eedff=_0x19f338,_0x67dbac='tmp',_0x5d1e61=path['join'](__dirname,_0x67dbac);!fs[_0x1eedff(0x162)](_0x5d1e61)?(fs['mkdirSync'](_0x5d1e61),lolcatjs['fromString'](_0x1eedff(0xef)+_0x67dbac+_0x1eedff(0x10f))):lolcatjs[_0x1eedff(0x179)]('Folder\x20\x27'+_0x67dbac+_0x1eedff(0x123));}createTmpFolder();const usePairingCode=!![],question=_0x9786be=>{const _0x51a1e7=_0x19f338,_0x193b48=readline['createInterface']({'input':process['stdin'],'output':process[_0x51a1e7(0x18b)]});return new Promise(_0x3f7c13=>{const _0x2820c1=_0x51a1e7;_0x193b48[_0x2820c1(0x172)](_0x9786be,_0x3f7c13);});};async function startBotz(){const _0x26a738=_0x19f338,{state:_0x17d03f,saveCreds:_0x12b0d8}=await useMultiFileAuthState(_0x26a738(0x139)),_0x8d815f=makeWASocket({'logger':pino({'level':_0x26a738(0x13e)}),'printQRInTerminal':!usePairingCode,'auth':_0x17d03f,'msgRetryCounterCache':msgRetryCounterCache,'connectTimeoutMs':0xea60,'defaultQueryTimeoutMs':0x0,'keepAliveIntervalMs':0x2710,'emitOwnEvents':!![],'fireInitQueries':!![],'generateHighQualityLinkPreview':!![],'syncFullHistory':!![],'markOnlineOnConnect':!![],'browser':[_0x26a738(0x18f),_0x26a738(0x186),_0x26a738(0x175)]});if(usePairingCode&&!_0x8d815f[_0x26a738(0xfb)][_0x26a738(0x144)][_0x26a738(0x15f)]){const _0x25e38e=await question('Please\x20Enter\x20Your\x20Phone\x20Number\x0aExample\x202347043759577\x20:\x0a'),_0x21baff=await _0x8d815f[_0x26a738(0x151)](_0x25e38e[_0x26a738(0x192)]());console[_0x26a738(0x191)](_0x26a738(0x150)+_0x21baff);}store['bind'](_0x8d815f['ev']),_0x8d815f['ev']['on'](_0x26a738(0x17d),async _0x2cded0=>{const _0xbc18f0=_0x26a738;try{const _0x23a95d=_0x2cded0['messages'][0x0];if(!_0x23a95d['message'])return;_0x23a95d[_0xbc18f0(0x105)]=Object[_0xbc18f0(0x15a)](_0x23a95d[_0xbc18f0(0x105)])[0x0]===_0xbc18f0(0x100)?_0x23a95d[_0xbc18f0(0x105)][_0xbc18f0(0x100)][_0xbc18f0(0x105)]:_0x23a95d[_0xbc18f0(0x105)];_0x23a95d[_0xbc18f0(0x130)]&&_0x23a95d[_0xbc18f0(0x130)]['remoteJid']===_0xbc18f0(0x133)&&await _0x8d815f['readMessages']([_0x23a95d[_0xbc18f0(0x130)]]);if(!_0x8d815f[_0xbc18f0(0x135)]&&!_0x23a95d[_0xbc18f0(0x130)]['fromMe']&&_0x2cded0['type']===_0xbc18f0(0x188))return;if(_0x23a95d[_0xbc18f0(0x130)]['id'][_0xbc18f0(0x11f)]('BAE5')&&_0x23a95d[_0xbc18f0(0x130)]['id'][_0xbc18f0(0xed)]===0x10)return;const _0x5a9e61=smsg(_0x8d815f,_0x23a95d,store);require('./message')(_0x8d815f,_0x5a9e61,_0x2cded0,store);}catch(_0x366be9){console[_0xbc18f0(0x191)](_0x366be9);}}),_0x8d815f[_0x26a738(0x112)]=_0x233e8a=>{const _0x40c488=_0x26a738;if(!_0x233e8a)return _0x233e8a;if(/:\d+@/gi['test'](_0x233e8a)){let _0x2c9665=jidDecode(_0x233e8a)||{};return _0x2c9665[_0x40c488(0x165)]&&_0x2c9665[_0x40c488(0x132)]&&_0x2c9665['user']+'@'+_0x2c9665[_0x40c488(0x132)]||_0x233e8a;}else return _0x233e8a;},_0x8d815f['ev']['on'](_0x26a738(0x102),_0x3ca3bb=>{const _0x30d3e2=_0x26a738;for(let _0x983491 of _0x3ca3bb){let _0x4bb407=_0x8d815f[_0x30d3e2(0x112)](_0x983491['id']);if(store&&store['contacts'])store[_0x30d3e2(0x113)][_0x4bb407]={'id':_0x4bb407,'name':_0x983491[_0x30d3e2(0x188)]};}}),_0x8d815f[_0x26a738(0x104)]=(_0x3c4648,_0xcc1924=![])=>{const _0x4a4f1d=_0x26a738;id=_0x8d815f['decodeJid'](_0x3c4648),_0xcc1924=_0x8d815f['withoutContact']||_0xcc1924;let _0x151306;if(id[_0x4a4f1d(0x122)](_0x4a4f1d(0x16f)))return new Promise(async _0x55e63b=>{const _0x2bf787=_0x4a4f1d;_0x151306=store[_0x2bf787(0x113)][id]||{};if(!(_0x151306[_0x2bf787(0x17e)]||_0x151306[_0x2bf787(0x125)]))_0x151306=_0x8d815f[_0x2bf787(0x160)](id)||{};_0x55e63b(_0x151306[_0x2bf787(0x17e)]||_0x151306[_0x2bf787(0x125)]||PhoneNumber('+'+id[_0x2bf787(0xf8)](_0x2bf787(0xf9),''))['getNumber'](_0x2bf787(0xfe)));});else _0x151306=id==='0@s.whatsapp.net'?{'id':id,'name':_0x4a4f1d(0x13f)}:id===_0x8d815f[_0x4a4f1d(0x112)](_0x8d815f[_0x4a4f1d(0x165)]['id'])?_0x8d815f['user']:store[_0x4a4f1d(0x113)][id]||{};return(_0xcc1924?'':_0x151306[_0x4a4f1d(0x17e)])||_0x151306[_0x4a4f1d(0x125)]||_0x151306[_0x4a4f1d(0x117)]||PhoneNumber('+'+_0x3c4648[_0x4a4f1d(0xf8)](_0x4a4f1d(0xf9),''))[_0x4a4f1d(0x12c)](_0x4a4f1d(0xfe));},_0x8d815f[_0x26a738(0x135)]=!![],_0x8d815f[_0x26a738(0x182)]=_0x24c3ee=>smsg(_0x8d815f,_0x24c3ee,store),_0x8d815f['ev']['on']('connection.update',async _0x45cee3=>{const _0x284b6f=_0x26a738,{connection:_0x5cb89c,lastDisconnect:_0x412ce2}=_0x45cee3;try{if(_0x5cb89c===_0x284b6f(0x111)){let _0x457807=new Boom(_0x412ce2?.[_0x284b6f(0xf1)])?.['output'][_0x284b6f(0x159)];if(_0x457807===DisconnectReason['badSession'])console[_0x284b6f(0x191)](_0x284b6f(0x15c)),_0x8d815f['logout']();else{if(_0x457807===DisconnectReason[_0x284b6f(0x15b)])console[_0x284b6f(0x191)](_0x284b6f(0x140)),startBotz();else{if(_0x457807===DisconnectReason['connectionLost'])console[_0x284b6f(0x191)]('Connection\x20Lost\x20from\x20Server,\x20reconnecting...'),startBotz();else{if(_0x457807===DisconnectReason[_0x284b6f(0x152)])console[_0x284b6f(0x191)]('Connection\x20Replaced,\x20Another\x20New\x20Session\x20Opened,\x20Please\x20Close\x20Current\x20Session\x20First'),_0x8d815f['logout']();else{if(_0x457807===DisconnectReason[_0x284b6f(0x148)])console[_0x284b6f(0x191)](_0x284b6f(0x177)),_0x8d815f[_0x284b6f(0x176)]();else{if(_0x457807===DisconnectReason[_0x284b6f(0x18c)])console[_0x284b6f(0x191)](_0x284b6f(0x120)),startBotz();else{if(_0x457807===DisconnectReason[_0x284b6f(0x12b)])console[_0x284b6f(0x191)]('Connection\x20TimedOut,\x20Reconnecting...'),startBotz();else _0x8d815f[_0x284b6f(0x136)]('Unknown\x20DisconnectReason:\x20'+_0x457807+'|'+_0x5cb89c);}}}}}}}(_0x45cee3[_0x284b6f(0x181)]==_0x284b6f(0x163)||_0x45cee3[_0x284b6f(0x13a)]==_0x284b6f(0x119))&&(lolcatjs[_0x284b6f(0x179)](_0x284b6f(0x173)),lolcatjs['fromString']('Connected\x20to\x20=\x20'+JSON[_0x284b6f(0x171)](_0x8d815f[_0x284b6f(0x165)],null,0x2)));}catch(_0x20cf9d){console[_0x284b6f(0x191)](_0x284b6f(0x13c)+_0x20cf9d);}}),_0x8d815f['ev']['on'](_0x26a738(0xf4),_0x12b0d8),_0x8d815f[_0x26a738(0x115)]=async(_0xca2d1e,_0x1dceb)=>{const _0x2c3c89=_0x26a738;let _0x504999,_0xe0fe3f;const _0x30665d=Buffer[_0x2c3c89(0x168)](_0xca2d1e)?_0xca2d1e:/^data:.*?\/.*?;base64,/i['test'](_0xca2d1e)?Buffer['from'](_0xca2d1e[_0x2c3c89(0x10a)]`,`[0x1],_0x2c3c89(0x178)):/^https?:\/\//[_0x2c3c89(0x16b)](_0xca2d1e)?await(_0x504999=await fetch(_0xca2d1e))[_0x2c3c89(0x131)]():fs[_0x2c3c89(0x162)](_0xca2d1e)?(_0xe0fe3f=_0xca2d1e,fs[_0x2c3c89(0x189)](_0xca2d1e)):typeof _0xca2d1e===_0x2c3c89(0x16a)?_0xca2d1e:Buffer[_0x2c3c89(0x114)](0x0);if(!Buffer[_0x2c3c89(0x168)](_0x30665d))throw new TypeError(_0x2c3c89(0x16c));const _0x2c9861=await FileType[_0x2c3c89(0x106)](_0x30665d)||{'mime':_0x2c3c89(0x14e),'ext':_0x2c3c89(0x185)};if(_0x30665d&&_0x1dceb&&!_0xe0fe3f)_0xe0fe3f=_0x1bf6c3[_0x2c3c89(0x143)](__dirname,_0x2c3c89(0x134)+new Date()*0x1+'.'+_0x2c9861['ext']),await fs[_0x2c3c89(0x14f)][_0x2c3c89(0x145)](_0xe0fe3f,_0x30665d);return{'res':_0x504999,'filename':_0xe0fe3f,..._0x2c9861,'data':_0x30665d,'deleteFile'(){const _0x2c4837=_0x2c3c89;return _0xe0fe3f&&fs['promises'][_0x2c4837(0x164)](_0xe0fe3f);}};},_0x8d815f[_0x26a738(0x137)]=async _0x238e4a=>{const _0x30238f=_0x26a738;let _0x34e021=(_0x238e4a[_0x30238f(0x128)]||_0x238e4a)['mimetype']||'',_0x129a48=_0x238e4a['mtype']?_0x238e4a['mtype']['replace'](/Message/gi,''):_0x34e021['split']('/')[0x0];const _0x165b09=await downloadContentFromMessage(_0x238e4a,_0x129a48);let _0x457b81=Buffer['from']([]);for await(const _0x213c39 of _0x165b09){_0x457b81=Buffer['concat']([_0x457b81,_0x213c39]);}return _0x457b81;},_0x8d815f['sendContact']=async(_0x18763f,_0x19db03,_0x4b9d39='',_0xce3bd5={})=>{const _0x3e6751=_0x26a738;let _0x3ac3fd=[];for(let _0x2d1e5a of _0x19db03){_0x3ac3fd['push']({'displayName':await _0x8d815f[_0x3e6751(0x104)](_0x2d1e5a),'vcard':'BEGIN:VCARD\x0aVERSION:3.0\x0aN:'+await _0x8d815f[_0x3e6751(0x104)](_0x2d1e5a)+_0x3e6751(0x126)+await _0x8d815f['getName'](_0x2d1e5a)+_0x3e6751(0xf6)+_0x2d1e5a['split']('@')[0x0]+':'+_0x2d1e5a[_0x3e6751(0x10a)]('@')[0x0]+_0x3e6751(0x157)});}_0x8d815f[_0x3e6751(0x170)](_0x18763f,{'contacts':{'displayName':_0x3ac3fd[_0x3e6751(0xed)]+_0x3e6751(0x190),'contacts':_0x3ac3fd},..._0xce3bd5},{'quoted':_0x4b9d39});},_0x8d815f[_0x26a738(0x16d)]=async(_0x5ea906,_0x141cea,_0x5b4440='',_0x4475da='',_0x280909,_0x3405b2=![],_0x2c1fe4={})=>{const _0x2f8608=_0x26a738;let _0x51462e=await _0x8d815f['getFile'](_0x141cea,!![]),{res:_0x1e69df,data:_0x332fe8,filename:_0x1c748f}=_0x51462e;if(_0x1e69df&&_0x1e69df['status']!==0xc8||_0x332fe8[_0x2f8608(0xed)]<=0x10000)try{throw{'json':JSON[_0x2f8608(0x110)](_0x332fe8[_0x2f8608(0x118)]())};}catch(_0x4e37fe){if(_0x4e37fe[_0x2f8608(0x15e)])throw _0x4e37fe[_0x2f8608(0x15e)];}let _0x5c3da7={'filename':_0x5b4440};if(_0x280909)_0x5c3da7[_0x2f8608(0x156)]=_0x280909;if(!_0x51462e)_0x2c1fe4['asDocument']=!![];let _0xc02db4='',_0x34ed37=_0x51462e[_0x2f8608(0x107)],_0x4ff92;if(/webp/[_0x2f8608(0x16b)](_0x51462e[_0x2f8608(0x107)])||/image/[_0x2f8608(0x16b)](_0x51462e['mime'])&&_0x2c1fe4[_0x2f8608(0x153)])_0xc02db4=_0x2f8608(0x187);else{if(/image/[_0x2f8608(0x16b)](_0x51462e[_0x2f8608(0x107)])||/webp/[_0x2f8608(0x16b)](_0x51462e['mime'])&&_0x2c1fe4[_0x2f8608(0x116)])_0xc02db4=_0x2f8608(0xf3);else{if(/video/[_0x2f8608(0x16b)](_0x51462e[_0x2f8608(0x107)]))_0xc02db4='video';else{if(/audio/[_0x2f8608(0x16b)](_0x51462e[_0x2f8608(0x107)]))_0x4ff92=await(_0x3405b2?toPTT:toAudio)(_0x332fe8,_0x51462e[_0x2f8608(0x108)]),_0x332fe8=_0x4ff92[_0x2f8608(0x13b)],_0x1c748f=_0x4ff92['filename'],_0xc02db4=_0x2f8608(0x142),_0x34ed37=_0x2f8608(0x18e);else _0xc02db4=_0x2f8608(0x14b);}}}if(_0x2c1fe4['asDocument'])_0xc02db4=_0x2f8608(0x14b);let _0x19e7c8={..._0x2c1fe4,'caption':_0x4475da,'ptt':_0x3405b2,[_0xc02db4]:{'url':_0x1c748f},'mimetype':_0x34ed37},_0x276f13;try{_0x276f13=await _0x8d815f[_0x2f8608(0x170)](_0x5ea906,_0x19e7c8,{..._0x5c3da7,..._0x2c1fe4});}catch(_0x3c5ac0){console[_0x2f8608(0xf1)](_0x3c5ac0),_0x276f13=null;}finally{if(!_0x276f13)_0x276f13=await _0x8d815f[_0x2f8608(0x170)](_0x5ea906,{..._0x19e7c8,[_0xc02db4]:_0x332fe8},{..._0x5c3da7,..._0x2c1fe4});return _0x276f13;}},_0x8d815f[_0x26a738(0x13d)]=async(_0x3722e6,_0x416619,_0xb35efd,_0x1b1ce3={})=>{const _0x5423ba=_0x26a738;let _0x4b13b7=Buffer[_0x5423ba(0x168)](_0x416619)?_0x416619:/^data:.*?\/.*?;base64,/i[_0x5423ba(0x16b)](_0x416619)?Buffer[_0x5423ba(0x129)](_0x416619[_0x5423ba(0x10a)]`,`[0x1],_0x5423ba(0x178)):/^https?:\/\//[_0x5423ba(0x16b)](_0x416619)?await await getBuffer(_0x416619):fs[_0x5423ba(0x162)](_0x416619)?fs['readFileSync'](_0x416619):Buffer[_0x5423ba(0x114)](0x0),_0x4b2bab;return _0x1b1ce3&&(_0x1b1ce3['packname']||_0x1b1ce3[_0x5423ba(0x12d)])?_0x4b2bab=await writeExifVid(_0x4b13b7,_0x1b1ce3):_0x4b2bab=await videoToWebp(_0x4b13b7),await _0x8d815f[_0x5423ba(0x170)](_0x3722e6,{'sticker':{'url':_0x4b2bab},..._0x1b1ce3},{'quoted':_0xb35efd}),_0x4b2bab;},_0x8d815f[_0x26a738(0xfc)]=async(_0x2d40d0,_0x580c4b,_0x4d8297=!![])=>{const _0x11a879=_0x26a738;let _0x59126e=_0x2d40d0[_0x11a879(0x128)]?_0x2d40d0[_0x11a879(0x128)]:_0x2d40d0,_0x1024a0=(_0x2d40d0[_0x11a879(0x128)]||_0x2d40d0)[_0x11a879(0x169)]||'',_0x214408=_0x2d40d0[_0x11a879(0x11e)]?_0x2d40d0['mtype'][_0x11a879(0xf8)](/Message/gi,''):_0x1024a0[_0x11a879(0x10a)]('/')[0x0];const _0x588436=await downloadContentFromMessage(_0x59126e,_0x214408);let _0x39ec82=Buffer[_0x11a879(0x129)]([]);for await(const _0x1d485c of _0x588436){_0x39ec82=Buffer[_0x11a879(0x14a)]([_0x39ec82,_0x1d485c]);}let _0x32894c=await FileType[_0x11a879(0x106)](_0x39ec82);return trueFileName=_0x4d8297?_0x580c4b+'.'+_0x32894c['ext']:_0x580c4b,await fs[_0x11a879(0x17c)](trueFileName,_0x39ec82),trueFileName;};const _0x1bf6c3=require('path');return _0x8d815f[_0x26a738(0xfc)]=async(_0x5cedf5,_0x48787c,_0x329013=!![])=>{const _0x18866b=_0x26a738;let _0x222e94=_0x5cedf5[_0x18866b(0x128)]?_0x5cedf5[_0x18866b(0x128)]:_0x5cedf5,_0x5104fc=(_0x5cedf5[_0x18866b(0x128)]||_0x5cedf5)[_0x18866b(0x169)]||'',_0x4d579d=_0x5cedf5[_0x18866b(0x11e)]?_0x5cedf5[_0x18866b(0x11e)][_0x18866b(0xf8)](/Message/gi,''):_0x5104fc['split']('/')[0x0];const _0x2c14b4=await downloadContentFromMessage(_0x222e94,_0x4d579d);let _0x59ed54=Buffer['from']([]);for await(const _0x50ccba of _0x2c14b4){_0x59ed54=Buffer[_0x18866b(0x14a)]([_0x59ed54,_0x50ccba]);}let _0xd7856f=await FileType[_0x18866b(0x106)](_0x59ed54),_0x5865e2=_0x329013?_0x48787c+'.'+_0xd7856f[_0x18866b(0x108)]:_0x48787c,_0x35257b=_0x1bf6c3['join'](__dirname,_0x18866b(0x17f),_0x5865e2);return await fs[_0x18866b(0x17c)](_0x35257b,_0x59ed54),_0x35257b;},_0x8d815f[_0x26a738(0xf7)]=async(_0x1a747d,_0x50b177,_0x324ea0,_0x54439f={})=>{const _0x5261df=_0x26a738;let _0x108448=Buffer[_0x5261df(0x168)](_0x50b177)?_0x50b177:/^data:.*?\/.*?;base64,/i[_0x5261df(0x16b)](_0x50b177)?Buffer[_0x5261df(0x129)](_0x50b177[_0x5261df(0x10a)]`,`[0x1],_0x5261df(0x178)):/^https?:\/\//[_0x5261df(0x16b)](_0x50b177)?await await getBuffer(_0x50b177):fs[_0x5261df(0x162)](_0x50b177)?fs[_0x5261df(0x189)](_0x50b177):Buffer[_0x5261df(0x114)](0x0),_0x5da6b1;return _0x54439f&&(_0x54439f['packname']||_0x54439f[_0x5261df(0x12d)])?_0x5da6b1=await writeExifImg(_0x108448,_0x54439f):_0x5da6b1=await imageToWebp(_0x108448),await _0x8d815f[_0x5261df(0x170)](_0x1a747d,{'sticker':{'url':_0x5da6b1},..._0x54439f},{'quoted':_0x324ea0}),_0x5da6b1;},_0x8d815f[_0x26a738(0x18a)]=(_0x5a67c4,_0x56ece9='',_0x10bc4c=[],_0x19567a=0x1)=>{const _0x53d89f=_0x26a738;return _0x8d815f[_0x53d89f(0x170)](_0x5a67c4,{'poll':{'name':_0x56ece9,'values':_0x10bc4c,'selectableCount':_0x19567a}});},_0x8d815f[_0x26a738(0x10d)]=(_0x249933,_0x524230,_0x361f12='',_0x230af3)=>_0x8d815f[_0x26a738(0x170)](_0x249933,{'text':_0x524230,..._0x230af3},{'quoted':_0x361f12}),_0x8d815f;}startBotz();let file=require[_0x19f338(0x18d)](__filename);fs[_0x19f338(0x167)](file,()=>{const _0x364933=_0x19f338;fs[_0x364933(0x138)](file),console[_0x364933(0x191)](_0x364933(0x184)+__filename),delete require[_0x364933(0x11c)][file],require(file);});