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/_how.js

javascript · 63 lines

Raw
1/**#command2name: /how3answer: 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/*#ANIM_V1*/try{(function(){var M={party:"5046509860389126442",fire:"5104841245755180586",heart:"5159385139981059251",like:"5107584321108051014"};var a=Bot.getProperty("ui_anim");if(!a||!M[a]||Api.__an)return;var E=M[a];var OK=/PURCHASE SUCCESSFUL|PAYMENT SUCCESSFUL|Payment verified|CONGRATULATIONS/i;var priv=function(p){return p&&p.chat_id&&String(p.chat_id).charAt(0)!=="-";};["sendMessage","sendPhoto","sendVideo","sendAnimation"].forEach(function(n){var f=Api[n];if(typeof f!=="function")return;Api[n]=function(p){try{if(priv(p)&&!p.message_effect_id&&OK.test(String(p.text||p.caption||"")))p.message_effect_id=E;}catch(e){}return f.apply(Api,arguments);};});var fe=Api.editMessageText;if(typeof fe==="function"){Api.editMessageText=function(p){var r=fe.apply(Api,arguments);try{if(priv(p)&&OK.test(String(p.text||"")))Api.sendMessage({chat_id:p.chat_id,text:"🎉",message_effect_id:E});}catch(e){}return r;};}Api.__an=true;})();}catch(__anE){}14/*#PREMIUM_UI_V1*/try{(function(){if(Bot.getProperty("ui_premium")!==true||Api.__pm)return;var R=function(t,c){var s=(String(t||"")+" "+String(c||"")).toLowerCase();if(/back|cancel|close|delete|remove|clear|reject|stop|ban|exit/.test(s))return"danger";if(/pay|buy|confirm|verify|paid|add|deposit|shop|claim|yes|receive|wallet|download|update/.test(s))return"success";return"primary";};var T=function(m){try{var o=typeof m==="string"?JSON.parse(m):m;if(!o||!o.inline_keyboard)return m;o.inline_keyboard.forEach(function(row){row.forEach(function(b){if(b.copy_text||b.url||b.callback_data||b.web_app){b.style=R(b.text,b.callback_data||b.url);if(!b.icon_custom_emoji_id&&b.text&&!/^[\u2600-\u27BF\uD83C-\uD83E]/.test(String(b.text).trim())&&!/^[✦✨💎]/.test(b.text))b.text="✦ "+b.text;}});});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.__pm=true;})();}catch(__pmE){}15 16 17try {18  // Click loading spinner band karne ke liye instant answer19  if (request && request.id) {20    try { Api.answerCallbackQuery({ callback_query_id: request.id }); } catch (__a1) {}21  }22 23  var chatId = chat.chatid;24  var messageId = request && request.message ? request.message.message_id : null;25 26  // Premium Text with your custom premium emojis27  var text = "━━━━━━━━━━━━━━━━━━━━\n" +28             "<tg-emoji emoji-id='6195222374355311655'>👑</tg-emoji> <b>HOW TO USE THE BOT</b>\n" +29             "━━━━━━━━━━━━━━━━━━━━\n\n" +30             "<blockquote>" +31             "<tg-emoji emoji-id='6219605968846591564'>😎</tg-emoji> Follow these simple steps to use the bot:\n\n" +32             "<tg-emoji emoji-id='6194809138371904539'>📉</tg-emoji> 1. Add balance to your wallet first.\n" +33             "<tg-emoji emoji-id='6298597328022407025'>💰</tg-emoji> 2. Go to products section and pick your plan.\n" +34             "<tg-emoji emoji-id='5316728625465146646'>👆</tg-emoji> 3. Click buy and copy your instant key!\n\n" +35             (howToLink ? "<i>Watch the detailed video tutorial below for full guide!</i>" : "") +36             "</blockquote>";37 38  // Inline Keyboard configuration with direct URL system39  var howToLink = Bot.getProperty("how_to_use_link") || "";40  var keyboard = { inline_keyboard: [] };41  if (howToLink) {42    keyboard.inline_keyboard.push([{ text: "Watch Video Guide", url: howToLink, style: "primary", icon_custom_emoji_id: "5258077307985207053" }]);43  }44  keyboard.inline_keyboard.push([{ text: "Back", callback_data: "/back", style: "danger", icon_custom_emoji_id: "5316623368701623632" }]);45 46  var endpoint = messageId ? "editMessageText" : "sendMessage";47  var requestBody = {48    chat_id: String(chatId),49    text: text,50    parse_mode: "HTML",51    reply_markup: JSON.stringify(keyboard)52  };53 54  if (messageId) {55    requestBody.message_id = Number(messageId);56  }57 58  var __b2 = requestBody; if (endpoint === "editMessageText") { var __r2; try { __r2 = Api.editMessageText(__b2); } catch (__e2) { __r2 = { ok: false }; } if (__r2 && __r2.ok === false && !/not modified/i.test(String(__r2.description || ""))) { try { delete __b2.message_id; Api.sendMessage(__b2); } catch (__f2) {} } } else { Api.sendMessage(__b2); }59 60} catch (err) {61  try { Bot.sendMessage("⚠️ Kuch gadbad hui, thodi der baad dobara try karo."); } catch (e1) {}62  try { Api.sendMessage({ chat_id: String(Bot.getProperty("owner_id") || "7127818616"), text: "⚠️ /how error: " + err.message }); } catch (e2) {}63}
commands/_how.js · tarunpoonia905/OfcDevShopBot · TeleDevs