pnxh2371/Ankit_mods_store_botPublic · Bot Template

ProfileTelegram

AI𝐀ɴᴋɪᴛ 𝐌ᴏᴅꜱ 𝐒ᴛᴏʀᴇ 🛍 appears to be a Telegram automation bot. Commands include /*, /addbal, /addbal_all, /addbal_binance, /addbal_binance_approve, /addbal_binance_paid, /addbal_upi, /addcat_id. Observed in code: messaging, http, libs, keyboards, payments.

Utilityutility
133 commands0 envUpdated 7h agoCreated Sep 10, 2026
Back to folder

commands/_set_how_link.js

javascript · 47 lines

Raw
1/**#command2name: /set_how_link3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// =========================================================13// 🔧 ADMIN — Configure the "How To Use" video/tutorial link14// Usage: /set_how_link https://youtu.be/xxxx15// =========================================================16 17try {18  var adminId = Bot.getProperty("owner_id") || "6182067327";19  var requesterId = String(user.telegramid);20  var isCoAdmin0 = Bot.getProperty("co_admin_" + requesterId);21  if (requesterId !== String(adminId) && !isCoAdmin0) {22    Bot.sendMessage("❌ You are not the admin!");23    return;24  }25 26  if (!params || params.trim() === "") {27    var currentLink = Bot.getProperty("how_to_use_link") || "https://youtu.be/oe2Ja08Vvpo (default)";28    Bot.sendMessage(29      "⚠️ <b>Format:</b> <code>/set_how_link https://youtu.be/xxxx</code>\n\n" +30      "<b>Current link:</b> " + currentLink,31      { parse_mode: "HTML" }32    );33    return;34  }35 36  var link = params.trim();37  if (link.indexOf("http") !== 0) {38    Bot.sendMessage("❌ Link http:// ya https:// se shuru honi chahiye!");39    return;40  }41 42  Bot.setProperty("how_to_use_link", link, "string");43  Bot.sendMessage("✅ <b>How To Use link update ho gaya:</b>\n" + link, { parse_mode: "HTML" });44 45} catch (err) {46  Bot.sendMessage("⚠️ Error: " + err.message);47}