tarunpoonia905/OfcDevShopBotPublic · Bot Template
AIDEV SHOP appears to be a Telegram automation bot. Commands include /confirm_delete_stock, /addstock_id, /extkey_menu, /partner_api, /apidelete, /buy_hack_cat, /admin_manage_products, /check_buy. Observed in code: messaging, keyboards, payments, libs, web, http, games.
Utilityutility
228 commands0 envUpdated 12d agoCreated Oct 18, 2026
commands/_apitoken.js
javascript · 40 lines
1/**#command2name: /apitoken3answer: 4keyboard: 5parse_mode: markdown6aliases: /api_token7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// 🔐 /apitoken TOKEN — API token bot ke andar save hota hai (file mein nahi likha jaata)13try {14 var ownerId = String(Bot.getProperty("owner_id") || "7127818616");15 var uid = String(chat.chatid);16 if (uid !== ownerId && !Bot.getProperty("co_admin_" + uid)) return;17 18 var t = params ? String(params).trim() : "";19 if (!t) {20 var cur = String(Bot.getProperty("api_secret_token") || "");21 Bot.sendMessage(22 "🔐 <b>API Token</b>\n\nStatus: <b>" + (cur ? "Set ✅" : "Not set ❌") + "</b>\n\n" +23 "Set karne ke liye:\n<code>/apitoken YOUR_TOKEN</code>\nHataane ke liye:\n<code>/apitoken clear</code>",24 {parse_mode:"HTML"}25 );26 return;27 }28 // token wala message chat se delete kar do29 try { if (request && request.message && request.message.message_id) Api.deleteMessage({chat_id: uid, message_id: request.message.message_id}); } catch (d) {}30 31 if (t.toLowerCase() === "clear") {32 Bot.setProperty("api_secret_token", null, "string");33 Bot.sendMessage("🗑 API token hata diya gaya.");34 return;35 }36 Bot.setProperty("api_secret_token", t, "string");37 Bot.sendMessage("✅ <b>API token save ho gaya.</b>\nAb <code>/api_record</code> bhejkar live connection check karo.", {parse_mode:"HTML"});38} catch (e) {39 Bot.sendMessage("⚠️ <b>Token Error:</b> <code>" + String(e.message || e) + "</code>", {parse_mode:"HTML"});40}