ayushyadav7970824760/goldensellingstore_botPublic · Bot Template
AIThis Telegram store bot lets customers browse digital products and plans, apply coupons, add funds via UPI, and receive purchased keys. It includes a full admin panel for managing products, reordering items, setting reseller prices, viewing and removing key stock, configuring UPI payment details and update links, and checking user balances. Co-admins and resellers are supported, and support tickets are forwarded to the admin.
Commercedigital_storeadmin_panelupi_paymentsresellercouponskey_stock
146 commands0 envUpdated 2d agoCreated Sep 5, 2026
commands/_download_updates.js
javascript · 76 lines
1/**#command2name: /download_updates3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// =========================================================13// 📥 "Download Files" button — premium download-channel section.14// Admin sets the redirect link via /set_update_link (see that file).15// ✅ Redesigned to match the premium "DOWNLOAD PREMIUM APK & FILES" layout —16// reuses the SAME custom emoji IDs already used elsewhere in the bot so17// everything stays visually consistent for Telegram Premium users.18// =========================================================19 20try {21 var chatId = chat.chatid;22 var updateLink = Bot.getProperty("update_channel_link");23 24 // ✅ FIXED: plain Unicode emoji use kiya hai — guessed custom emoji IDs25 // Telegram par galat/mismatched icon dikha rahe the, plain emoji hamesha26 // sahi aur sabke liye same dikhta hai.27 var e_header = "<tg-emoji emoji-id='6091571559233755994'>📥</tg-emoji>";28 var e_pencil = "✏️";29 var e_check = "<tg-emoji emoji-id='6311870645277825763'>✔️</tg-emoji>";30 var e_lock = "<tg-emoji emoji-id='6215386799133433653'>🔒</tg-emoji>";31 32 var text =33 "<blockquote>" + e_header + " <b>DOWNLOAD PREMIUM APK & FILES</b></blockquote>\n\n" +34 "🌐 <i>All our highly secured, premium, and updated files are securely hosted on our private channel!</i> ⚠️🚫\n\n" +35 "━━━━━━━━━━━━━━━━━━━━━\n\n" +36 e_pencil + " <b>WHAT YOU GET:</b> 📌\n\n" +37 e_check + " Latest APK Updates 🔔\n" +38 e_check + " 100% Virus Free & Secure ‼️\n" +39 e_check + " All Configs & Scripts " + e_lock + "\n" +40 e_check + " Complete Installation Guides ▶️\n\n" +41 "━━━━━━━━━━━━━━━━━━━━━\n\n" +42 (updateLink43 ? "⬇️ <b>Tap the button below to access the Download Channel!</b> 📋"44 : "⚠️ <i>Download link abhi admin ne set nahi kiya hai.</i>");45 46 var buttons = [];47 if (updateLink) {48 buttons.push([{ text: "𝑨𝒄𝒄𝒆𝒔𝒔 𝑫𝒐𝒘𝒏𝒍𝒐𝒂𝒅 𝑪𝒉𝒂𝒏𝒏𝒆𝒍", url: updateLink, style: "primary" }]);49 }50 buttons.push([{ text: "𝑷𝒓𝒐𝒅𝒖𝒄𝒕 𝑺𝒕𝒐𝒓𝒆", callback_data: "/buy_hack", style: "success" }]);51 buttons.push([{ text: "𝑩𝒂𝒄𝒌", callback_data: "/back", style: "danger" }]);52 53 if (request && request.message) {54 try {55 Api.editMessageText({56 chat_id: String(chatId),57 message_id: Number(request.message.message_id),58 text: text,59 parse_mode: "HTML",60 reply_markup: JSON.stringify({ inline_keyboard: buttons })61 });62 } catch (e) {63 Api.sendMessage({ chat_id: chatId, text: text, parse_mode: "HTML", reply_markup: JSON.stringify({ inline_keyboard: buttons }) });64 }65 } else {66 Api.sendMessage({ chat_id: chatId, text: text, parse_mode: "HTML", reply_markup: JSON.stringify({ inline_keyboard: buttons }) });67 }68 69 var queryId = request ? (request.id || (request.callback_query && request.callback_query.id)) : null;70 if (queryId) {71 try { Api.answerCallbackQuery({ callback_query_id: String(queryId) }); } catch (e) {}72 }73 74} catch (err) {75 Bot.sendMessage("⚠️ Error: " + err.message);76}