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

javascript · 48 lines

Raw
1/**#command2name: /onWebKeyError3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12var dataOptions = options;13var chatId = dataOptions ? dataOptions.chat_id : chat.chatid;14var adminId = "8875810358";15 16var systemErrorText = "<blockquote>" +17  "❌ <b>ORDER FAILED</b>\n" +18  "━━━━━━━━━━━━━━━━━━━━━\n\n" +19  "⚠️ <b>Something went wrong. Please retry soon.</b>\n\n" +20  "⏳ <i>Wait some time, admin will stock refill soon.</i>\n" +21  "💰 <b>Status:</b> Your funds were not deducted.\n\n" +22  "━━━━━━━━━━━━━━━━━━━━━\n" +23  "🗣 <i>Feel free to check back in a few minutes!</i>" +24  "</blockquote>";25 26var errorInlineButtons = [[27  { text: "Back to Menu", callback_data: "/back", style: "danger", icon_custom_emoji_id: "5893163582194978381" }28]];29 30// ✅ FIX: sendMessage use kiya (photo message pe editMessageText fail hoti hai)31Api.sendMessage({32  chat_id: String(chatId),33  text: systemErrorText,34  parse_mode: "HTML",35  reply_markup: JSON.stringify({ inline_keyboard: errorInlineButtons })36});37 38if (dataOptions) {39  var adminAlertText = "⚠️ <b>API Reseller Error Alert!</b>\n" +40    "━━━━━━━━━━━━━━━━━━━━━\n" +41    "👤 <b>User:</b> " + (dataOptions.first_name || "Unknown") + " (<code>" + dataOptions.user_id + "</code>)\n" +42    "📦 <b>Product:</b> <code>" + dataOptions.prod_name + "</code>\n" +43    "⏳ <b>Plan:</b> <code>" + dataOptions.plan_days + " Days</code>\n" +44    "💵 <b>Price Amount:</b> ₹" + Number(dataOptions.price).toFixed(2) + "\n" +45    "🚨 <b>Reason:</b> External Website API is down or connection timed out.";46 47  Bot.sendMessageToChatWithId(adminId, adminAlertText);48}