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/_confirm_ownership_transfer.js
javascript · 46 lines
1/**#command2name: /confirm_ownership_transfer3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12try {13 var ownerId = Bot.getProperty("owner_id") || "8660373585";14 var currentChatId = String(chat.chatid);15 16 if (currentChatId !== ownerId) {17 Bot.sendMessage("❌ Restricted!");18 return;19 }20 21 var newOwnerId = User.getProperty("pending_ownership_transfer_to");22 if (!newOwnerId) {23 Bot.sendMessage("❌ Koi pending transfer nahi mila. /transfer_ownership USERID phir se try karein.");24 return;25 }26 27 Bot.setProperty("owner_id", newOwnerId, "string");28 User.setProperty("pending_ownership_transfer_to", null, "string");29 30 Api.sendMessage({31 chat_id: chat.chatid,32 text: "<blockquote>✅ <b>OWNERSHIP TRANSFERRED!</b></blockquote>\n\nNaya Owner: <code>" + newOwnerId + "</code>",33 parse_mode: "HTML"34 });35 36 try {37 Api.sendMessage({38 chat_id: newOwnerId,39 text: "<blockquote>👑 <b>YOU ARE NOW THE OWNER OF THIS STORE!</b></blockquote>\n\n<i>Full admin panel access ke liye /admin command use karein.</i>",40 parse_mode: "HTML"41 });42 } catch (e) {}43 44} catch (err) {45 Bot.sendMessage("⚠️ Error: " + err.message);46}