indrajitghosh20006/Igstore_01botPublic Β· Bot Template
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 8h agoCreated Oct 30, 2026
commands/_check.js
javascript Β· 61 lines
1/**#command2name: /check3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12/**#command13name: /check14answer:15keyboard:16parse_mode: markdown17aliases:18allow_only_group: false19need_reply: false20case_insensitive: false21is_web: 022#command**/23 24try {25 var runOptions = (typeof options !== "undefined" && options) ? options : {};26 var order_id = params ? params.trim() : (runOptions.params ? String(runOptions.params).trim() : "");27 if (!order_id && request && request.callback_query) {28 order_id = request.callback_query.data.replace("/check", "").replace("check", "").trim().split(" ")[0];29 }30 if (!order_id) {31 var queryId = request ? (request.id || (request.callback_query && request.callback_query.id)) : null;32 if (queryId) Api.answerCallbackQuery({callback_query_id: queryId, text: "β Invalid or Missing Order ID!", show_alert: true});33 else Bot.sendMessage("β Invalid or Missing Order ID!", {parse_mode:"HTML"});34 return;35 }36 37 try {38 var verifyUserId = user ? user.telegramid : null;39 if (verifyUserId && request && request.message && request.message.message_id) {40 Bot.setProperty("qr_msg_id_" + verifyUserId, request.message.message_id, "string");41 User.setProperty("qr_msg_id_" + verifyUserId, request.message.message_id, "string");42 }43 } catch (e) {}44 45 var apiKey = String(Bot.getProperty("gramupi_api_key") || "").trim();46 if (!apiKey) {47 Bot.sendMessage("β Gram UPI Gateway API Key configured nahi hai. Admin Panel β Set Payment ( UPI + Gram UPI Gateway ) se set karein.");48 return;49 }50 51 // One verification request per button press. Do not recursively schedule /check;52 // this prevents TeleBotHost runCommand chain-limit errors.53 var verifyUrl = "https://gateway.anujbots.in/autoverify.php?api_key=" + encodeURIComponent(String(apiKey)) + "&order_id=" + encodeURIComponent(order_id) + "&cb=" + new Date().getTime();54 HTTP.get({55 url: verifyUrl,56 success: "/onCheck",57 error: "/onCheck"58 });59} catch (err) {60 Bot.sendMessage("β οΈ System Error: " + err.message);61}