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 8h agoCreated Oct 30, 2026
Back to folder

commands/_set_payment_upi_btn.js

javascript ยท 28 lines

Raw
1/**#command2name: /set_payment_upi_btn3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12try {13  var adminId = Bot.getProperty("owner_id") || "7839151435";14  if (String(user.telegramid) !== String(adminId)) return;15 16  var currentKey = Bot.getProperty("gramupi_api_key") || "";17  var maskedKey = currentKey ? (String(currentKey).slice(0, 10) + "โ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ขโ€ข") : "Not Set";18  User.setProperty("set_payment_upi_step", "waiting_input", "string");19  Bot.sendMessage(20    "<blockquote>๐Ÿ’ณ <b>Set Gram UPI Gateway Payment</b></blockquote>\n\n" +21    "<b>Reply with your Gram UPI Gateway API key:</b>\n<code>YOUR_API_KEY</code>\n\n" +22    "<b>Current API Key:</b> <code>" + maskedKey + "</code>\n\n" +23    "UPI ID เค•เฅ€ เคœเคฐเฅ‚เคฐเคค เคจเคนเฅ€เค‚ เคนเฅˆ; Gram UPI Gateway order response เคธเฅ‡ UPI ID/QR automatically เคฎเคฟเคฒเฅ‡เค—เคพ.",24    { parse_mode: "HTML" }25  );26} catch (err) {27  Bot.sendMessage("โš ๏ธ System Error: " + err.message);28}