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.

Commercefreefiregame-hacksupi-paymentsqr-codesreseller-systemdynamic-pricing
ProfileTelegram
102 commands0 envUpdated 16d agoCreated Aug 22, 2026
Back to folder

commands/_deposit_stars.js

javascript ยท 63 lines

Raw
1/**#command2name: /deposit_stars3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// =========================================================13// โญ TELEGRAM STARS โ€” Deposit screen (Wallet top-up in Stars)14// Note: Stars balance is tracked SEPARATELY from the Rupee/UPI wallet,15// since Telegram Stars (XTR) is its own currency and can't be mixed 1:116// with rupee balance without a fixed conversion rate.17// =========================================================18 19try {20  var userId = String(user.telegramid);21  var chatId = chat.chatid;22  var starsBalance = Number(Bot.getProperty("stars_balance_" + userId) || 0);23 24  var text =25    "<blockquote>โญ <b>DEPOSIT TELEGRAM STARS</b></blockquote>\n" +26    "โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”\n\n" +27    "โญ <b>Current Stars Balance:</b> <code>" + starsBalance + "</code>\n\n" +28    "<i>Choose an amount below, or enter a custom amount. Payment goes through Telegram's official Stars checkout โ€” instant &amp; secure.</i>\n" +29    "โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”";30 31  var buttons = [32    [33      { text: "โญ 50", callback_data: "/send_stars_invoice deposit 50", style: "primary" },34      { text: "โญ 100", callback_data: "/send_stars_invoice deposit 100", style: "primary" },35      { text: "โญ 250", callback_data: "/send_stars_invoice deposit 250", style: "primary" }36    ],37    [38      { text: "โญ 500", callback_data: "/send_stars_invoice deposit 500", style: "primary" },39      { text: "โญ 1000", callback_data: "/send_stars_invoice deposit 1000", style: "primary" }40    ],41    [42      { text: "Custom Amount", callback_data: "/custom_stars_amount", style: "success", icon_custom_emoji_id: "6312263493051489212" }43    ],44    [45      { text: "Back to Menu", callback_data: "/back", style: "danger", icon_custom_emoji_id: "5893163582194978381" }46    ]47  ];48 49  if (request && request.message && !request.message.photo) {50    Api.editMessageText({ chat_id: String(chatId), message_id: Number(request.message.message_id), text: text, parse_mode: "HTML", reply_markup: JSON.stringify({ inline_keyboard: buttons }) });51  } else {52    if (request && request.message && request.message.photo) {53      try { Api.deleteMessage({ chat_id: chatId, message_id: request.message.message_id }); } catch (e) {}54    }55    Api.sendMessage({ chat_id: chatId, text: text, parse_mode: "HTML", reply_markup: JSON.stringify({ inline_keyboard: buttons }) });56  }57 58  var queryId = request ? (request.id || (request.callback_query && request.callback_query.id)) : null;59  if (queryId) { try { Api.answerCallbackQuery({ callback_query_id: String(queryId) }); } catch (e) {} }60 61} catch (err) {62  Bot.sendMessage("โš ๏ธ Error: " + err.message);63}