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_dailygift_price.js

javascript · 51 lines

Raw
1/**#command2name: /set_dailygift_price3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// =========================================================13// 🔧 ADMIN — Configure the /dailygift fixed reward amount14// Usage: /set_dailygift_price 515// =========================================================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 currentAmount = Bot.getProperty("daily_gift_amount");28    if (currentAmount === undefined || currentAmount === null) currentAmount = "1 (default)";29    Bot.sendMessage(30      "⚠️ <b>Format:</b> <code>/set_dailygift_price 5</code>\n\n" +31      "<b>Current amount:</b> ₹<code>" + currentAmount + "</code>",32      { parse_mode: "HTML" }33    );34    return;35  }36 37  var newAmount = Number(params.trim());38  if (isNaN(newAmount) || newAmount <= 0) {39    Bot.sendMessage("❌ Invalid amount! Sirf positive number bhejein, jaise: <code>5</code>", { parse_mode: "HTML" });40    return;41  }42 43  Bot.setProperty("daily_gift_amount", newAmount, "number");44  Bot.sendMessage(45    "✅ <b>Daily Gift amount update ho gaya:</b> ₹" + newAmount.toFixed(2) + "\n\n<i>Ab har user ko is naye amount ka Daily Gift milega.</i>",46    { parse_mode: "HTML" }47  );48 49} catch (err) {50  Bot.sendMessage("⚠️ Error: " + err.message);51}