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/_auto_verify_retry.js
javascript · 51 lines
1/**#command2name: /auto_verify_retry3answer: 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 17// verify-order HTTP error (non-2xx): owner ko exact reason (ek baar per order+code). Koi retry loop nahi.18try {19 var paramsArr = (typeof params !== "undefined" && params) ? String(params).trim().split(/\s+/) : [];20 var userId = paramsArr[0] || ((typeof user !== "undefined" && user) ? user.telegramid : null);21 var orderId = paramsArr[1] || null;22 if (!userId || !orderId) return;23 var ownerId = String(Bot.getProperty("owner_id") || "7127818616");24 25 var raw = ""; try { raw = (typeof content === "string") ? content : JSON.stringify(content || ""); } catch (e) {}26 var body = null; try { body = (typeof content === "object" && content) ? content : JSON.parse(raw); } catch (e) {}27 var st = body && body.status ? String(body.status).toLowerCase() : "";28 var msgTxt = body && body.message ? String(body.message) : "";29 var code = (typeof http_status !== "undefined" && http_status) ? String(http_status) : "";30 31 if (st === "expired" || code === "408") {32 Api.sendMessage({ chat_id: String(userId), parse_mode: "HTML",33 text: "⌛ <b>QR expire ho gaya</b>\n\n<i>Agar payment kar di thi to order ID ke saath support se contact karo:</i> <code>" + orderId + "</code>",34 reply_markup: JSON.stringify({ inline_keyboard: [[{ text: "🔄 New QR", callback_data: "/addfund", style: "success" }]] }) });35 return;36 }37 var k = "av_err_" + orderId + "_" + (code || st || "err");38 if (Bot.getProperty(k)) return;39 Bot.setProperty(k, true, "boolean");40 var hint = "Unexpected gateway error.";41 if (code === "401" || st === "unauthorized") hint = "API key galat/revoked. Dashboard se nayi key lekar /set_payment_fampay se set karo.";42 else if (code === "403" || st === "suspended") hint = "FamGateway account suspended. support@famgateway.in";43 else if (code === "404" || st === "not_found") hint = "Order ID gateway ko nahi mila.";44 else if (code === "429") hint = "Rate limit.";45 else if (code === "500" || /imap|gmail/i.test(msgTxt)) hint = "FamGateway ka Gmail IMAP fail: Gmail me IMAP enable karo, famgateway.in/integrations.php me App Password dobara save karo.";46 Api.sendMessage({ chat_id: ownerId, parse_mode: "HTML",47 text: "🚨 <b>verify-order error</b>\nUser: <code>" + userId + "</code>\nOrder: <code>" + orderId + "</code>\nHTTP: <code>" + (code || "?") + "</code>\n<code>" +48 String(raw || "no body").replace(/&/g, "&").replace(/</g, "<").slice(0, 400) + "</code>\n\n💡 " + hint });49} catch (e) {50 try { Api.sendMessage({ chat_id: String(Bot.getProperty("owner_id") || "7127818616"), text: "⚠️ auto_verify_retry error: " + e.message }); } catch (e2) {}51}