kkapil9112/Hguuuuuv45botPublic · Bot Template

AITelegram commerce bot for an admin-managed digital store: admins create categories, products, time-based plans, stock entries and license keys, and can grant reseller roles or adjust user balances. End users can view their balance, start a deposit flow with an inline amount keypad, apply coupon codes, and navigate back to the store menu. It uses Bot properties for product/stock/coupon data and Libs.ResourcesLib for per-user balances.

Commercecommerceshopreselleradmin-panelbalanceproduct-management
ProfileTelegram
102 commands0 envUpdated 29d agoCreated Aug 7, 2026
Back to folder

commands/_support.js

javascript · 67 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  var keyboard = {32    inline_keyboard: [33      [34        {35          text: "Contact Admin",36          url: "t.me/Balamoodcraked", 37          style: "primary", 38          icon_custom_emoji_id: "5346024644635804737" 39        }40      ],41      [42        {43          text: "Back",44          callback_data: "/back",45          style: "danger", 46          icon_custom_emoji_id: "5893163582194978381"47        }48      ]49    ]50  };51 52  var endpoint = messageId ? "editMessageText" : "sendMessage";53  var requestBody = {54    chat_id: String(chatId),55    text: text,56    parse_mode: "HTML",57    reply_markup: JSON.stringify(keyboard)58  };59 60  if (messageId) { requestBody.message_id = Number(messageId); }61 62  HTTP.post({63    url: "https://api.telegram.org/bot" + bot.token + "/" + endpoint,64    body: requestBody65  });66 67} catch (err) {}