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/_how.js
javascript ยท 75 lines
1/**#command2name: /how3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12try {13 // Click loading spinner band karne ke liye instant answer14 if (request && request.id) {15 HTTP.post({16 url: "https://api.telegram.org/bot" + bot.token + "/answerCallbackQuery",17 body: { callback_query_id: request.id }18 });19 }20 21 var chatId = chat.chatid;22 var messageId = request && request.message ? request.message.message_id : null;23 24 // Premium Text with your custom premium emojis25 var text = "โโโโโโโโโโโโโโโโโโโโ\n" +26 "<tg-emoji emoji-id='6195222374355311655'>๐</tg-emoji> <b>HOW TO USE THE BOT</b>\n" +27 "โโโโโโโโโโโโโโโโโโโโ\n\n" +28 "<blockquote>" +29 "<tg-emoji emoji-id='6219605968846591564'>๐</tg-emoji> Follow these simple steps to use the bot:\n\n" +30 "<tg-emoji emoji-id='6194809138371904539'>๐</tg-emoji> 1. Add balance to your wallet first.\n" +31 "<tg-emoji emoji-id='6298597328022407025'>๐ฐ</tg-emoji> 2. Go to products section and pick your plan.\n" +32 "<tg-emoji emoji-id='5316728625465146646'>๐</tg-emoji> 3. Click buy and copy your instant key!\n\n" +33 "<i>Watch the detailed video tutorial below for full guide!</i>" +34 "</blockquote>";35 36 // Inline Keyboard configuration with direct URL system37 var keyboard = {38 inline_keyboard: [39 [40 {41 text: "Watch Video Guide",42 url: "https://youtu.be/oe2Ja08Vvpo", 43 style: "primary", // โก Style property added here as requested44 icon_custom_emoji_id: "5258077307985207053" 45 }46 ],47 [48 {49 text: "Back",50 callback_data: "/back", 51 style: "danger", 52 icon_custom_emoji_id: "5316623368701623632"53 }54 ]55 ]56 };57 58 var endpoint = messageId ? "editMessageText" : "sendMessage";59 var requestBody = {60 chat_id: String(chatId),61 text: text,62 parse_mode: "HTML",63 reply_markup: JSON.stringify(keyboard)64 };65 66 if (messageId) {67 requestBody.message_id = Number(messageId);68 }69 70 HTTP.post({71 url: "https://api.telegram.org/bot" + bot.token + "/" + endpoint,72 body: requestBody73 });74 75} catch (err) {}