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/_reseller.js
javascript · 72 lines
1/**#command2name: /reseller3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12try {13 if (request && request.id) {14 HTTP.post({15 url: "https://api.telegram.org/bot" + bot.token + "/answerCallbackQuery",16 body: { callback_query_id: request.id }17 });18 }19 20 // ⚡ DYNAMIC PRICE FETCH: Agar koi price set nahi hai toh default 450 dikhega21 let price = Bot.getProperty("reseller_price") || 70;22 23 let text = "━━━━━━━━━━━━━━━━━━━━\n" +24 "<tg-emoji emoji-id='6195245249351129913'>👑</tg-emoji> <b>UPGRADE TO RESELLER</b>\n" +25 "━━━━━━━━━━━━━━━━━━━━\n\n" +26 "<blockquote>" +27 "<tg-emoji emoji-id='6193006377389005214'>🎉</tg-emoji> <b>Benefits:</b>\n" +28 "• Special reseller prices on ALL products\n" +29 "• Priority support\n" +30 "• Balance tracking dashboard\n\n" +31 "<tg-emoji emoji-id='6195222374355311655'>✔</tg-emoji> <b>One-time Investment:</b> ₹" + price + "\n\n" +32 "<tg-emoji emoji-id='6194966974125055544'>⚠️</tg-emoji> <b>Terms:</b>\n" +33 "• Generate at least 1 license every 30 days\n" +34 "• Inactive for 30+ days → automatic downgrade\n" +35 "• You can re-upgrade anytime by paying again\n\n" +36 "Ready to upgrade? <tg-emoji emoji-id='6194922667242429131'>👈</tg-emoji>" +37 "</blockquote>";38 39 let keyboard = {40 inline_keyboard: [41 [42 {43 text: "Upgrade Now",44 callback_data: "/process_buy",45 style: "success", 46 icon_custom_emoji_id: "6195245249351129913"47 },48 {49 text: "Back",50 callback_data: "/back", 51 style: "danger",52 }53 ]54 ]55 };56 57 let endpoint = (request && request.message) ? "editMessageText" : "sendMessage";58 let requestBody = {59 chat_id: chat.chatid,60 text: text,61 parse_mode: "HTML",62 reply_markup: JSON.stringify(keyboard)63 };64 65 if (endpoint === "editMessageText") requestBody.message_id = request.message.message_id;66 67 HTTP.post({68 url: "https://api.telegram.org/bot" + bot.token + "/" + endpoint,69 body: requestBody70 });71 72} catch (err) {}