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/_addproduct_existing.js
javascript · 35 lines
1/**#command2name: /addproduct_existing3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12function __esc(v){return String(v==null?"":v).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");}13var __u=(typeof update!=="undefined"&&update)?update:null;14var __cb=(__u&&__u.callback_query)?__u.callback_query:null;15var __msg=(__cb&&__cb.message)?__cb.message:null;16var __mid=__msg&&__msg.message_id?Number(__msg.message_id):0;17function __edit(t,m){18 var cid=chat&&chat.chatid, mk=m;19 if(typeof mk!=="string")mk=JSON.stringify(mk||{});20 if(__mid){21 try{return Api.editMessageText({chat_id:cid,message_id:__mid,text:t,parse_mode:"HTML",reply_markup:mk});}catch(e){try{return Api.editMessageCaption({chat_id:cid,message_id:__mid,caption:t,parse_mode:"HTML",reply_markup:mk});}catch(e2){}}22 }23 return Api.sendMessage({chat_id:cid,text:t,parse_mode:"HTML",reply_markup:mk});24}25try{26 var owner=String(Bot.getProperty("owner_id")||"8225479428"),uid=String(user.telegramid);27 if(uid!==owner&&!Bot.getProperty("co_admin_"+uid)){__edit("❌ You are not authorized.",{});return;}28 var idx=Number(String(params||"").trim()),ps=Bot.getProperty("stored_products")||[];29 if(!Array.isArray(ps)||!ps[idx]||!ps[idx].name){__edit("❌ Product not found. Reopen the menu.",{inline_keyboard:[[{text:"🔙 Add Product",callback_data:"/addproduct"}]]});return;}30 var p=ps[idx];31 User.setProperty("add_product_step","waiting_for_duration","string");32 User.setProperty("temp_product_name",String(p.name),"string");33 User.setProperty("temp_duration_value",null,"string");User.setProperty("temp_duration_unit",null,"string");User.setProperty("temp_duration_display",null,"string");User.setProperty("temp_price",null,"string");User.setProperty("temp_stock",null,"string");34 __edit("📦 <b>"+__esc(p.name)+"</b>\n\n⏱️ Send the plan duration you want to add to this product.\n\nExample: <code>1 day</code> or <code>1 hour</code>",{inline_keyboard:[[{text:"🔙 Back",callback_data:"/addproduct"}]]});35}catch(e){__edit("❌ Could not select the product: "+String(e&&e.message||e),{inline_keyboard:[[{text:"🔙 Back",callback_data:"/addproduct"}]]});}