indrajitghosh20006/HgfhhuybotPublic · Bot Template
AIThis bot provides a command‑based admin interface for managing user balances, products, and resellers. It supports adding balances via UPI or Binance Pay, approving payments, and configuring product details and categories. The bot also handles user role changes, stock uploads, and offers a simple calculator UI for entering amounts. All interactions are handled through short commands and inline keyboards, with no long‑running listeners or external frameworks.
Utilityadminbalanceproductresellerpaymentupi
138 commands0 envUpdated 15h agoCreated Sep 27, 2026
commands/_how.js
javascript · 76 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 howToLink = Bot.getProperty("how_to_use_link") || "https://t.me/Balamodschets/5";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) {}