Shahriyaahh/downloader_69RobotPublic · Bot Template
🎬 Universal Downloader Bot is a fast and easy-to-use Telegram bot that lets you download videos from Facebook, Instagram, and YouTube with a single command. Simply send "/dl <video_link>", and the bot will fetch the video for you in seconds.
Utilitydownloadervideofacebookinstagramyoutubeping
9 commands0 envUpdated 26d agoCreated Aug 6, 2026
commands/_ping.js
javascript · 107 lines
1/**#command2name: /ping3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// Command: /ping13 14// Save bot start time15let started = Bot.get("BOT_STARTED");16 17if (!started) {18 started = Date.now();19 Bot.set("BOT_STARTED", started);20}21 22const start = Date.now();23 24// Progress Bar25function bar(percent) {26 const filled = Math.floor(percent / 10);27 return "█".repeat(filled) + "░".repeat(10 - filled);28}29 30// Loading Message31let ping = await Api.sendMessage({32 text: `<b>⚡ Initializing System...</b>33 34<code>${bar(0)}</code> 0%`,35 parse_mode: "HTML"36});37 38// Loading Animation39for (let i = 20; i <= 100; i += 20) {40 await sleep(150);41 42 await ping.editText(43`<b>⚡ Initializing System...</b>44 45<code>${bar(i)}</code> ${i}%`,46{47 parse_mode: "HTML"48 });49}50 51// Measure Telegram API latency52await Api.getMe();53 54const latency = Date.now() - start;55const uptime = Date.now() - started;56 57// Format Uptime58function uptimeText(ms) {59 let sec = Math.floor(ms / 1000);60 61 let d = Math.floor(sec / 86400);62 sec %= 86400;63 64 let h = Math.floor(sec / 3600);65 sec %= 3600;66 67 let m = Math.floor(sec / 60);68 sec %= 60;69 70 return `${d}d ${h}h ${m}m ${sec}s`;71}72 73// Network Quality74let network = "🔴 Poor";75 76if (latency < 80) {77 network = "🟢 Excellent";78} else if (latency < 150) {79 network = "🟢 Very Good";80} else if (latency < 300) {81 network = "🟡 Good";82} else if (latency < 600) {83 network = "🟠 Slow";84}85 86// Final Dashboard87await ping.editText(88`<pre>89╔══════════════════════════════╗90║ SYSTEM INFORMATION ║91╠══════════════════════════════╣92║ STATUS │ 🟢 ONLINE ║93║ LATENCY │ ${latency} ms94║ NETWORK │ ${network}95║ UPTIME │ ${uptimeText(uptime)}96║ CPU │ ██████████ 100% ║97║ SERVER │ Operational ║98╚══════════════════════════════╝99</pre>100 101━━━━━━━━━━━━━━━━━━━━━━102👨💻 <b>Developer</b>103<a href="tg://user?id=8375123229">Shahriar Jaman</a>`,104{105 parse_mode: "HTML",106 disable_web_page_preview: true107});