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/_apiset.js
javascript · 20 lines
1/**#command2name: /apiset3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12try {13 var ownerId=String(Bot.getProperty("owner_id")||"8477746023"), uid=String(chat.chatid), co=Bot.getProperty("co_admin_"+uid);14 if(uid!==ownerId && !co) return;15 var id=params?String(params).trim():"", reg=Bot.getProperty("api_registry")||{};16 if(!id || !reg[id]){Bot.sendMessage("❌ Use <code>/apiset API_ID</code>",{parse_mode:"HTML"});return;}17 if(reg[id].enabled===false){Bot.sendMessage("❌ This API is disabled.");return;}18 Bot.setProperty("active_reseller_api",id,"string");19 Bot.sendMessage("✅ Active reseller API set to <code>"+id+"</code>\nAll external reseller purchases will use this API.",{parse_mode:"HTML"});20} catch(e){Bot.sendMessage("⚠️ API Set Error: "+e.message);}