zerotwomd
Version:
Multi device wa bot created by Team Zero Two.
195 lines (120 loc) β’ 36.8 kB
JavaScript
/*
Β© πππ«π¨ ππ°π¨ ππ¨π©π²π«π’π π‘π by Team Zero Two Β©
IF you want to copy this code you must have to keep
this copyright section.
OtherWise We will sue you for sure.
Thanks to Team Zero and Xeon
Β© πππ«π¨ ππ°π¨ ππ¨π©π²π«π’π π‘π by Team Zero Two Β©
IF you want to copy this code you must have to keep
this copyright section.
OtherWise We will sue you for sure.
Thanks to Team Zero and Xeon
*/
const _0x172d10 = _0x5cc4;
(function(_0x2cecb9, _0x36748c) { const _0x4869a1 = _0x5cc4,
_0xb7991a = _0x2cecb9(); while (!![]) { try { const _0x3bd594 = -parseInt(_0x4869a1(0x180)) / 0x1 * (-parseInt(_0x4869a1(0x12e)) / 0x2) + parseInt(_0x4869a1(0x183)) / 0x3 + -parseInt(_0x4869a1(0xc4)) / 0x4 * (parseInt(_0x4869a1(0x122)) / 0x5) + -parseInt(_0x4869a1(0xba)) / 0x6 * (parseInt(_0x4869a1(0x116)) / 0x7) + parseInt(_0x4869a1(0x16a)) / 0x8 + -parseInt(_0x4869a1(0x131)) / 0x9 + -parseInt(_0x4869a1(0xea)) / 0xa * (-parseInt(_0x4869a1(0x14f)) / 0xb); if (_0x3bd594 === _0x36748c) break;
else _0xb7991a['push'](_0xb7991a['shift']()); } catch (_0x157ae6) { _0xb7991a['push'](_0xb7991a['shift']()); } } }(_0x1dea, 0xf1d55), require(_0x172d10(0x104)), require(_0x172d10(0x16d)));
const { default: ZeroTwoIncConnect, useSingleFileAuthState, DisconnectReason, fetchLatestBaileysVersion, generateForwardMessageContent, prepareWAMessageMedia, generateWAMessageFromContent, generateMessageID, downloadContentFromMessage, makeInMemoryStore, jidDecode, proto } = require(_0x172d10(0x139)), pino = require(_0x172d10(0xf6)), fs = require('fs'), fss = require('fs'), chalk = require(_0x172d10(0xfd)), FileType = require(_0x172d10(0xcb)), path = require(_0x172d10(0x127));
var anahtar = '';
function _0x5cc4(_0x19fbcc, _0x464581) { const _0x1dea48 = _0x1dea(); return _0x5cc4 = function(_0x5cc4a8, _0x3d7d97) { _0x5cc4a8 = _0x5cc4a8 - 0xb5; let _0x321cc4 = _0x1dea48[_0x5cc4a8]; return _0x321cc4; }, _0x5cc4(_0x19fbcc, _0x464581); }
const { log, pint, bgPint } = require(_0x172d10(0x146)), qrcode = require('qrcode'), { Boom } = require('@hapi/boom'), { exec, spawn, execSync } = require('child_process'), PhoneNumber = require('awesome-phonenumber'), Config = require(_0x172d10(0x134)), { imageToWebp, videoToWebp, writeExifImg, writeExifVid } = require(_0x172d10(0x16b)), { smsg, formatp, formatDate, getTime, isUrl, clockString, runtime, fetchJson, getBuffer, jsonformat, format, parseMention, GIFBufferToVideoBuffer, getRandom, await, sleep, getSizeMedia, generateMessageTag } = require(_0x172d10(0x148)), Canvas = require('discord-canvas'), clui = require(_0x172d10(0xee)), { Spinner } = clui, prompt = require('prompt-sync')({ 'sigint': !![] }), figlet = require(_0x172d10(0x15c)), { MakeSession } = require(_0x172d10(0xf4)), mongoose = require(_0x172d10(0xeb)), { color, bgcolor } = require(_0x172d10(0x142)), moment = require(_0x172d10(0x150));
main()['catch'](_0x1e0a33 => console['log'](_0x1e0a33));
async function main() { const _0x6c150d = _0x172d10;
await mongoose[_0x6c150d(0xfe)](mongodb); }
const user = require(_0x172d10(0xd4)),
group = require(_0x172d10(0xf3)),
status = new Spinner(chalk[_0x172d10(0x12c)](_0x172d10(0x11b))),
starting = new Spinner(chalk[_0x172d10(0x12c)](_0x172d10(0x172))),
reconnect = new Spinner(chalk['redBright']('\x20Reconnecting\x20WhatsApp\x20Bot'));
let remsession = global['sessionName'];
function _0x1dea() { const _0x362ae6 = ['mimetype', 'message-delete', 'log', 'decodeJid', '\x0aStatus\x20:\x20Member\x20->\x20Admin\x0aGroup\x20:\x20', '\x0aUse\x20*-help*\x20to\x20start\x20using\x20Zero\x20Two\x20β₯οΈ\x0a*Bot\x20Hosting\x20Video:*\x20gg.gg/Zero-Two-Botto\x0a\x0a*Powered\x20by\x20πππ«π¨\x20ππ°π¨\x20ππ*\x0a\x20\x20\x20', 'announce', '@s.whatsapp.net', 'viewOnce', '4LmDosn', 'https://shortlink.XeonBotncarridho.my.id/rg1oT', 'Zero-Two-Md', 'sendText', '[\x20DEMOTE\x20-\x20DETECTED\x20]\x0a\x0aName\x20:\x20@', 'verifiedName', 'writeFile', 'file-type', 'BEGIN:VCARD\x0aVERSION:3.0\x0aN:', 'copyNForward', '\x20\x0aπͺπ²πΉπ°πΌπΊπ²\x20ππΌ\x20\x20', 'remove', 'HH:mm:ss', 'silent', 'th\x0a\x20\x20\x20π§πΆπΊπ²\x20:\x20', 'sendContact', './src/user', 'author', 'ownername', 'status@broadcast', 'sendVideoAsSticker', 'toString', 'promote', 'concat', 'BAE5', 'audio', 'ytname', 'parseMention', 'profilePictureUrl', 'redBright', 'json', '\x0aFN:', 'DD/MM/YYYY', 'document', './lib/antidelete', 'action', 'categories', '\x0aStatus\x20:\x20Admin\x20->\x20Member\x0aGroup\x20:\x20', '186370BEtMrs', 'mongoose', 'chat', 'keys', 'clui', 'query', 'https://i.ibb.co/6BRf4Rc/Hans-Bot-No-Profile.png', 'asDocument', 'notify', './src/group', './lib/colab', 'sendButtonText', 'pino', 'https://i0.wp.com/www.gambarunik.id/wp-content/uploads/2019/06/Top-Gambar-Foto-Profil-Kosong-Lucu-Tergokil-.jpg', 'withoutContact', 'mtype', 'packname', 'status', 'output', 'chalk', 'connect', 'botname', 'msg', './lib/sticker.js', 'caption', 'Zero-Two\x20Mode', './config.js', 'child', '\x0aitem2.X-ABLabel:YouTube\x0aitem3.URL:', 'packname2', 'getFile', 'γ\x20Group\x20Settings\x20Changed\x20γ\x0a\x0aGroup\x20Info\x20Has\x20Been\x20Restricted,\x20Now\x20Only\x20Admin\x20Can\x20Edit\x20Group\x20Info\x20!', 'default', 'international', 'split', 'sendFile', 'key', 'okedoh', 'ignore', 'participants', 'contextInfo', 'user', 'sendMessage', 'Asia/Kolkata', '9240301RyCfcg', '\x0aitem3.X-ABLabel:GitHub\x0aitem4.ADR:;;', '0@s.whatsapp.net', 'unlink', 'test', '\x20Booting\x20Zero-Two\x20Bot', 'connection.update', 'contacts', 'sendMedia', 'th\x0aππΌπΆπ»π²π±\x20:\x20', 'getName', 'restrict', '5972455TUpifi', 'γ\x20Group\x20Settings\x20Changed\x20γ\x0a\x0aThe\x20Group\x20Has\x20Been\x20Closed\x20By\x20Admin,\x20Now\x20Only\x20Admin\x20Can\x20Send\x20Messages\x20!', 'sender', 'fromMe', 'isBuffer', 'path', '\x0aitem1.X-ABLabel:Click\x20here\x20to\x20chat\x0aitem2.EMAIL;type=INTERNET:', 'length', ';;;;\x0aitem4.X-ABLabel:Region\x0aEND:VCARD', '\x0a\x20\x20\x20*ANOTHER\x20ONE\x20BITES\x20DUST*\x20π\x20\x0a\x20\x20\x20@', 'cyan', 'from', '34NCekHl', 'socialm', 'sendTextWithMentions', '3128679Yclqlg', 'sendImage', 'application/octet-stream', './config', 'remoteJid', 'setStatus', 'messages', 'location', '@adiwajshing/baileys', 'ext', 'sendImageAsSticker', 'sendAudio', 'sendVideo', '\x20Contact', 'string', 'γ\x20Group\x20Settings\x20Changed\x20γ\x0a\x0aGroup\x20Info\x20Has\x20Been\x20Opened,\x20Now\x20Participants\x20Can\x20Edit\x20Group\x20Info\x20!', 'loggedOut', './lib/color', '@broadcast', 'WhatsApp', 'store', './lib/langcolor', 'participant', './lib/myfuncn', 'readViewOnce', 'writeFileSync', 'Connection...', 'Zero-Two', 'type', 'asSticker', '1309WFlGoM', 'moment-timezone', '.bin', 'startsWith', 'yellow', 'resolve', 'statusCode', '@g.us', 'image/webp', './session.sam.json', 'fromObject', 'base64', 'name', 'figlet', 'alloc', '\x0aitem1.TEL;waid=', 'image', 'ephemeralMessage', 'add', 'cache', '1.0.0', 'send5ButImg', 'readFileSync', 'map', 'groupMetadata', 'γ\x20Group\x20Settings\x20Changed\x20γ\x0a\x0aGroup\x20Subject\x20Has\x20Been\x20Changed\x20To\x20*', 'matchAll', '5084224LuzhKq', './lib/exif', 'existsSync', './Zero-Two.js', 'WORKTYPE', 'server', 'bind', 'format', '\x20Preparing\x20After\x20Connect', 'getNumber', '\x0aπ π²πΊπ―π²πΏ\x20:\x20', 'authFile', 'video', 'public', 'endsWith', 'promises', 'subject', 'fromBuffer', './src/', 'textSync', 'push', 'includes', '35615JNheaD', 'replace', 'waUploadToServer', '1181784aixCIR', 'message', 'currentVersion', 'sticker', 'text', 'relayMessage', 'viewOnceMessage', '[\x20PROMOTE\x20-\x20DETECTED\x20]\x0a\x0aName\x20:\x20@', 'join', 'Pagga', '6bjFlch'];
_0x1dea = function() { return _0x362ae6; }; return _0x1dea(); }
global[_0x172d10(0x175)] = './session.sam.json';
!fs[_0x172d10(0x16c)](_0x172d10(0x158)) && MakeSession('' + remsession, authFile);
console[_0x172d10(0xbd)](require(_0x172d10(0xfd))['redBright']('Waiting\x205\x20seconds\x20to\x20Generate\x20your\x20session\x20file')), setTimeout(() => { const _0x2e967d = _0x172d10,
{ state: _0x1bfb49, saveState: _0x2ca934 } = useSingleFileAuthState(_0x2e967d(0x158)),
_0x5f42e5 = makeInMemoryStore({ 'logger': pino()[_0x2e967d(0x105)]({ 'level': _0x2e967d(0xd1), 'stream': _0x2e967d(0x145) }) }),
_0x49dea8 = () => { const _0xb41c51 = _0x2e967d; let _0x29f420; try { let _0x4e4cc2 = fetchJson('https://web.whatsapp.com/check-update?version=1&platform=web');
_0x29f420 = [_0x4e4cc2[_0xb41c51(0x185)][_0xb41c51(0x181)](/[.]/g, ',\x20')]; } catch { _0x29f420 = [0x2, 0x89c, 0xd]; } return _0x29f420; }; let _0x380256 = 'invalid';
async function _0x4de9d7() { const _0x3584ca = _0x2e967d,
_0x1afff5 = ZeroTwoIncConnect({ 'logger': pino({ 'level': _0x3584ca(0xd1) }), 'printQRInTerminal': !![], 'browser': [_0x3584ca(0x14c), 'safari', _0x3584ca(0x163)], 'auth': _0x1bfb49, 'version': _0x49dea8() || [0x2, 0x89c, 0xd] });
_0x5f42e5[_0x3584ca(0x170)](_0x1afff5['ev']), console[_0x3584ca(0xbd)](color(figlet[_0x3584ca(0x17d)](_0x3584ca(0xc6), { 'font': _0x3584ca(0xb9), 'horizontalLayout': _0x3584ca(0x10a), 'vertivalLayout': _0x3584ca(0x10a), 'width': 0x50, 'whitespaceBreak': !![] }), _0x3584ca(0x153))), _0x1afff5['ev']['on']('messages.upsert', async _0x578ad9 => { const _0x6e688a = _0x3584ca; try { mek = _0x578ad9[_0x6e688a(0x137)][0x0]; if (!mek[_0x6e688a(0x184)]) return;
mek['message'] = Object[_0x6e688a(0xed)](mek['message'])[0x0] === _0x6e688a(0x160) ? mek[_0x6e688a(0x184)][_0x6e688a(0x160)][_0x6e688a(0x184)] : mek[_0x6e688a(0x184)]; if (mek[_0x6e688a(0x10e)] && mek[_0x6e688a(0x10e)][_0x6e688a(0x135)] === _0x6e688a(0xd7)) return; if (!_0x1afff5[_0x6e688a(0x177)] && !mek[_0x6e688a(0x10e)][_0x6e688a(0x125)] && _0x578ad9[_0x6e688a(0x14d)] === _0x6e688a(0xf2)) return; if (mek[_0x6e688a(0x10e)]['id'][_0x6e688a(0x152)](_0x6e688a(0xdc)) && mek[_0x6e688a(0x10e)]['id']['length'] === 0x10) return;
m = smsg(_0x1afff5, mek, _0x5f42e5), require('./Zero-Two')(_0x1afff5, m, _0x578ad9, _0x5f42e5); } catch (_0xeb47f8) { console[_0x6e688a(0xbd)](_0xeb47f8); } }), _0x1afff5['ev']['on']('groups.update', async _0x4d498a => { const _0x25920c = _0x3584ca; try { ppgc = await _0x1afff5[_0x25920c(0xe0)](_0x4d498a[0x0]['id'], _0x25920c(0x15f)); } catch { ppgc = _0x25920c(0xc5); } let _0x596e68 = { 'url': ppgc }; if (_0x4d498a[0x0][_0x25920c(0xc1)] == !![]) _0x1afff5[_0x25920c(0x164)](_0x4d498a[0x0]['id'], _0x25920c(0x123), '' + global[_0x25920c(0xff)], _0x596e68, []);
else { if (_0x4d498a[0x0][_0x25920c(0xc1)] == ![]) _0x1afff5[_0x25920c(0x164)](_0x4d498a[0x0]['id'], 'γ\x20Group\x20Settings\x20Changed\x20γ\x0a\x0aThe\x20Group\x20Has\x20Been\x20Opened\x20By\x20Admin,\x20Now\x20Participants\x20Can\x20Send\x20Messages\x20!', '' + global[_0x25920c(0xff)], _0x596e68, []);
else { if (_0x4d498a[0x0][_0x25920c(0x121)] == !![]) _0x1afff5[_0x25920c(0x164)](_0x4d498a[0x0]['id'], _0x25920c(0x109), '' + global[_0x25920c(0xff)], _0x596e68, []);
else _0x4d498a[0x0]['restrict'] == ![] ? _0x1afff5['send5ButImg'](_0x4d498a[0x0]['id'], _0x25920c(0x140), '' + global[_0x25920c(0xff)], _0x596e68, []) : _0x1afff5[_0x25920c(0x164)](_0x4d498a[0x0]['id'], _0x25920c(0x168) + _0x4d498a[0x0][_0x25920c(0x17a)] + '*', '' + global[_0x25920c(0xff)], _0x596e68, []); } } }), _0x1afff5['ev']['on']('group-participants.update', async _0x35a4c0 => { const _0x4983f8 = _0x3584ca;
console[_0x4983f8(0xbd)](_0x35a4c0); try { let _0x4e2c91 = await _0x1afff5[_0x4983f8(0x167)](_0x35a4c0['id']),
_0x4ccb68 = _0x35a4c0['participants'],
_0x893e2d = _0x35a4c0[_0x4983f8(0x111)][_0x4983f8(0x129)]; for (let _0x289cc0 of _0x4ccb68) { try { ppuser = await _0x1afff5[_0x4983f8(0xe0)](_0x289cc0, 'image'); } catch { ppuser = _0x4983f8(0xf7); } try { ppgroup = await _0x1afff5[_0x4983f8(0xe0)](_0x35a4c0['id'], 'image'); } catch { ppgroup = _0x4983f8(0xf7); } if (_0x35a4c0[_0x4983f8(0xe7)] == _0x4983f8(0x161)) { hesa = '' + _0x4ccb68, mestes = _0x24c117 => { const _0x25ee77 = _0x4983f8; return _0x24c117[_0x25ee77(0x181)](/['@s whatsapp.net']/g, '\x20'); }, resa = '' + mestes(hesa); const _0x40ea16 = moment['tz'](_0x4983f8(0x115))['format'](_0x4983f8(0xd0)),
_0x4b9a39 = moment['tz']('Asia/Kolkata')[_0x4983f8(0x171)](_0x4983f8(0xe4)),
_0x33aee8 = _0x4e2c91[_0x4983f8(0x111)]['length'];
orgnye = _0x289cc0, mbc = '\x0a*Hi,*\x20@' + orgnye[_0x4983f8(0x10c)]('@')[0x0] + _0x4983f8(0xce) + _0x4e2c91[_0x4983f8(0x17a)] + _0x4983f8(0x174) + _0x33aee8 + _0x4983f8(0x11f) + _0x40ea16 + '\x20' + _0x4b9a39 + _0x4983f8(0xc0); let _0x315709 = { 'image': await getBuffer(ppuser), 'caption': mbc, 'footer': '' + global['botname'], 'mentions': [orgnye], 'headerType': 0x4 };
_0x1afff5[_0x4983f8(0x114)](_0x35a4c0['id'], _0x315709); } else { if (_0x35a4c0[_0x4983f8(0xe7)] == _0x4983f8(0xcf)) { hesa = '' + _0x4ccb68, mestes = _0x2f4332 => { const _0x229fde = _0x4983f8; return _0x2f4332[_0x229fde(0x181)](/['@s whatsapp.net']/g, '\x20'); }, resa = '' + mestes(hesa); const _0x275176 = moment['tz'](_0x4983f8(0x115))[_0x4983f8(0x171)](_0x4983f8(0xd0)),
_0x4c41e2 = moment['tz'](_0x4983f8(0x115))[_0x4983f8(0x171)](_0x4983f8(0xe4)),
_0x1951b2 = _0x4e2c91['participants'][_0x4983f8(0x129)];
orgnye = _0x289cc0, mbc = _0x4983f8(0x12b) + orgnye['split']('@')[0x0] + '\x20\x20γ\x20\x20ππ²π³π\x20\x0a\x20\x20\x20\x20' + _0x4e2c91[_0x4983f8(0x17a)] + '\x0a\x20\x20\x20π π²πΊπ―π²πΏ\x20:\x20' + _0x1951b2 + _0x4983f8(0xd2) + _0x275176 + '\x20' + _0x4c41e2 + '\x0a\x20\x20\x20*Bot\x20Hosting\x20Tutorial*\x20gg.gg/Zero-Two-Botto\x0a\x20\x20\x20*Powered\x20by\x20πππ«π¨\x20ππ°π¨\x20ππ*\x0a\x20\x20\x20'; let _0x133dcd = { 'image': await getBuffer(ppuser), 'caption': mbc, 'footer': '' + global['botname'], 'mentions': [orgnye], 'headerType': 0x4 };
_0x1afff5['sendMessage'](_0x35a4c0['id'], _0x133dcd), _0x1afff5['ev']['on'](_0x4983f8(0xbc), async _0x32ab59 => { const _0x1e5d16 = _0x4983f8;
require(_0x1e5d16(0xe6))(_0x1afff5, _0x32ab59); }); } else { if (_0x35a4c0[_0x4983f8(0xe7)] == _0x4983f8(0xda)) { orgnye = _0x289cc0; try { ppUrl = await _0x1afff5[_0x4983f8(0xe0)](m[_0x4983f8(0x124)], 'image'); } catch { ppurl = _0x4983f8(0xf0); }
img = await getBuffer(ppUrl), teks = _0x4983f8(0xb7) + orgnye[_0x4983f8(0x10c)]('@')[0x0] + _0x4983f8(0xbf) + mdata[_0x4983f8(0x17a)]; let _0x30afdd = [{ 'buttonId': _0x4983f8(0x10f), 'buttonText': { 'displayText': 'Happy?' }, 'type': 0x1 }],
_0x312ae6 = { 'image': img, 'caption': teks, 'footer': 'Zero\x20Two', 'mentions': [orgnye], 'buttons': _0x30afdd, 'headerType': 0x4 };
_0x1afff5[_0x4983f8(0x114)](_0x35a4c0['id'], _0x312ae6); } else { if (_0x35a4c0[_0x4983f8(0xe7)] == 'demote') { orgnye = _0x289cc0; try { ppUrl = await _0x1afff5[_0x4983f8(0xe0)](m['sender'], 'image'); } catch { ppUrl = _0x4983f8(0xf0); }
img = await getBuffer(ppUrl), teks = _0x4983f8(0xc8) + orgnye[_0x4983f8(0x10c)]('@')[0x0] + _0x4983f8(0xe9) + mdata[_0x4983f8(0x17a)]; let _0x190390 = [{ 'buttonId': _0x4983f8(0x10f), 'buttonText': { 'displayText': 'ANOTHER\x20ONE\x20BITES\x20DUST!' }, 'type': 0x1 }],
_0x5dd0c0 = { 'image': img, 'caption': teks, 'footer': '' + global[_0x4983f8(0xff)], 'mentions': [orgnye], 'buttons': _0x190390, 'headerType': 0x4 };
_0x1afff5[_0x4983f8(0x114)](_0x35a4c0['id'], _0x5dd0c0); } } } } } } catch (_0x652f7c) { console[_0x4983f8(0xbd)](_0x652f7c); } }), _0x1afff5[_0x3584ca(0xbe)] = _0x47531c => { const _0x5c1f4c = _0x3584ca; if (!_0x47531c) return _0x47531c; if (/:\d+@/gi ['test'](_0x47531c)) { let _0x271a02 = jidDecode(_0x47531c) || {}; return _0x271a02['user'] && _0x271a02['server'] && _0x271a02[_0x5c1f4c(0x113)] + '@' + _0x271a02[_0x5c1f4c(0x16f)] || _0x47531c; } else return _0x47531c; }, _0x1afff5['ev']['on']('contacts.update', _0x2c5193 => { const _0x35f32f = _0x3584ca; for (let _0x60cacc of _0x2c5193) { let _0x18ac53 = _0x1afff5[_0x35f32f(0xbe)](_0x60cacc['id']); if (_0x5f42e5 && _0x5f42e5[_0x35f32f(0x11d)]) _0x5f42e5['contacts'][_0x18ac53] = { 'id': _0x18ac53, 'name': _0x60cacc[_0x35f32f(0xf2)] }; } }), _0x1afff5[_0x3584ca(0x120)] = (_0x1a66bf, _0x5aa6d0 = ![]) => { const _0x3b0d78 = _0x3584ca;
id = _0x1afff5[_0x3b0d78(0xbe)](_0x1a66bf), _0x5aa6d0 = _0x1afff5[_0x3b0d78(0xf8)] || _0x5aa6d0; let _0x585468; if (id[_0x3b0d78(0x178)](_0x3b0d78(0x156))) return new Promise(async _0x4b8ebb => { const _0x3495cc = _0x3b0d78;
_0x585468 = _0x5f42e5['contacts'][id] || {}; if (!(_0x585468['name'] || _0x585468['subject'])) _0x585468 = _0x1afff5[_0x3495cc(0x167)](id) || {};
_0x4b8ebb(_0x585468[_0x3495cc(0x15b)] || _0x585468[_0x3495cc(0x17a)] || PhoneNumber('+' + id[_0x3495cc(0x181)]('@s.whatsapp.net', ''))[_0x3495cc(0x173)]('international')); });
else _0x585468 = id === _0x3b0d78(0x118) ? { 'id': id, 'name': _0x3b0d78(0x144) } : id === _0x1afff5['decodeJid'](_0x1afff5[_0x3b0d78(0x113)]['id']) ? _0x1afff5['user'] : _0x5f42e5[_0x3b0d78(0x11d)][id] || {}; return (_0x5aa6d0 ? '' : _0x585468[_0x3b0d78(0x15b)]) || _0x585468[_0x3b0d78(0x17a)] || _0x585468[_0x3b0d78(0xc9)] || PhoneNumber('+' + _0x1a66bf[_0x3b0d78(0x181)](_0x3b0d78(0xc2), ''))[_0x3b0d78(0x173)](_0x3b0d78(0x10b)); }, _0x1afff5[_0x3584ca(0xd3)] = async(_0x59e451, _0x1ce2d5, _0x4d3e30 = '', _0xb7f35 = {}) => { const _0x587f82 = _0x3584ca; let _0x6824d0 = []; for (let _0x3f421b of _0x1ce2d5) { _0x6824d0[_0x587f82(0x17e)]({ 'displayName': await _0x1afff5['getName'](_0x3f421b + _0x587f82(0xc2)), 'vcard': _0x587f82(0xcc) + await _0x1afff5[_0x587f82(0x120)](_0x3f421b + _0x587f82(0xc2)) + _0x587f82(0xe3) + global[_0x587f82(0xd6)] + _0x587f82(0x15e) + _0x3f421b + ':' + _0x3f421b + _0x587f82(0x128) + global[_0x587f82(0xde)] + _0x587f82(0x106) + global[_0x587f82(0x12f)] + _0x587f82(0x117) + global[_0x587f82(0x138)] + _0x587f82(0x12a) }); }
_0x1afff5[_0x587f82(0x114)](_0x59e451, { 'contacts': { 'displayName': _0x6824d0[_0x587f82(0x129)] + _0x587f82(0x13e), 'contacts': _0x6824d0 }, ..._0xb7f35 }, { 'quoted': _0x4d3e30 }); }, _0x1afff5[_0x3584ca(0x136)] = _0xdb8235 => { const _0xeb2b20 = _0x3584ca; return _0x1afff5[_0xeb2b20(0xef)]({ 'tag': 'iq', 'attrs': { 'to': _0xeb2b20(0xc2), 'type': 'set', 'xmlns': _0xeb2b20(0xfb) }, 'content': [{ 'tag': _0xeb2b20(0xfb), 'attrs': {}, 'content': Buffer[_0xeb2b20(0x12d)](_0xdb8235, 'utf-8') }] }), _0xdb8235; }; if (Config[_0x3584ca(0x16e)] === 'private') _0x1afff5['public'] = ![];
else Config[_0x3584ca(0x16e)] === _0x3584ca(0x177) && (_0x1afff5[_0x3584ca(0x177)] = !![]); let _0x4152bb = _0x1afff5[_0x3584ca(0x177)] == !![] ? '\x20Public' : '\x20Private'; return log(pint(_0x3584ca(0x103) + _0x4152bb, '.')), _0x1afff5['serializeM'] = _0x3b3023 => smsg(_0x1afff5, _0x3b3023, _0x5f42e5), _0x1afff5['ev']['on'](_0x3584ca(0x11c), async _0x2631cb => { const _0x2a81e7 = _0x3584ca,
{ lastDisconnect: _0x14ac44, connection: _0x3ed51d, qr: _0x26ab98 } = _0x2631cb;
_0x3ed51d === 'close' && (_0x14ac44['error'] ? .[_0x2a81e7(0xfc)] ? .[_0x2a81e7(0x155)] !== DisconnectReason[_0x2a81e7(0x141)] ? _0x4de9d7() : console[_0x2a81e7(0xbd)]('Conneting...')), _0x26ab98 && (_0x380256 = _0x26ab98), console[_0x2a81e7(0xbd)](_0x2a81e7(0x14b), _0x2631cb); }), _0x1afff5['ev']['on']('creds.update', _0x2ca934), _0x1afff5[_0x3584ca(0x164)] = async(_0x59e0d8, _0x10effc = '', _0x37a6e3 = '', _0xdb418d, _0x31130e = [], _0x3c1b4b, _0x3c6e94 = {}) => { const _0x962300 = _0x3584ca; let _0x5495d7 = await prepareWAMessageMedia({ 'image': _0xdb418d, 'jpegThumbnail': _0x3c1b4b }, { 'upload': _0x1afff5[_0x962300(0x182)] }); var _0x232827 = generateWAMessageFromContent(m[_0x962300(0xec)], proto['Message'][_0x962300(0x159)]({ 'templateMessage': { 'hydratedTemplate': { 'imageMessage': _0x5495d7['imageMessage'], 'hydratedContentText': _0x10effc, 'hydratedFooterText': _0x37a6e3, 'hydratedButtons': _0x31130e } } }), _0x3c6e94);
_0x1afff5[_0x962300(0xb5)](_0x59e0d8, _0x232827[_0x962300(0x184)], { 'messageId': _0x232827[_0x962300(0x10e)]['id'] }); }, _0x1afff5[_0x3584ca(0xf5)] = (_0x22f0a3, _0x8d6049 = [], _0x5c43ee, _0xcedfa2, _0x3259d0 = '', _0x5773f2 = {}) => { const _0x776a7 = _0x3584ca; let _0x57dea3 = { 'text': _0x5c43ee, 'footer': _0xcedfa2, 'buttons': _0x8d6049, 'headerType': 0x2, ..._0x5773f2 };
_0x1afff5[_0x776a7(0x114)](_0x22f0a3, _0x57dea3, { 'quoted': _0x3259d0, ..._0x5773f2 }); }, _0x1afff5[_0x3584ca(0xc7)] = (_0x59981e, _0x2d6f40, _0x5dbe12 = '', _0x17908e) => _0x1afff5[_0x3584ca(0x114)](_0x59981e, { 'text': _0x2d6f40, ..._0x17908e }, { 'quoted': _0x5dbe12 }), _0x1afff5[_0x3584ca(0x132)] = async(_0x28d3c0, _0x287bea, _0x84dfe3 = '', _0x306bcf = '', _0x55734c) => { const _0x3d2975 = _0x3584ca; let _0x24906d = Buffer[_0x3d2975(0x126)](_0x287bea) ? _0x287bea : /^data:.*?\/.*?;base64,/i [_0x3d2975(0x11a)](_0x287bea) ? Buffer[_0x3d2975(0x12d)](_0x287bea['split']
`,` [0x1], _0x3d2975(0x15a)) : /^https?:\/\// [_0x3d2975(0x11a)](_0x287bea) ? await await getBuffer(_0x287bea) : fs['existsSync'](_0x287bea) ? fs[_0x3d2975(0x165)](_0x287bea) : Buffer[_0x3d2975(0x15d)](0x0); return await _0x1afff5[_0x3d2975(0x114)](_0x28d3c0, { 'image': _0x24906d, 'caption': _0x84dfe3, ..._0x55734c }, { 'quoted': _0x306bcf }); }, _0x1afff5[_0x3584ca(0x13d)] = async(_0x239b0a, _0x2705c6, _0x4ecd82 = '', _0x188e2b = '', _0x5893d3 = ![], _0x311180) => { const _0x274972 = _0x3584ca; let _0x2de653 = Buffer[_0x274972(0x126)](_0x2705c6) ? _0x2705c6 : /^data:.*?\/.*?;base64,/i [_0x274972(0x11a)](_0x2705c6) ? Buffer[_0x274972(0x12d)](_0x2705c6['split']
`,` [0x1], _0x274972(0x15a)) : /^https?:\/\// [_0x274972(0x11a)](_0x2705c6) ? await await getBuffer(_0x2705c6) : fs[_0x274972(0x16c)](_0x2705c6) ? fs['readFileSync'](_0x2705c6) : Buffer[_0x274972(0x15d)](0x0); return await _0x1afff5[_0x274972(0x114)](_0x239b0a, { 'video': _0x2de653, 'caption': _0x4ecd82, 'gifPlayback': _0x5893d3, ..._0x311180 }, { 'quoted': _0x188e2b }); }, _0x1afff5[_0x3584ca(0x13c)] = async(_0x5ddd84, _0x5cc0be, _0x4d7ce4 = '', _0x4b9f25 = ![], _0x52c894) => { const _0x3f65a9 = _0x3584ca; let _0x58e25b = Buffer[_0x3f65a9(0x126)](_0x5cc0be) ? _0x5cc0be : /^data:.*?\/.*?;base64,/i [_0x3f65a9(0x11a)](_0x5cc0be) ? Buffer[_0x3f65a9(0x12d)](_0x5cc0be['split']
`,` [0x1], _0x3f65a9(0x15a)) : /^https?:\/\// [_0x3f65a9(0x11a)](_0x5cc0be) ? await await getBuffer(_0x5cc0be) : fs[_0x3f65a9(0x16c)](_0x5cc0be) ? fs[_0x3f65a9(0x165)](_0x5cc0be) : Buffer['alloc'](0x0); return await _0x1afff5['sendMessage'](_0x5ddd84, { 'audio': _0x58e25b, 'ptt': _0x4b9f25, ..._0x52c894 }, { 'quoted': _0x4d7ce4 }); }, _0x1afff5[_0x3584ca(0x130)] = async(_0x191d46, _0x18d68a, _0x31fb1e, _0x4713d7 = {}) => _0x1afff5[_0x3584ca(0x114)](_0x191d46, { 'text': _0x18d68a, 'contextInfo': { 'mentionedJid': [..._0x18d68a[_0x3584ca(0x169)](/@(\d{0,16})/g)][_0x3584ca(0x166)](_0x3e2053 => _0x3e2053[0x1] + _0x3584ca(0xc2)) }, ..._0x4713d7 }, { 'quoted': _0x31fb1e }), _0x1afff5[_0x3584ca(0x13b)] = async(_0x565a0c, _0x29b358, _0x37a38c, _0x3f92e7 = {}) => { const _0x5a484c = _0x3584ca; let _0xc24850 = Buffer[_0x5a484c(0x126)](_0x29b358) ? _0x29b358 : /^data:.*?\/.*?;base64,/i [_0x5a484c(0x11a)](_0x29b358) ? Buffer[_0x5a484c(0x12d)](_0x29b358[_0x5a484c(0x10c)]
`,` [0x1], _0x5a484c(0x15a)) : /^https?:\/\// ['test'](_0x29b358) ? await await getBuffer(_0x29b358) : fs['existsSync'](_0x29b358) ? fs[_0x5a484c(0x165)](_0x29b358) : Buffer[_0x5a484c(0x15d)](0x0),
_0x251ed9; return _0x3f92e7 && (_0x3f92e7[_0x5a484c(0xfa)] || _0x3f92e7[_0x5a484c(0xd5)]) ? _0x251ed9 = await writeExifImg(_0xc24850, _0x3f92e7) : _0x251ed9 = await imageToWebp(_0xc24850), await _0x1afff5[_0x5a484c(0x114)](_0x565a0c, { 'sticker': { 'url': _0x251ed9 }, ..._0x3f92e7 }, { 'quoted': _0x37a38c }), _0x251ed9; }, _0x1afff5[_0x3584ca(0xd8)] = async(_0x520368, _0x18045a, _0x1b1676, _0x48f2e8 = {}) => { const _0x55f7cc = _0x3584ca; let _0x391218 = Buffer['isBuffer'](_0x18045a) ? _0x18045a : /^data:.*?\/.*?;base64,/i [_0x55f7cc(0x11a)](_0x18045a) ? Buffer['from'](_0x18045a[_0x55f7cc(0x10c)]
`,` [0x1], _0x55f7cc(0x15a)) : /^https?:\/\// ['test'](_0x18045a) ? await await getBuffer(_0x18045a) : fs[_0x55f7cc(0x16c)](_0x18045a) ? fs[_0x55f7cc(0x165)](_0x18045a) : Buffer[_0x55f7cc(0x15d)](0x0),
_0x3a5e5e; return _0x48f2e8 && (_0x48f2e8['packname'] || _0x48f2e8['author']) ? _0x3a5e5e = await writeExifVid(_0x391218, _0x48f2e8) : _0x3a5e5e = await videoToWebp(_0x391218), await _0x1afff5[_0x55f7cc(0x114)](_0x520368, { 'sticker': { 'url': _0x3a5e5e }, ..._0x48f2e8 }, { 'quoted': _0x1b1676 }), _0x3a5e5e; }, _0x1afff5[_0x3584ca(0x11e)] = async(_0x511339, _0x2760b5, _0xc9244f = '', _0x1c3fd1 = '', _0x181112 = '', _0x583668 = {}) => { const _0x8d0d31 = _0x3584ca; let _0x1bf8bd = await _0x1afff5['getFile'](_0x2760b5, !![]),
{ mime: _0x5b1d05, ext: _0x220a8b, res: _0x451d11, data: _0x48f797, filename: _0x3cb525 } = _0x1bf8bd; if (_0x451d11 && _0x451d11[_0x8d0d31(0xfb)] !== 0xc8 || _0x1f64d6[_0x8d0d31(0x129)] <= 0x10000) try { throw { 'json': JSON['parse'](_0x1f64d6[_0x8d0d31(0xd9)]()) }; } catch (_0x1d8b9f) { if (_0x1d8b9f[_0x8d0d31(0xe2)]) throw _0x1d8b9f[_0x8d0d31(0xe2)]; }
let _0x451a05 = '',
_0x2bb610 = _0x5b1d05,
_0x4bc0b4 = _0x3cb525; if (_0x583668[_0x8d0d31(0xf1)]) _0x451a05 = _0x8d0d31(0xe5); if (_0x583668[_0x8d0d31(0x14e)] || /webp/ [_0x8d0d31(0x11a)](_0x5b1d05)) { let { writeExif: _0x5dde7b } = require(_0x8d0d31(0x16b)), _0x149df2 = { 'mimetype': _0x5b1d05, 'data': _0x48f797 };
_0x4bc0b4 = await _0x5dde7b(_0x149df2, { 'packname': _0x583668[_0x8d0d31(0xfa)] ? _0x583668[_0x8d0d31(0xfa)] : global['packname'], 'author': _0x583668['author'] ? _0x583668[_0x8d0d31(0xd5)] : global[_0x8d0d31(0xd5)], 'categories': _0x583668[_0x8d0d31(0xe8)] ? _0x583668['categories'] : [] }), await fs[_0x8d0d31(0x179)][_0x8d0d31(0x119)](_0x3cb525), _0x451a05 = _0x8d0d31(0x186), _0x2bb610 = _0x8d0d31(0x157); } else { if (/image/ [_0x8d0d31(0x11a)](_0x5b1d05)) _0x451a05 = _0x8d0d31(0x15f);
else { if (/video/ [_0x8d0d31(0x11a)](_0x5b1d05)) _0x451a05 = 'video';
else { if (/audio/ ['test'](_0x5b1d05)) _0x451a05 = _0x8d0d31(0xdd);
else _0x451a05 = _0x8d0d31(0xe5); } } } return await _0x1afff5[_0x8d0d31(0x114)](_0x511339, {
[_0x451a05]: { 'url': _0x4bc0b4 }, 'caption': _0x1c3fd1, 'mimetype': _0x2bb610, 'fileName': _0xc9244f, ..._0x583668 }, { 'quoted': _0x181112, ..._0x583668 }), fs[_0x8d0d31(0x179)]['unlink'](_0x4bc0b4); }, _0x1afff5['downloadAndSaveMediaMessage'] = async(_0x20603a, _0x57b009, _0x557095 = !![]) => { const _0xf1a864 = _0x3584ca; let _0x3afc73 = _0x20603a[_0xf1a864(0x100)] ? _0x20603a[_0xf1a864(0x100)] : _0x20603a,
_0x3eb38e = (_0x20603a['msg'] || _0x20603a)[_0xf1a864(0xbb)] || '',
_0xa4ca8f = _0x20603a[_0xf1a864(0xf9)] ? _0x20603a['mtype'][_0xf1a864(0x181)](/Message/gi, '') : _0x3eb38e[_0xf1a864(0x10c)]('/')[0x0]; const _0x411f0e = await downloadContentFromMessage(_0x3afc73, _0xa4ca8f); let _0x4a93a1 = Buffer[_0xf1a864(0x12d)]([]); for await (const _0x56fd54 of _0x411f0e) { _0x4a93a1 = Buffer[_0xf1a864(0xdb)]([_0x4a93a1, _0x56fd54]); } let _0x80b863 = await FileType[_0xf1a864(0x17b)](_0x4a93a1); return trueFileName = _0x557095 ? _0x57b009 + '.' + _0x80b863[_0xf1a864(0x13a)] : _0x57b009, await fs[_0xf1a864(0x14a)](trueFileName, _0x4a93a1), trueFileName; }, _0x1afff5['downloadMediaMessage'] = async _0x48a6f5 => { const _0x254a6e = _0x3584ca; let _0x219320 = (_0x48a6f5[_0x254a6e(0x100)] || _0x48a6f5)['mimetype'] || '',
_0x2d81ce = _0x48a6f5['mtype'] ? _0x48a6f5[_0x254a6e(0xf9)][_0x254a6e(0x181)](/Message/gi, '') : _0x219320[_0x254a6e(0x10c)]('/')[0x0]; const _0x40ce34 = await downloadContentFromMessage(_0x48a6f5, _0x2d81ce); let _0x286b2e = Buffer[_0x254a6e(0x12d)]([]); for await (const _0x99135c of _0x40ce34) { _0x286b2e = Buffer[_0x254a6e(0xdb)]([_0x286b2e, _0x99135c]); } return _0x286b2e; }, _0x1afff5[_0x3584ca(0xcd)] = async(_0xaa8cea, _0x5bd9bc, _0xa1a2ff = ![], _0x29722d = {}) => { const _0x4a1e88 = _0x3584ca; let _0x5ab053;
_0x29722d[_0x4a1e88(0x149)] && (_0x5bd9bc[_0x4a1e88(0x184)] = _0x5bd9bc['message'] && _0x5bd9bc[_0x4a1e88(0x184)][_0x4a1e88(0x160)] && _0x5bd9bc[_0x4a1e88(0x184)][_0x4a1e88(0x160)][_0x4a1e88(0x184)] ? _0x5bd9bc[_0x4a1e88(0x184)][_0x4a1e88(0x160)]['message'] : _0x5bd9bc[_0x4a1e88(0x184)] || undefined, _0x5ab053 = Object[_0x4a1e88(0xed)](_0x5bd9bc[_0x4a1e88(0x184)][_0x4a1e88(0xb6)][_0x4a1e88(0x184)])[0x0], delete(_0x5bd9bc[_0x4a1e88(0x184)] && _0x5bd9bc['message'][_0x4a1e88(0x110)] ? _0x5bd9bc['message'][_0x4a1e88(0x110)] : _0x5bd9bc[_0x4a1e88(0x184)] || undefined), delete _0x5bd9bc[_0x4a1e88(0x184)]['viewOnceMessage'][_0x4a1e88(0x184)][_0x5ab053][_0x4a1e88(0xc3)], _0x5bd9bc[_0x4a1e88(0x184)] = {..._0x5bd9bc['message'][_0x4a1e88(0xb6)]['message'] }); let _0x14b199 = Object[_0x4a1e88(0xed)](_0x5bd9bc['message'])[0x0],
_0x2c317f = await generateForwardMessageContent(_0x5bd9bc, _0xa1a2ff),
_0x258333 = Object[_0x4a1e88(0xed)](_0x2c317f)[0x0],
_0x31f270 = {}; if (_0x14b199 != 'conversation') _0x31f270 = _0x5bd9bc[_0x4a1e88(0x184)][_0x14b199][_0x4a1e88(0x112)];
_0x2c317f[_0x258333]['contextInfo'] = {..._0x31f270, ..._0x2c317f[_0x258333][_0x4a1e88(0x112)] }; const _0x1dc1aa = await generateWAMessageFromContent(_0xaa8cea, _0x2c317f, _0x29722d ? {..._0x2c317f[_0x258333], ..._0x29722d, ..._0x29722d[_0x4a1e88(0x112)] ? { 'contextInfo': {..._0x2c317f[_0x258333][_0x4a1e88(0x112)], ..._0x29722d['contextInfo'] } } : {} } : {}); return await _0x1afff5[_0x4a1e88(0xb5)](_0xaa8cea, _0x1dc1aa[_0x4a1e88(0x184)], { 'messageId': _0x1dc1aa['key']['id'] }), _0x1dc1aa; }, _0x1afff5['cMod'] = (_0x4b0cc8, _0x502ae0, _0x28e6e8 = '', _0x1842fd = _0x1afff5[_0x3584ca(0x113)]['id'], _0x53d343 = {}) => { const _0x5658a1 = _0x3584ca; let _0x283629 = Object[_0x5658a1(0xed)](_0x502ae0[_0x5658a1(0x184)])[0x0],
_0x109fcb = _0x283629 === _0x5658a1(0x160);
_0x109fcb && (_0x283629 = Object[_0x5658a1(0xed)](_0x502ae0[_0x5658a1(0x184)][_0x5658a1(0x160)][_0x5658a1(0x184)])[0x0]); let _0x31bb5e = _0x109fcb ? _0x502ae0[_0x5658a1(0x184)][_0x5658a1(0x160)]['message'] : _0x502ae0[_0x5658a1(0x184)],
_0x1998a9 = _0x31bb5e[_0x283629]; if (typeof _0x1998a9 === _0x5658a1(0x13f)) _0x31bb5e[_0x283629] = _0x28e6e8 || _0x1998a9;
else { if (_0x1998a9[_0x5658a1(0x102)]) _0x1998a9['caption'] = _0x28e6e8 || _0x1998a9[_0x5658a1(0x102)];
else { if (_0x1998a9[_0x5658a1(0x187)]) _0x1998a9[_0x5658a1(0x187)] = _0x28e6e8 || _0x1998a9[_0x5658a1(0x187)]; } } if (typeof _0x1998a9 !== _0x5658a1(0x13f)) _0x31bb5e[_0x283629] = {..._0x1998a9, ..._0x53d343 }; if (_0x502ae0['key']['participant']) _0x1842fd = _0x502ae0[_0x5658a1(0x10e)][_0x5658a1(0x147)] = _0x1842fd || _0x502ae0[_0x5658a1(0x10e)]['participant'];
else { if (_0x502ae0['key'][_0x5658a1(0x147)]) _0x1842fd = _0x502ae0[_0x5658a1(0x10e)][_0x5658a1(0x147)] = _0x1842fd || _0x502ae0[_0x5658a1(0x10e)][_0x5658a1(0x147)]; } if (_0x502ae0['key'][_0x5658a1(0x135)][_0x5658a1(0x17f)](_0x5658a1(0xc2))) _0x1842fd = _0x1842fd || _0x502ae0[_0x5658a1(0x10e)][_0x5658a1(0x135)];
else { if (_0x502ae0['key'][_0x5658a1(0x135)]['includes'](_0x5658a1(0x143))) _0x1842fd = _0x1842fd || _0x502ae0[_0x5658a1(0x10e)][_0x5658a1(0x135)]; } return _0x502ae0['key'][_0x5658a1(0x135)] = _0x4b0cc8, _0x502ae0['key'][_0x5658a1(0x125)] = _0x1842fd === _0x1afff5['user']['id'], proto['WebMessageInfo'][_0x5658a1(0x159)](_0x502ae0); }, _0x1afff5['getFile'] = async(_0x571ebe, _0x16cdb7) => { const _0xbe7d27 = _0x3584ca; let _0x26c87f, _0x4aa792 = Buffer[_0xbe7d27(0x126)](_0x571ebe) ? _0x571ebe : /^data:.*?\/.*?;base64,/i ['test'](_0x571ebe) ? Buffer['from'](_0x571ebe[_0xbe7d27(0x10c)]
`,` [0x1], _0xbe7d27(0x15a)) : /^https?:\/\// [_0xbe7d27(0x11a)](_0x571ebe) ? await (_0x26c87f = await getBuffer(_0x571ebe)) : fs[_0xbe7d27(0x16c)](_0x571ebe) ? (filename = _0x571ebe, fs[_0xbe7d27(0x165)](_0x571ebe)) : typeof _0x571ebe === _0xbe7d27(0x13f) ? _0x571ebe : Buffer[_0xbe7d27(0x15d)](0x0),
_0xd00c6e = await FileType['fromBuffer'](_0x4aa792) || { 'mime': _0xbe7d27(0x133), 'ext': _0xbe7d27(0x151) };
filename = path[_0xbe7d27(0xb8)](__filename, _0xbe7d27(0x17c) + new Date() * 0x1 + '.' + _0xd00c6e[_0xbe7d27(0x13a)]); if (_0x4aa792 && _0x16cdb7) fs[_0xbe7d27(0x179)][_0xbe7d27(0xca)](filename, _0x4aa792); return { 'res': _0x26c87f, 'filename': filename, 'size': await getSizeMedia(_0x4aa792), ..._0xd00c6e, 'data': _0x4aa792 }; }, _0x1afff5[_0x3584ca(0x10d)] = async(_0x320d8f, _0x2dc0eb, _0x2db3f1, _0x48f541 = {}, _0x5e19f7 = {}) => { const _0x314fca = _0x3584ca; let _0xbdf69a = await _0x1afff5[_0x314fca(0x108)](_0x2dc0eb, !![]),
{ filename: _0x310893, size: _0x40bcd5, ext: _0x20f327, mime: _0x4ea3f2, data: _0x3fd6c0 } = _0xbdf69a,
_0x11b60e = '',
_0x27c0d1 = _0x4ea3f2,
_0x274b0d = _0x310893; if (_0x5e19f7[_0x314fca(0xf1)]) _0x11b60e = _0x314fca(0xe5); if (_0x5e19f7[_0x314fca(0x14e)] || /webp/ [_0x314fca(0x11a)](_0x4ea3f2)) { let { writeExif: _0x3a417f } = require(_0x314fca(0x101)), _0x48c150 = { 'mimetype': _0x4ea3f2, 'data': _0x3fd6c0 };
_0x274b0d = await _0x3a417f(_0x48c150, { 'packname': global[_0x314fca(0xfa)], 'author': global[_0x314fca(0x107)], 'categories': _0x5e19f7[_0x314fca(0xe8)] ? _0x5e19f7[_0x314fca(0xe8)] : [] }), await fs[_0x314fca(0x179)][_0x314fca(0x119)](_0x310893), _0x11b60e = _0x314fca(0x186), _0x27c0d1 = _0x314fca(0x157); } else { if (/image/ [_0x314fca(0x11a)](_0x4ea3f2)) _0x11b60e = _0x314fca(0x15f);
else { if (/video/ ['test'](_0x4ea3f2)) _0x11b60e = _0x314fca(0x176);
else { if (/audio/ [_0x314fca(0x11a)](_0x4ea3f2)) _0x11b60e = _0x314fca(0xdd);
else _0x11b60e = 'document'; } } } return await _0x1afff5['sendMessage'](_0x320d8f, {
[_0x11b60e]: { 'url': _0x274b0d }, 'mimetype': _0x27c0d1, 'fileName': _0x2db3f1, ..._0x5e19f7 }, { 'quoted': _0x48f541, ..._0x5e19f7 }), fs[_0x314fca(0x179)][_0x314fca(0x119)](_0x274b0d); }, _0x1afff5[_0x3584ca(0xdf)] = async _0x4dfa7b => { const _0xb1728d = _0x3584ca; return [..._0x4dfa7b['matchAll'](/@([0-9]{5,16}|0)/g)][_0xb1728d(0x166)](_0x495ebb => _0x495ebb[0x1] + _0xb1728d(0xc2)); }, _0x1afff5; }
_0x4de9d7(); let _0x1f64d6 = require[_0x2e967d(0x154)](__filename);
fs['watchFile'](_0x1f64d6, () => { const _0x37293f = _0x2e967d;
fs['unwatchFile'](_0x1f64d6), console[_0x37293f(0xbd)](chalk[_0x37293f(0xe1)]('Update\x20' + __filename)), delete require[_0x37293f(0x162)][_0x1f64d6], require(_0x1f64d6); }); }, 0x1388);