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.
commands/_removereseller.js
javascript · 39 lines
1/**#command2name: /removereseller3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12try {13 var adminId = "8660373585";14 if (String(chat.chatid) !== adminId) return;15 16 var targetId = params ? params.trim() : null;17 18 if (!targetId) {19 Bot.sendMessage("❌ <b>Usage:</b> <code>/removereseller 123456789</code>", { parse_mode: "HTML" });20 return;21 }22 23 Bot.setProperty("is_reseller_" + targetId, false, "boolean");24 25 Bot.sendMessage("<tg-emoji emoji-id='6143299028655280273'>☠</tg-emoji> User <code>" + targetId + "</code> ka reseller role remove kar diya gaya hai.", { parse_mode: "HTML" });26 27 // User ko notification28 var removeNotif = "<blockquote><b><tg-emoji emoji-id='6143299028655280273'>⚠️</tg-emoji> ROLE REMOVED</b>\n\n" +29 "Aapka **Reseller Role** admin dwara remove kar diya gaya hai. Ab aapko normal prices show hongi.</blockquote>";30 31 Api.sendMessage({32 chat_id: targetId,33 text: removeNotif,34 parse_mode: "HTML"35 });36 37} catch (err) {38 Bot.sendMessage("Error: " + err.message);39}