ShahriarAbidbd/SmartifyXBotPublic · Bot Template

Do Tasks Smartly with SmartifyX 😎

Utilitydownloaderyoutubeinstagramfacebookspoilercontent-protection
ProfileTelegram
25 commands2 envUpdated 1d agoCreated Jul 28, 2026
Back to folder

commands/Admin Panel/check_api_health.js

javascript · 47 lines

Raw
1/**#command2name: check_api_health3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12if (!user.id == 7168234650) {13  return14}15 16let check = await Api.editMessageText({17  text: `<b>✅ Cheking API Health.....</b>`,18  chat_id: chat.id,19  message_id: request.message.message_id,20  parse_mode: "html"21})22 23//downloader api24let downloader_api_res = await HTTP.post({25  url: Bot.get("downloader_api"),26  body: {27    url: "https://youtube.com/shorts/KV7iIkwUx9U"28  }29})30let downloader_api = "🔴"31if (downloader_api_res.ok) downloader_api = "🟢"32 33Api.editMessageText({34  text: `1.<b>Downloader Api:</b> ${downloader_api}`,35  chat_id: chat.id,36  message_id: check.result.message_id,37  reply_markup: {38    inline_keyboard: [39      [{40        text: "🔙 Back",41        callback_data: "admin_panel_home",42        style: "danger"43      }]44    ]45  },46  parse_mode: "html"47})