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
146 commands0 envUpdated 2d agoCreated Sep 5, 2026
commands/_addbal_binance_paid.js
javascript · 65 lines
1/**#command2name: /addbal_binance_paid3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// =========================================================13// ✅ "I Paid" (Binance) — asks user directly for the payment screenshot.14// _start.js MODULE 4c catches the photo reply, forwards it to admin,15// and tells the user to wait for admin verification.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 inrAmount = User.getProperty("binance_pending_amount_inr");23 let usdAmount = User.getProperty("binance_pending_amount_usd");24 25 if (!inrAmount) {26 if (callbackId) {27 Api.answerCallbackQuery({28 callback_query_id: String(callbackId),29 text: "⚠️ Order expired. Please start again from Add Balance.",30 show_alert: true31 });32 }33 return;34 }35 36 User.setProperty("binance_utr_step", "awaiting_screenshot", "string");37 38 let promptText =39 "<blockquote><tg-emoji emoji-id='6100170496077204999'>📝</tg-emoji> <b>SUBMIT PAYMENT SCREENSHOT</b></blockquote>\n\n" +40 "<tg-emoji emoji-id='6312263493051489212'>💰</tg-emoji> <b>Amount:</b> $<code>" + usdAmount + "</code> <i>(₹" + inrAmount + ")</i>\n\n" +41 "<i>Please send your <b>Payment Screenshot</b> now (as a photo):</i>";42 43 if (request && request.message && request.message.message_id) {44 try {45 Api.editMessageCaption({46 chat_id: chat.chatid,47 message_id: request.message.message_id,48 caption: promptText,49 parse_mode: "HTML",50 reply_markup: JSON.stringify({ inline_keyboard: [[{ text: "Cancel", callback_data: "/cancel_topup", style: "danger" }]] })51 });52 } catch (e) {53 Api.sendMessage({ chat_id: chat.chatid, text: promptText, parse_mode: "HTML" });54 }55 } else {56 Bot.sendMessage(promptText, { parse_mode: "HTML" });57 }58 59 if (callbackId) {60 Api.answerCallbackQuery({ callback_query_id: String(callbackId) });61 }62 63} catch (err) {64 Bot.sendMessage("⚠️ System Error: " + err.message);65}