indrajitghosh20006/Testseller_01botPublic · Bot Template

ProfileTelegram

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
Back to folder

commands/_addreseller_info.js

javascript · 31 lines

Raw
1/**#command2name: /addreseller_info3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// =========================================================13// 👑 Admin panel button — shows usage instructions for /addreseller14// (a real Telegram command needs to be typed since it takes a User ID param)15// =========================================================16 17try {18  var ownerId = Bot.getProperty("owner_id") || "7839151435";19  var isCoAdmin = Bot.getProperty("co_admin_" + String(chat.chatid));20  if (String(chat.chatid) !== ownerId && !isCoAdmin) { return; }21 22  Bot.sendMessage(23    "<blockquote>👑 <b>DIRECT RESELLER (No Payment)</b></blockquote>\n\n" +24    "<b>Usage:</b> <code>/addreseller USERID</code>\n" +25    "<i>Example:</i> <code>/addreseller 123456789</code>\n\n" +26    "<i>User turant permanent Reseller ban jaayega, koi payment nahi lagegi. Unhe ek premium notification bhi mil jaayega.</i>",27    { parse_mode: "HTML" }28  );29} catch (err) {30  Bot.sendMessage("⚠️ Error: " + err.message);31}