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/_gencoupon.js
javascript · 35 lines
1/**#command2name: /gencoupon3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// =========================================================13// 🎟 ADMIN — Coupon Generator Wizard (Step 1: kicks off in _start.js MODULE 3)14// =========================================================15 16try {17 var adminId = Bot.getProperty("owner_id") || "8477746023";18 var isCoAdmin0 = Bot.getProperty("co_admin_" + String(chat.chatid));19 if (String(chat.chatid) !== adminId && !isCoAdmin0) {20 Bot.sendMessage("❌ You are not the admin!");21 return;22 }23 24 User.setProperty("coupon_gen_step", "code", "string");25 26 Bot.sendMessage(27 "<blockquote>🎟 <b>COUPON GENERATOR</b></blockquote>\n\n" +28 "<tg-emoji emoji-id='6080214566191505147'>🏷</tg-emoji> <b>Coupon code kya rakhna hai?</b>\n" +29 "<i>Type karke bhejein, jaise: SAVE10</i>",30 { parse_mode: "HTML" }31 );32 33} catch (err) {34 Bot.sendMessage("⚠️ Error: " + err.message);35}