yaainnnxitstore/YASIN_XIT_BOTPublic · Bot Template
AIYASIN XIT FREE KEY appears to be a Telegram automation bot. Commands include /menu, /addfund, /confirm_buyitem, /rembal, /sendorderkey_input, /removeproduct, /add_reseller, /addkey. Observed in code: messaging, keyboards, payments, games, libs, web.
Utilityutility
140 commands0 envUpdated 1mo agoCreated Sep 11, 2026
commands/_how.js
javascript · 119 lines
1/**#command2name: /how3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12try {13 var __bgUid = String(user.telegramid);14 if (Bot.getProperty("banned_" + __bgUid) === true && __bgUid !== String(Bot.getProperty("owner_id") || "8225479428")) {15 try {16 if (typeof update !== "undefined" && update && update.callback_query) Api.answerCallbackQuery({callback_query_id:String(update.callback_query.id),text:"🚫 Your account has been suspended.",show_alert:true});17 else Api.sendMessage({chat_id: chat.chatid, text: "🚫 <b>ACCESS DENIED</b>\n\nYour account has been suspended by the administrator.", parse_mode: "HTML"});18 } catch(__bgSend) {}19 return;20 }21} catch(__bgErr) {}22var __swfUpdate = (typeof update !== "undefined" && update) ? update : null;23var __swfCb = (__swfUpdate && __swfUpdate.callback_query) ? __swfUpdate.callback_query : null;24var __swfCbMsg = (__swfCb && __swfCb.message) ? __swfCb.message : null;25var __swfMsgId = __swfCbMsg && __swfCbMsg.message_id ? Number(__swfCbMsg.message_id) : 0;26var __swfCbId = __swfCb && __swfCb.id ? String(__swfCb.id) : "";27try {28 if (typeof request !== "undefined" && request && __swfCb) {29 if (__swfCb.message) request.message = __swfCb.message;30 if (!request.id && __swfCb.id) request.id = __swfCb.id;31 }32} catch(__swf_norm_err) {}33function __swfEditMessage(a) {34 a = a || {};35 var mid = Number(a.message_id || __swfMsgId || 0);36 var cid = a.chat_id || (typeof chat !== "undefined" && chat ? (chat.id || chat.chatid) : null);37 if (!mid || !cid) throw new Error("Callback message ID not found");38 var markup = a.reply_markup;39 if (typeof markup === "string") { try { markup = JSON.parse(markup); } catch(_) {} }40 var base = {chat_id:cid,message_id:mid,parse_mode:a.parse_mode,reply_markup:markup};41 var cm = __swfCbMsg;42 if (cm && (cm.photo || cm.video || cm.document || cm.audio || cm.animation)) {43 return Api.editMessageCaption({chat_id:cid,message_id:mid,caption:String(a.text == null ? "" : a.text),parse_mode:a.parse_mode,reply_markup:markup});44 }45 return Api.editMessageText({chat_id:cid,message_id:mid,text:String(a.text == null ? "" : a.text),parse_mode:a.parse_mode,reply_markup:markup});46}47function __uiSend(text, opts) {48 opts = opts || {};49 var req = (typeof request !== "undefined" && request) ? request : null;50 var chatId = (typeof chat !== "undefined" && chat && chat.chatid) ? chat.chatid : null;51 var isCallback = !!__swfCb;52 var mid = 0;53 if (isCallback && update.callback_query.message && update.callback_query.message.message_id) mid = Number(update.callback_query.message.message_id);54 if (!mid) { try { mid = Number(User.getProperty("pending_menu_message_id") || User.getProperty("main_menu_message_id") || User.getProperty("support_message_id") || 0); } catch(e0) { mid = 0; } }55 var markup = opts.reply_markup;56 if (markup && typeof markup !== "string") { try { markup = JSON.stringify(markup); } catch(e1) {} }57 var textValue = String(text == null ? "" : text);58 if (mid && chatId) {59 try {60 __swfEditMessage({chat_id:chatId,message_id:mid,text:textValue,parse_mode:opts.parse_mode,reply_markup:markup});61 try { User.setProperty("main_menu_message_id",String(mid),"string"); User.setProperty("pending_menu_message_id",String(mid),"string"); } catch(se) {}62 return true;63 } catch(e2) {64 var s=String(e2).toLowerCase();65 if(s.indexOf("message is not modified")>=0 || s.indexOf("not modified")>=0) return true;66 if(isCallback && update.callback_query.message && update.callback_query.message.photo) {67 try { Api.editMessageCaption({chat_id:chatId,message_id:mid,caption:textValue,parse_mode:opts.parse_mode,reply_markup:markup}); return true; } catch(e3) {68 var s3=String(e3).toLowerCase(); if(s3.indexOf("not modified")>=0) return true;69 }70 }71 if(isCallback) { try { Api.answerCallbackQuery({callback_query_id:String(update.callback_query.id),text:"⚠️ Could not update the screen.",show_alert:true}); } catch(e4) {} return false; }72 }73 }74 if (isCallback) { try { Api.answerCallbackQuery({callback_query_id:String(update.callback_query.id),text:"⚠️ Screen message not found.",show_alert:true}); } catch(e5) {} return false; }75 try {76 var sent=Api.sendMessage({chat_id:chatId,text:textValue,parse_mode:opts.parse_mode,reply_markup:markup});77 try { if(sent&&sent.message_id){User.setProperty("pending_menu_message_id",String(sent.message_id),"string");User.setProperty("main_menu_message_id",String(sent.message_id),"string");} } catch(e6) {}78 return true;79 } catch(e7) { return false; }80}81try {82 if (typeof request !== "undefined" && request && __swfCb && __swfCb.message) { request.message = __swfCb.message; }83 if (__swfCb && __swfCb.id) {84 try { Api.answerCallbackQuery({callback_query_id:String(__swfCb.id)}); } catch(__ackErr) {}85 }86 var howVideoLink = String(Bot.getProperty("how_to_video_link") || "https://youtu.be/oe2Ja08Vvpo").trim();87 var text = "━━━━━━━━━━━━━━━━━━━━\n" +88 "👑 <b>HOW TO USE</b>\n" +89 "━━━━━━━━━━━━━━━━━━━━\n\n" +90 "<blockquote>" +91 "😎 <b>Getting started is easy:</b>\n\n" +92 "1️⃣ Tap <b>💰 Add Balance</b> and top up your wallet.\n" +93 "2️⃣ Tap <b>🛍️ Shop Now</b>, choose a product and the plan/duration you want.\n" +94 "3️⃣ Confirm the purchase — your balance is charged and the key is delivered instantly.\n" +95 "4️⃣ Find your key anytime under <b>📦 My Orders</b>.\n\n" +96 "🎁 Have a coupon code? You can apply it at checkout for an instant discount.\n" +97 "🔗 Share your link from <b>🎁 Referral</b> to earn a commission on every friend who buys.\n" +98 "🎰 Try your luck on <b>🎰 Lucky Spin</b> for a chance at free balance.\n" +99 "🎫 Stuck or need help? Open <b>🎫 Support</b> and our team will assist you.\n\n" +100 "<i>For a detailed walkthrough, watch the video guide below.</i>" +101 "</blockquote>";102 var keyboard = {103 inline_keyboard: [104 [105 { text: "📺 Watch Video Guide",106 url: howVideoLink,107 }108 ],109 [110 { text: "Back",111 callback_data: "/back"112 }113 ]114 ]115 };116 __uiSend(text, { parse_mode: "HTML", reply_markup: keyboard });117} catch (err) {118 try { __uiSend("⚠️ <b>Could not open How To Use.</b>", { parse_mode: "HTML" }); } catch(e2) {}119}