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/_onWebKeyError.js
javascript ยท 48 lines
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 = "8660373585";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}