ayushyadav7970824760/goldensellingstore_botPublic · Bot Template

AIThis Telegram store bot lets customers browse digital products and plans, apply coupons, add funds via UPI, and receive purchased keys. It includes a full admin panel for managing products, reordering items, setting reseller prices, viewing and removing key stock, configuring UPI payment details and update links, and checking user balances. Co-admins and resellers are supported, and support tickets are forwarded to the admin.

Commercedigital_storeadmin_panelupi_paymentsresellercouponskey_stock
ProfileTelegram
146 commands0 envUpdated 2d agoCreated Sep 5, 2026
Back to folder

commands/_addbal_upi_manual_paid.js

javascript · 64 lines

Raw
1/**#command2name: /addbal_upi_manual_paid3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// =========================================================13// ✅ "I Paid" (Manual UPI) — asks user for the payment screenshot.14// _start.js MODULE 4d catches the photo reply, forwards it to admin with15// Approve/Reject buttons.16// =========================================================17 18try {19  let userId = user.telegramid;20  let callbackId = request ? (request.id || (request.callback_query && request.callback_query.id)) : null;21 22  let pendingAmount = User.getProperty("upi_manual_pending_amount");23 24  if (!pendingAmount) {25    if (callbackId) {26      Api.answerCallbackQuery({27        callback_query_id: String(callbackId),28        text: "⚠️ Order expired. Please start again from Add Balance.",29        show_alert: true30      });31    }32    return;33  }34 35  User.setProperty("upi_manual_utr_step", "awaiting_screenshot", "string");36 37  let promptText =38    "<blockquote>📝 <b>SUBMIT PAYMENT SCREENSHOT</b></blockquote>\n\n" +39    "💰 <b>Amount:</b> ₹<code>" + pendingAmount + "</code>\n\n" +40    "<i>Please send your <b>Payment Screenshot</b> now (as a photo):</i>";41 42  if (request && request.message && request.message.message_id) {43    try {44      Api.editMessageCaption({45        chat_id: chat.chatid,46        message_id: request.message.message_id,47        caption: promptText,48        parse_mode: "HTML",49        reply_markup: JSON.stringify({ inline_keyboard: [[{ text: "Cancel", callback_data: "/cancel_topup", style: "danger" }]] })50      });51    } catch (e) {52      Api.sendMessage({ chat_id: chat.chatid, text: promptText, parse_mode: "HTML" });53    }54  } else {55    Bot.sendMessage(promptText, { parse_mode: "HTML" });56  }57 58  if (callbackId) {59    Api.answerCallbackQuery({ callback_query_id: String(callbackId) });60  }61 62} catch (err) {63  Bot.sendMessage("⚠️ System Error: " + err.message);64}