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/_support.js

javascript · 72 lines

Raw
1/**#command2name: /support3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12try {13  if (request && request.id) {14    HTTP.post({15      url: "https://api.telegram.org/bot" + bot.token + "/answerCallbackQuery",16      body: { callback_query_id: request.id }17    });18  }19 20  var chatId = chat.chatid;21  var messageId = request && request.message ? request.message.message_id : null;22 23  var text = "━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n" +24             "<tg-emoji emoji-id='6039605143601680423'>📞</tg-emoji> <b>CUSTOMER SUPPORT CENTER</b>\n" +25             "━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n" +26             "<blockquote>" +27             "Welcome to our support desk. If you are facing any issues regarding keys, payments, or services, feel free to contact us.\n\n" +28             "Click the button below to get the admin contact link." +29             "</blockquote>";30 31  // ✅ FIXED: ab admin ka contact link Admin Panel se set kiya ja sakta hai32  // ("Set Support Link" button) — Bot.getProperty se dynamically load hota33  // hai, hardcoded username pe fix nahi rehta.34  var supportLink = Bot.getProperty("support_link") || "https://t.me/Dev_Modz_Owner";35 36  var keyboard = {37    inline_keyboard: [38      [39        {40          text: "Contact Admin",41          url: supportLink, 42          style: "primary", 43          icon_custom_emoji_id: "5346024644635804737" 44        }45      ],46      [47        {48          text: "Back",49          callback_data: "/back",50          style: "danger", 51          icon_custom_emoji_id: "5893163582194978381"52        }53      ]54    ]55  };56 57  var endpoint = messageId ? "editMessageText" : "sendMessage";58  var requestBody = {59    chat_id: String(chatId),60    text: text,61    parse_mode: "HTML",62    reply_markup: JSON.stringify(keyboard)63  };64 65  if (messageId) { requestBody.message_id = Number(messageId); }66 67  HTTP.post({68    url: "https://api.telegram.org/bot" + bot.token + "/" + endpoint,69    body: requestBody70  });71 72} catch (err) {}