yaainnnxitstore/YASIN_XIT_BOTPublic · Bot Template

ProfileTelegram

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
Back to folder

commands/_addplan_product.js

javascript · 23 lines

Raw
1/**#command2name: /addplan_product3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12var __u=(typeof update!=="undefined"&&update)?update:null;var __cb=(__u&&__u.callback_query)?__u.callback_query:null;var __msg=(__cb&&__cb.message)?__cb.message:null;var __mid=__msg&&__msg.message_id?Number(__msg.message_id):0;13function __edit(t,m){var cid=chat&&chat.chatid,mk=typeof m==="string"?m:JSON.stringify(m||{});if(__mid){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){}}}return Api.sendMessage({chat_id:cid,text:t,parse_mode:"HTML",reply_markup:mk});}14try{15 var owner=String(Bot.getProperty("owner_id")||"8225479428"),uid=String(user.telegramid);if(uid!==owner&&!Bot.getProperty("co_admin_"+uid)){__edit("❌ You are not authorized.",{});return;}16 var idx=Number(String(params||"").trim()),ps=Bot.getProperty("stored_products")||[];if(!Array.isArray(ps)||!ps[idx]){__edit("❌ Product not found.",{inline_keyboard:[[{text:"🔙 Add Plan",callback_data:"/addplan_menu"}]]});return;}17 User.setProperty("quick_plan_state",JSON.stringify({step:"duration",product_index:idx}),"string");18 var kb=[];var hours=[1,2,3,5,6,9],days=[1,2,3,5,7,10,15,20,30,60];19 for(var i=0;i<hours.length;i+=2)kb.push([{text:hours[i]+" Hours",callback_data:"/addplan_duration "+idx+" "+hours[i]+" hour"},{text:hours[i+1]+" Hours",callback_data:"/addplan_duration "+idx+" "+hours[i+1]+" hour"}]);20 for(var j=0;j<days.length;j+=2){var row=[{text:days[j]+" Days",callback_data:"/addplan_duration "+idx+" "+days[j]+" day"}];if(days[j+1]!=null)row.push({text:days[j+1]+" Days",callback_data:"/addplan_duration "+idx+" "+days[j+1]+" day"});kb.push(row);}21 kb.push([{text:"🔙 Back to Products",callback_data:"/addplan_menu"}]);22 __edit("📦 <b>"+String(ps[idx].name)+"</b>\n\nHow many days/hours should the plan cover?",{inline_keyboard:kb});23}catch(e){__edit("❌ Could not open the duration menu: "+String(e&&e.message||e),{inline_keyboard:[[{text:"🔙 Add Plan",callback_data:"/addplan_menu"}]]});}