ashoksarande3/ASHOK_HACK_STORE_BOTPublic ยท Bot Template
AIThis bot operates as a commercial storefront for selling Free Fire game hacks and cheats via UPI QR code payments. It features a dynamic pricing system with separate normal and reseller prices, product plans with flexible durations (days, hours, minutes), and a reseller program requiring a one-time upgrade fee. The bot handles payment verification through QR code generation and expiry tracking, user verification via Telegram contact sharing, and admin tools for stock management, plan creation, and ownership transfer. It includes a balance system, maintenance mode, and Telegram Stars payment fallback. The codebase uses TeleBotHost's TBL JavaScript APIs (Bot, Api, HTTP, db properties, Libs) for all logic.
commands/_support.js
javascript ยท 67 lines
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: "https://t.me/ASHOKPAINL018", 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) {}