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/_myreseller.js
javascript · 33 lines
1/**#command2name: /myreseller3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12try {13 var userId = user.telegramid;14 var isReseller = Bot.getProperty("is_reseller_" + userId);15 16 if (!isReseller) {17 Bot.sendMessage("<tg-emoji emoji-id='6143299028655280273'>❌</tg-emoji> Aapke paas reseller role nahi hai.", { parse_mode: "HTML" });18 return;19 }20 21 var name = user.first_name || "N/A";22 var username = user.username ? "@" + user.username : "N/A";23 24 var infoText = "<blockquote><b><tg-emoji emoji-id='5346024644635804737'>🔰</tg-emoji> MY RESELLER ACCOUNT INFO</b>\n\n" +25 "• <b>Name:</b> " + name + "\n" +26 "• <b>User ID:</b> <code>" + userId + "</code>\n" +27 "• <b>Username:</b> " + username + "</blockquote>";28 29 Bot.sendMessage(infoText, { parse_mode: "HTML" });30 31} catch (err) {32 Bot.sendMessage("Error: " + err.message);33}