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_menu.js

javascript · 21 lines

Raw
1/**#command2name: /addplan_menu3answer: 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 User.setProperty("quick_plan_state",null,"string");17 var ps=Bot.getProperty("stored_products")||[];if(!Array.isArray(ps))ps=[];var kb=[];for(var i=0;i<ps.length;i++){if(ps[i]&&ps[i].name)kb.push([{text:"📦 "+String(ps[i].name),callback_data:"/addplan_product "+i}]);}18 kb.push([{text:"🔙 Admin",callback_data:"/admin"}]);19 if(!kb.length){__edit("❌ No products registered yet.",{inline_keyboard:[[{text:"🔙 Admin",callback_data:"/admin"}]]});return;}20 __edit("<blockquote>🗓️ <b>ADD PLAN</b></blockquote>\n\nSelect an existing product:",{inline_keyboard:kb});21}catch(e){__edit("❌ Could not open the add-plan menu: "+String(e&&e.message||e),{});}