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/_remstock_id.js

javascript · 52 lines

Raw
1/**#command2name: /remstock_id3answer: 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 categories = Bot.getProperty("ff_categories") || {};17  var keyboard = [];18  var row = [];19  var count = 0;20 21  for (var slug in categories) {22    var catName = categories[slug].name || slug.toUpperCase();23    24    // Har row me 2 buttons dikhane ke liye25    row.push({ 26      text: "📁 " + catName, 27      callback_data: "/view_rem_stock " + slug 28    });29    30    count++;31    if (count % 2 === 0) {32      keyboard.push(row);33      row = [];34    }35  }36  if (row.length > 0) keyboard.push(row);37 38  if (keyboard.length === 0) {39    Bot.sendMessage("❌ System me abhi koi category nahi bani hai.");40    return;41  }42 43  Api.sendMessage({44    chat_id: adminId,45    text: "📂 <b>Select a Category to view stock for deletion:</b>",46    parse_mode: "HTML",47    reply_markup: JSON.stringify({ inline_keyboard: keyboard })48  });49 50} catch (e) {51  Bot.sendMessage("Error: " + e.message);52}