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

javascript · 76 lines

Raw
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 howToLink = Bot.getProperty("how_to_use_link") || "https://youtu.be/oe2Ja08Vvpo";38  var keyboard = {39    inline_keyboard: [40      [41        {42          text: "Watch Video Guide",43          url: howToLink, 44          style: "primary", // ⚡ Style property added here as requested45          icon_custom_emoji_id: "5258077307985207053" 46        }47      ],48      [49        {50          text: "Back",51          callback_data: "/back", 52          style: "danger", 53          icon_custom_emoji_id: "5316623368701623632"54        }55      ]56    ]57  };58 59  var endpoint = messageId ? "editMessageText" : "sendMessage";60  var requestBody = {61    chat_id: String(chatId),62    text: text,63    parse_mode: "HTML",64    reply_markup: JSON.stringify(keyboard)65  };66 67  if (messageId) {68    requestBody.message_id = Number(messageId);69  }70 71  HTTP.post({72    url: "https://api.telegram.org/bot" + bot.token + "/" + endpoint,73    body: requestBody74  });75 76} catch (err) {}