indrajitghosh20006/Igstore_01botPublic Β· Bot Template

ProfileTelegram

AIThe bot provides an admin interface for a digital store, allowing the owner or co‑admins to add balances, products, plans, and categories. It supports payment workflows via UPI and Binance Pay, automatically generating QR codes and handling manual approval of deposits. The code patches inline keyboards to use premium emoji icons and includes helper functions for user and bot properties. Overall, it serves as a commerce management tool for a Telegram-based storefront.

Commercestoreadminbalanceproductplancategory
170 commands0 envUpdated 7h agoCreated Oct 30, 2026
Back to folder

commands/_how.js

javascript Β· 117 lines

Raw
1/**#command2name: /how3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// PREMIUM BUTTON ICONS13(function(){14  try {15    if (!JSON.__premiumPatched) {16      var __origStringify = JSON.stringify;17      JSON.stringify = function(value, replacer, space) {18        try {19          if (value && value.inline_keyboard && Array.isArray(value.inline_keyboard)) {20            var premiumIds = [21              "6143444134125379822",22              "6091379307907652768",23              "6147534454819661264",24              "6147817325660741985",25              "6235683689292897318",26              "6102856637343600044"27            ];28            var rows = value.inline_keyboard.map(function(row, ri) {29              if (!Array.isArray(row)) return row;30              return row.map(function(btn, bi) {31                if (!btn || typeof btn !== "object") return btn;32                var copy = {};33                for (var k in btn) copy[k] = btn[k];34                if (!copy.icon_custom_emoji_id) copy.icon_custom_emoji_id = premiumIds[(ri + bi) % premiumIds.length];35                return copy;36              });37            });38            var cloned = {};39            for (var key in value) cloned[key] = value[key];40            cloned.inline_keyboard = rows;41            return __origStringify.call(JSON, cloned, replacer, space);42          }43        } catch (e) {}44        return __origStringify.call(JSON, value, replacer, space);45      };46      JSON.__premiumPatched = true;47    }48  } catch (e) {}49})();50 51 52 53try {54  // Click loading spinner band karne ke liye instant answer55  if (request && request.id) {56    HTTP.post({57      url: "https://api.telegram.org/bot" + bot.token + "/answerCallbackQuery",58      body: { callback_query_id: request.id }59    });60  }61 62  var chatId = chat.chatid;63  var messageId = request && request.message ? request.message.message_id : null;64 65  // Premium Text with your custom premium emojis66  var text = "━━━━━━━━━━━━━━━━━━━━\n" +67             "<tg-emoji emoji-id='6195222374355311655'>πŸ‘‘</tg-emoji> <b>HOW TO USE THE BOT</b>\n" +68             "━━━━━━━━━━━━━━━━━━━━\n\n" +69             "<blockquote>" +70             "<tg-emoji emoji-id='6219605968846591564'>😎</tg-emoji> Follow these simple steps to use the bot:\n\n" +71             "<tg-emoji emoji-id='6194809138371904539'>πŸ“‰</tg-emoji> 1. Add balance to your wallet first.\n" +72             "<tg-emoji emoji-id='6298597328022407025'>πŸ’°</tg-emoji> 2. Go to products section and pick your plan.\n" +73             "<tg-emoji emoji-id='5316728625465146646'>πŸ‘†</tg-emoji> 3. Click buy and copy your instant key!\n\n" +74             "<i>Watch the detailed video tutorial below for full guide!</i>" +75             "</blockquote>";76 77  // Inline Keyboard configuration with direct URL system78  var howToLink = Bot.getProperty("how_to_use_link") || "http://t.me/IG_CHEATS_OWNER_01";79  var keyboard = {80    inline_keyboard: [81      [82        {83          text: "Watch Video Guide",84          url: howToLink, 85          style: "primary", // ⚑ Style property added here as requested86          icon_custom_emoji_id: "5258077307985207053" 87        }88      ],89      [90        {91          text: "Back",92          callback_data: "/back", 93          style: "danger", 94          icon_custom_emoji_id: "5316623368701623632"95        }96      ]97    ]98  };99 100  var endpoint = messageId ? "editMessageText" : "sendMessage";101  var requestBody = {102    chat_id: String(chatId),103    text: text,104    parse_mode: "HTML",105    reply_markup: JSON.stringify(keyboard)106  };107 108  if (messageId) {109    requestBody.message_id = Number(messageId);110  }111 112  HTTP.post({113    url: "https://api.telegram.org/bot" + bot.token + "/" + endpoint,114    body: requestBody115  });116 117} catch (err) {}