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_size.js

javascript · 26 lines

Raw
1/**#command2name: /ui_size3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// 📐 /ui_size — ADMIN: button size  Normal -> Medium (max 2 ek row me) -> Large (1 ek row me) -> Normal13// Lambe (single) buttons jaise hain waise hi rehte hain.14try {15  var adminId = String(Bot.getProperty("owner_id") || "7127818616");16  var me = String(chat.chatid);17  if (me !== adminId && !Bot.getProperty("co_admin_" + me)) { Bot.sendMessage("❌ Restricted command! Only Admin can use this."); return; }18  var order = ["normal", "medium", "large"];19  var cur = Bot.getProperty("ui_btn_size") || "normal";20  var next = order[(Math.max(order.indexOf(cur), 0) + 1) % order.length];21  Bot.setProperty("ui_btn_size", next, "string");22  var names = { normal: "Normal (purana)", medium: "Medium (max 2 ek line me)", large: "Large (1 ek line me)" };23  var qid = request ? (request.id || (request.callback_query && request.callback_query.id)) : null;24  if (qid) { try { Api.answerCallbackQuery({ callback_query_id: String(qid), text: "Button size: " + names[next] }); } catch (e) {} }25  Bot.run({ command: "/admin" });26} catch (e) { Bot.sendMessage("⚠️ ui_size error: " + e.message); }
commands/_ui_size.js · tarunpoonia905/OfcDevShopBot · TeleDevs