Skip to content

Instantly share code, notes, and snippets.

@Mr-rabbit-xd
Last active March 27, 2025 02:17
Show Gist options
  • Save Mr-rabbit-xd/10ec2aeee1c5c7b9a2285413372dae08 to your computer and use it in GitHub Desktop.
Save Mr-rabbit-xd/10ec2aeee1c5c7b9a2285413372dae08 to your computer and use it in GitHub Desktop.
Use only Jarvis md
(function (_0x5f3a3b, _0x2b7f1a) {
const _0x1d82 = function (_0x4a3f5b, _0x1d82ac) {
_0x4a3f5b = _0x4a3f5b - 0;
return _0x5f3a3b[_0x4a3f5b];
};
const _0x4a3f = [
"axios",
"reply",
"Instagram downloader",
"https://delirius-apiofc.vercel.app/download/igv2?url=",
"video",
"Invalid Instagram *url*",
"Failed to fetch Instagram media.",
"An error occurred: ",
"No caption available.",
"../lib/",
"Maid\x20by\x20\x4F\x79\x79\x73\x72\x65\x65\x6A\x61\x6E"
];
const { System, isPrivate } = require(_0x1d82(9));
const axios = require(_0x1d82(0));
System({
pattern: '2insta ?(.*)',
fromMe: isPrivate,
type: 'download',
desc: _0x1d82(2),
}, async (message, match) => {
try {
function extractUrlsFromText(text) {
const urlRegex = /(https?:\/\/[^\s]+)/g;
return text ? text.match(urlRegex) || [] : [];
}
const url = (await extractUrlsFromText(match || message.reply_message.text))[0];
if (!url) return await message[_0x1d82(1)]("Please provide an Instagram *url*");
if (!url.includes("instagram.com")) return await message[_0x1d82(1)](_0x1d82(5));
const apiUrl = _0x1d82(3) + url;
const { data } = await axios.get(apiUrl);
if (!data.status || !data.data) {
return await message[_0x1d82(1)](_0x1d82(6));
}
const { username, fullname, caption, download } = data.data;
const captionText = `📝 *Caption:*\n${caption || _0x1d82(8)}\n\n> ` + _0x1d82(10);
for (const media of download) {
if (media.type === _0x1d82(4)) {
await message.sendFromUrl(media.url, { caption: captionText, quoted: message.data });
break;
}
}
} catch (e) {
console.error("Error in Instagram downloader command:", e);
await message[_0x1d82(1)](_0x1d82(7) + e.message);
}
});
})([
"axios",
"reply",
"Instagram downloader",
"https://delirius-apiofc.vercel.app/download/igv2?url=",
"video",
"Invalid Instagram *url*",
"Failed to fetch Instagram media.",
"An error occurred: ",
"No caption available.",
"../lib/",
"Maid\x20by\x20\x4F\x79\x79\x73\x72\x65\x65\x6A\x61\x6E"
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment