indrajitghosh20006/HgfhhuybotPublic · Bot Template

ProfileTelegram

AIThis bot provides a command‑based admin interface for managing user balances, products, and resellers. It supports adding balances via UPI or Binance Pay, approving payments, and configuring product details and categories. The bot also handles user role changes, stock uploads, and offers a simple calculator UI for entering amounts. All interactions are handled through short commands and inline keyboards, with no long‑running listeners or external frameworks.

Utilityadminbalanceproductresellerpaymentupi
138 commands0 envUpdated 15h 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}