indrajitghosh20006/HgfhhuybotPublic · Bot Template
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
commands/_myreseller.js
javascript · 33 lines
1/**#command2name: /myreseller3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12try {13 var userId = user.telegramid;14 var isReseller = Bot.getProperty("is_reseller_" + userId);15 16 if (!isReseller) {17 Bot.sendMessage("<tg-emoji emoji-id='6143299028655280273'>❌</tg-emoji> Aapke paas reseller role nahi hai.", { parse_mode: "HTML" });18 return;19 }20 21 var name = user.first_name || "N/A";22 var username = user.username ? "@" + user.username : "N/A";23 24 var infoText = "<blockquote><b><tg-emoji emoji-id='5346024644635804737'>🔰</tg-emoji> MY RESELLER ACCOUNT INFO</b>\n\n" +25 "• <b>Name:</b> " + name + "\n" +26 "• <b>User ID:</b> <code>" + userId + "</code>\n" +27 "• <b>Username:</b> " + username + "</blockquote>";28 29 Bot.sendMessage(infoText, { parse_mode: "HTML" });30 31} catch (err) {32 Bot.sendMessage("Error: " + err.message);33}