indrajitghosh20006/Testseller_01botPublic · Bot Template
AIThis bot provides an admin‑controlled system for managing user balances, products, and reseller roles. It includes commands to add balances (via manual input, Binance Pay, or UPI), approve and credit payments, and set up product listings with categories and pricing. Admins can also add resellers, view reseller info, and manage stock entries. The bot uses built‑in TeleBotHost APIs such as Bot, Api, HTTP, and Libs for database operations and message handling.
Commerceadminbalanceproductresellerpaymentsbinance
138 commands0 envUpdated 17h agoCreated Sep 27, 2026
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 = "7839151435";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}