mansuriamaan803/SANJEEVFFSTORE_botPublic · Bot Template

AIThis bot is a commerce platform for selling digital products, primarily focused on FreeFire accounts and related services. It provides admin tools for managing products, categories, stock, reseller roles, and a balance system for user payments. Users can browse products, apply coupons, and check their balance through an interactive interface with premium emojis and inline keyboards.

Commercecommercestoreproductsresellerbalancecoupon
ProfileTelegram
102 commands0 envUpdated 12d agoCreated Aug 26, 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 = "8963001413";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}