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
commands/_removereseller.js
javascript · 39 lines
1/**#command2name: /removereseller3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12try {13 var adminId = "8875810358";14 if (String(chat.chatid) !== adminId) return;15 16 var targetId = params ? params.trim() : null;17 18 if (!targetId) {19 Bot.sendMessage("❌ <b>Usage:</b> <code>/removereseller 123456789</code>", { parse_mode: "HTML" });20 return;21 }22 23 Bot.setProperty("is_reseller_" + targetId, false, "boolean");24 25 Bot.sendMessage("<tg-emoji emoji-id='6143299028655280273'>☠</tg-emoji> User <code>" + targetId + "</code> ka reseller role remove kar diya gaya hai.", { parse_mode: "HTML" });26 27 // User ko notification28 var removeNotif = "<blockquote><b><tg-emoji emoji-id='6143299028655280273'>⚠️</tg-emoji> ROLE REMOVED</b>\n\n" +29 "Aapka **Reseller Role** admin dwara remove kar diya gaya hai. Ab aapko normal prices show hongi.</blockquote>";30 31 Api.sendMessage({32 chat_id: targetId,33 text: removeNotif,34 parse_mode: "HTML"35 });36 37} catch (err) {38 Bot.sendMessage("Error: " + err.message);39}