tarunpoonia905/OfcDevShopBotPublic · Bot Template

ProfileTelegram

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
Back to folder

commands/_ui_anim.js

javascript · 27 lines

Raw
1/**#command2name: /ui_anim3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12/*#SIZE_V1*/try{(function(){var z=Bot.getProperty("ui_btn_size");var mx=z==="large"?1:(z==="medium"?2:0);if(!mx||Api.__sz)return;var NAV=/^[◀▶⬅➡«»‹›⏪⏩]|\d+\s*\/\s*\d+|prev|next|page/i;var T=function(m){try{var o=typeof m==="string"?JSON.parse(m):m;if(!o||!o.inline_keyboard)return m;var out=[],cnt=0;o.inline_keyboard.forEach(function(row){var nav=row.some(function(b){return NAV.test(String(b.text||"").trim());});if(row.length<=mx||nav){out.push(row);cnt+=row.length;return;}for(var i=0;i<row.length;i+=mx){var c=row.slice(i,i+mx);out.push(c);cnt+=c.length;}});if(cnt>100||out.length>100)return m;o.inline_keyboard=out;return typeof m==="string"?JSON.stringify(o):o;}catch(e){return m;}};["sendMessage","editMessageText","editMessageCaption","editMessageReplyMarkup","sendPhoto","sendVideo","sendAnimation","sendDocument"].forEach(function(n){var f=Api[n];if(typeof f!=="function")return;Api[n]=function(p){try{if(p&&p.reply_markup)p.reply_markup=T(p.reply_markup);}catch(e){}return f.apply(Api,arguments);};});Api.__sz=true;})();}catch(__szE){}13 14// ✨ /ui_anim — ADMIN: success animation (message effect) OFF -> party -> fire -> heart -> like -> OFF15try {16  var adminId = String(Bot.getProperty("owner_id") || "7127818616");17  var me = String(chat.chatid);18  if (me !== adminId && !Bot.getProperty("co_admin_" + me)) { Bot.sendMessage("❌ Restricted command! Only Admin can use this."); return; }19  var order = ["off", "party", "fire", "heart", "like"];20  var cur = Bot.getProperty("ui_anim") || "off";21  var next = order[(Math.max(order.indexOf(cur), 0) + 1) % order.length];22  Bot.setProperty("ui_anim", next, "string");23  var names = { off: "OFF (Normal)", party: "🎉 Party", fire: "🔥 Fire", heart: "❤️ Heart", like: "👍 Like" };24  var qid = request ? (request.id || (request.callback_query && request.callback_query.id)) : null;25  if (qid) { try { Api.answerCallbackQuery({ callback_query_id: String(qid), text: "Animation: " + names[next] }); } catch (e) {} }26  Bot.run({ command: "/admin" });27} catch (e) { Bot.sendMessage("⚠️ ui_anim error: " + e.message); }
commands/_ui_anim.js · tarunpoonia905/OfcDevShopBot · TeleDevs