devbro468/Dev_x_store_botPublic · Bot Template

AIThis bot operates a digital storefront (DEV X STORE) selling subscription-based products — likely game hacks, accounts, or access keys — categorized by platform (Android Root, Non-Root, iPhone). It features a reseller program with discounted pricing, a dual-currency wallet (INR balance + Telegram Stars/XTR), and a full admin/co-admin panel for managing products, plans, per-plan pricing, stock (keys/accounts), coupons, and API endpoints. Purchases flow through a plan selection screen offering wallet payment, Stars invoices (sendInvoice with XTR currency), and coupon application. Successful Stars payments are handled via successful_payment webhook, crediting wallet or delivering keys directly. Admin tools include user listing with chunked messaging, stock viewing/deletion with inline keyboards, co-admin management, and API registry updates. The bot registers users on first interaction and

Commercecommercedigital-goodsstars-paymentreseller-systemadmin-panelstock-management
ProfileTelegram
119 commands0 envUpdated 15d agoCreated Aug 23, 2026
Back to folder

commands/_apilist.js

javascript · 24 lines

Raw
1/**#command2name: /apilist3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12try {13  var ownerId=String(Bot.getProperty("owner_id")||"8875810358"), uid=String(chat.chatid), co=Bot.getProperty("co_admin_"+uid);14  if(uid!==ownerId && !co) return;15  var reg=Bot.getProperty("api_registry")||{}, active=Bot.getProperty("active_reseller_api")||"";16  var ids=Object.keys(reg);17  if(!ids.length){Bot.sendMessage("ℹ️ No API configured.");return;}18  var t="<b>🔌 API SYSTEM</b>\\n━━━━━━━━━━━━━━\\n";19  ids.forEach(function(id){20    var a=reg[id]||{};21    t+=(id===active?"🟢 ":"⚪ ")+ "<b>"+(a.name||id)+"</b>\\nID: <code>"+id+"</code>\\nMode: <code>"+(a.mode||"custom")+"</code>\\nAndroid ID: "+(a.android_required?"Required":"Optional")+"\\nEnabled: "+(a.enabled!==false?"Yes":"No")+"\\n\\n";22  });23  Bot.sendMessage(t,{parse_mode:"HTML"});24} catch(e){Bot.sendMessage("⚠️ API List Error: "+e.message);}