ashoksarande3/ASHOK_HACK_STORE_BOTPublic · Bot Template

AIThis bot operates as a commercial storefront for selling Free Fire game hacks and cheats via UPI QR code payments. It features a dynamic pricing system with separate normal and reseller prices, product plans with flexible durations (days, hours, minutes), and a reseller program requiring a one-time upgrade fee. The bot handles payment verification through QR code generation and expiry tracking, user verification via Telegram contact sharing, and admin tools for stock management, plan creation, and ownership transfer. It includes a balance system, maintenance mode, and Telegram Stars payment fallback. The codebase uses TeleBotHost's TBL JavaScript APIs (Bot, Api, HTTP, db properties, Libs) for all logic.

Commercefreefiregame-hacksupi-paymentsqr-codesreseller-systemdynamic-pricing
ProfileTelegram
102 commands0 envUpdated 16d agoCreated Aug 22, 2026
Back to folder

commands/_addreseller.js

javascript · 51 lines

Raw
1/**#command2name: /addreseller3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12try {13  var adminId = Bot.getProperty("owner_id") || "8660373585";14  var isCoAdmin0 = Bot.getProperty("co_admin_" + String(chat.chatid));15  if (String(chat.chatid) !== adminId && !isCoAdmin0) return;16 17  // Input se User ID nikalna18  var targetId = params ? params.trim() : null;19 20  if (!targetId) {21    Bot.sendMessage("❌ <b>Usage:</b> <code>/addreseller 123456789</code>", { parse_mode: "HTML" });22    return;23  }24 25  // Pehle check karein ki kya wo user pehle se reseller hai26  var alreadyReseller = Bot.getProperty("is_reseller_" + targetId);27 28  if (alreadyReseller === true) {29    Bot.sendMessage("<tg-emoji emoji-id='5346024644635804737'>🔰</tg-emoji> Yeh user (<code>" + targetId + "</code>) <b>pehle se hi Reseller hai!</b>", { parse_mode: "HTML" });30    return; // Code yahan ruk jayega31  }32 33  // Agar reseller nahi hai, to save karein34  Bot.setProperty("is_reseller_" + targetId, true, "boolean");35 36  Bot.sendMessage("<tg-emoji emoji-id='6064138396228392033'>✅</tg-emoji> User <code>" + targetId + "</code> successfully reseller role me add ho gaya hai!", { parse_mode: "HTML" });37 38  // Reseller ko premium notification bhejna39  var notifText = "<blockquote><b><tg-emoji emoji-id='6064138396228392033'>✨</tg-emoji> CONGRATULATIONS <tg-emoji emoji-id='6064138396228392033'>✨</tg-emoji></b>\n\n" +40                  "<tg-emoji emoji-id='5346024644635804737'>🔰</tg-emoji> You Are Now A Reseller.\n" +41                  "Check Your Discounted Store /start To Check Now<tg-emoji emoji-id='6298298582982199311'>💰</tg-emoji></blockquote>";42                  43  Api.sendMessage({44    chat_id: targetId,45    text: notifText,46    parse_mode: "HTML"47  });48 49} catch (err) {50  Bot.sendMessage("Error: " + err.message);51}