mansuriamaan803/SANJEEVFFSTORE_botPublic · Bot Template
AIThis bot is a commerce platform for selling digital products, primarily focused on FreeFire accounts and related services. It provides admin tools for managing products, categories, stock, reseller roles, and a balance system for user payments. Users can browse products, apply coupons, and check their balance through an interactive interface with premium emojis and inline keyboards.
Commercecommercestoreproductsresellerbalancecoupon
102 commands0 envUpdated 12d agoCreated Aug 26, 2026
commands/_reseller.js
javascript · 73 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 icon_custom_emoji_id: "5893163582194978381"53 }54 ]55 ]56 };57 58 let endpoint = (request && request.message) ? "editMessageText" : "sendMessage";59 let requestBody = {60 chat_id: chat.chatid,61 text: text,62 parse_mode: "HTML",63 reply_markup: JSON.stringify(keyboard)64 };65 66 if (endpoint === "editMessageText") requestBody.message_id = request.message.message_id;67 68 HTTP.post({69 url: "https://api.telegram.org/bot" + bot.token + "/" + endpoint,70 body: requestBody71 });72 73} catch (err) {}