Created At: 2026-11-19T09:05:41Z
Completed At: 2026-11-19T09:05:43Z
Command exited with code 0.
Command output:
modules/marketplace/manifests_catalog.py:204: "mcp_tools": ["telegram.chat.create_invite_link", "telegram.chat.ban_member"],
grep: modules/marketplace/__pycache__/manifests_catalog.cpython-312.pyc: binary file matches
modules/bots/modular_engine.py:1066: invite_link = f"https://t.me/{bot_username}?start=ref_{user_id}"
modules/bots/modular_engine.py:1079: "invite_link": invite_link,
grep: modules/bots/__pycache__/modular_engine.cpython-312.pyc: binary file matches
apps/frontend/src/components/pages/MarketplaceBotDetailPage.tsx:141: mcpTools: ['telegram.chat.create_invite_link', 'telegram.chat.ban_member'],
apps/frontend/src/components/pages/MarketplacePage.tsx:166: permissions: ['channels.manage', 'invite_links.create', 'members.restrict'],
apps/frontend/src/components/pages/MarketplacePage.tsx:167: mcpTools: ['telegram.chat.create_invite_link', 'telegram.chat.kick_member'],
apps/frontend/dist/assets/index-DZatOka8.js:81:Tap an action button below to test this live bot:`,buttons:[{label:"โก Explore 25+ Templates",action:"templates"},{label:"๐ณ Test VIP Subscription",action:"subscription"},{label:"๐ Referral Link Demo",action:"referral"},{label:"๐ค Ask AI Assistant",action:"ai"}],time:"12:00"}])},b=[{q:"Do I need my own VPS or coding skills?",a:"Zero server or coding skills required. TeleBot Cloud runs 100% on our managed high-availability cloud infrastructure with automated HTTPS webhooks, PostgreSQL persistence, and Redis caching. You simply paste your token from @BotFather."},{q:"How does BotFather integration work?",a:"Open Telegram, chat with @BotFather, send /newbot, and copy the API HTTP token. Paste it into TeleBot Cloud, and our engine automatically configures high-speed webhooks, SSL certificates, and database schemas in seconds."},{q:"Can I accept payments and sell VIP channel access?",a:"Yes! Our built-in Payments and Subscription modules support Telegram Stars, Stripe, Razorpay, and Crypto. When a user pays, the bot automatically creates a single-use invite link to your private channel and revokes access when the subscription expires."},{q:"What modules are included with each bot?",a:"Every bot has access to 9 core production modules: Referral & Affiliate System, Broadcast Campaign Engine, Force Join Guard, Rich Welcome Messages, User Management CRM, Payments, VIP Subscriptions, Auto Filter Media Vault, and Autonomous AI Assistant."},{q:"What is the broadcast speed and rate limit?",a:"Our broadcast engine adheres strictly to Telegram official rate limits (up to 25-30 messages per second) using Celery background queues, preventing bot bans while delivering campaigns to thousands of users within minutes."}];return e.jsxs("div",{className:"min-h-screen bg-space-950 text-pearl-100 flex flex-col w-full max-w-full overflow-x-hidden selection:bg-[#2481CC]/20 selection:text-[#2481CC]",children:[e.jsx(ss,{}),e.jsxs("section",{className:"relative pt-10 sm:pt-16 pb-16 lg:pb-24 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto w-full",children:[e.jsx("div",{className:"absolute top-10 left-1/2 -translate-x-1/2 w-3/4 max-w-3xl h-96 bg-[#2481CC]/15 rounded-full blur-3xl pointer-events-none -z-10"}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-12 items-center",children:[e.jsxs("div",{className:"lg:col-span-7 space-y-6 text-center lg:text-left",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-[#2481CC]/10 border border-[#2481CC]/30 text-xs font-semibold text-[#2481CC]",children:[e.jsx(xt,{className:"w-4 h-4 text-[#2481CC]"}),e.jsx("span",{children:"Telegram Bot Builder & 24/7 Managed Cloud SaaS"})]}),e.jsxs("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold tracking-tight text-pearl-50 leading-[1.12]",children:["Build, Launch & Scale ",e.jsx("br",{className:"hidden sm:inline"}),e.jsx("span",{className:"text-[#2481CC] relative inline-block",children:"Telegram Bots"})," ","in Minutes"]}),e.jsx("p",{className:"text-base sm:text-lg text-pearl-300 font-normal leading-relaxed max-w-2xl mx-auto lg:mx-0",children:"No VPS or Linux server required. Connect your BotFather token, install ready-to-use bot templates, toggle production modules (Payments, Referrals, Broadcasts, AI Assistant), and deploy to the cloud 24/7."}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center lg:justify-start gap-3 sm:gap-4 pt-2",children:[e.jsxs(I,{to:"/dashboard/bots",className:"w-full sm:w-auto btn-telegram-primary py-3.5 px-6 text-sm font-semibold rounded-xl shadow-telegram flex items-center justify-center gap-2.5",children:[e.jsx(xt,{className:"w-5 h-5 text-white"}),e.jsx("span",{children:"Create Your Bot Free"}),e.jsx(ke,{className:"w-4 h-4"})]}),e.jsxs(I,{to:"/marketplace",className:"w-full sm:w-auto btn-telegram-secondary py-3.5 px-6 text-sm font-semibold rounded-xl flex items-center justify-center gap-2",children:[e.jsx(te,{className:"w-4 h-4 text-[#2481CC]"}),e.jsx("span",{children:"Explore 25+ Templates"})]})]}),e.jsxs("div",{className:"pt-6 border-t border-white/10 grid grid-cols-3 gap-4 text-center lg:text-left",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-xl sm:text-2xl font-bold text-pearl-50",children:"10,000+"}),e.jsx("div",{className:"text-xs text-pearl-400 font-mono mt-0.5",children:"Bots Hosted"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xl sm:text-2xl font-bold text-emerald-400",children:"99.98%"}),e.jsx("div",{className:"text-xs text-pearl-400 font-mono mt-0.5",children:"Cloud Uptime"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xl sm:text-2xl font-bold text-[#2481CC]",children:"0 VPS"}),e.jsx("div",{className:"text-xs text-pearl-400 font-mono mt-0.5",children:"Zero Server Config"})]})]})]}),e.jsx("div",{className:"lg:col-span-5 w-full",children:e.jsxs("div",{className:"astraea-panel rounded-2xl border border-white/15 shadow-2xl overflow-hidden max-w-md mx-auto",children:[e.jsxs("div",{className:"bg-[#2481CC] text-white p-3.5 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-white/20 flex items-center justify-center text-white font-bold text-base shrink-0",children:e.jsx(me,{className:"w-5 h-5 text-white"})}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsx("span",{className:"font-semibold text-sm leading-tight",children:"TeleBot Concierge"}),e.jsx("span",{className:"w-3.5 h-3.5 rounded-full bg-white text-[#2481CC] text-[9px] font-bold flex items-center justify-center",children:"โ"})]}),e.jsxs("div",{className:"text-[11px] text-white/80 font-mono flex items-center gap-1",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-300 animate-pulse"}),e.jsx("span",{children:"bot ยท 24/7 cloud online"})]})]})]}),e.jsx("div",{className:"text-[10px] font-mono px-2 py-0.5 rounded bg-white/20 text-white",children:"LIVE SIMULATOR"})]}),e.jsx("div",{className:"p-4 space-y-3.5 min-h-[360px] max-h-[420px] overflow-y-auto bg-space-950/40 text-xs",children:u.map((j,f)=>e.jsxs("div",{className:`flex flex-col ${j.sender==="user"?"items-end":"items-start"} animate-in fade-in duration-200`,children:[e.jsxs("div",{className:`max-w-[88%] p-3 text-xs leading-relaxed ${j.sender==="user"?"telegram-bubble-outgoing":"telegram-bubble-incoming"}`,children:[e.jsx("div",{dangerouslySetInnerHTML:{__html:j.text.replace(/\n/g,"
")}}),e.jsxs("div",{className:"text-[9px] text-pearl-400/80 text-right mt-1.5 font-mono",children:[j.time," ",j.sender==="user"&&"โโ"]})]}),j.buttons&&j.buttons.length>0&&e.jsx("div",{className:"grid grid-cols-2 gap-1.5 mt-2 w-full max-w-[88%]",children:j.buttons.map((g,v)=>e.jsx("button",{onClick:()=>m(g.action),className:"telegram-btn text-center justify-center text-[11px] py-2 px-2 hover:scale-[1.02] active:scale-[0.98] truncate",children:g.label},v))})]},f))}),e.jsxs("div",{className:"p-3 border-t border-white/10 bg-space-900 flex items-center gap-2",children:[e.jsx("input",{type:"text",readOnly:!0,value:"Tap any button above to test the live bot...",className:"flex-1 bg-space-950 text-pearl-400 text-xs px-3 py-2 rounded-lg border border-white/10 cursor-not-allowed font-mono"}),e.jsx("button",{onClick:()=>m("reset"),className:"p-2 rounded-lg bg-[#2481CC] text-white hover:bg-[#1D74B7] transition shrink-0",title:"Reset Simulator",children:e.jsx(we,{className:"w-4 h-4"})})]})]})})]})]}),e.jsx("section",{id:"how-it-works",className:"py-16 sm:py-24 bg-space-900 border-y border-white/10",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center max-w-3xl mx-auto space-y-3 mb-16",children:[e.jsx("span",{className:"text-xs font-mono text-[#2481CC] uppercase tracking-wider font-semibold",children:"Simple 4-Step Launch Pipeline"}),e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-pearl-50",children:"From BotFather to 24/7 Production in 2 Minutes"}),e.jsx("p",{className:"text-pearl-300 text-sm sm:text-base leading-relaxed",children:"No need to configure Linux servers, systemd files, PM2, or SSL certificates. We handle the entire backend infrastructure."})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[{step:"01",title:"Get BotFather Token",desc:"Open Telegram, chat with @BotFather, send /newbot, and copy your HTTP API token.",icon:xt},{step:"02",title:"Select Bot Template",desc:"Choose from 25+ prebuilt templates: VIP Paid Channel, Referral, E-Commerce, or Support.",icon:te},{step:"03",title:"Toggle & Configure Modules",desc:"Enable Payments, Force Join, Broadcasts, and AI Assistants with visual controls.",icon:We},{step:"04",title:"24/7 Managed Cloud Launch",desc:"Your bot deploys instantly with high-speed webhooks, PostgreSQL storage, and 99.98% uptime.",icon:je}].map((j,f)=>{const g=j.icon;return e.jsxs("div",{className:"astraea-card p-6 rounded-2xl flex flex-col justify-between relative group hover:border-[#2481CC] transition-all",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("span",{className:"text-2xl font-mono font-bold text-[#2481CC]",children:j.step}),e.jsx("div",{className:"w-10 h-10 rounded-xl bg-[#2481CC]/10 text-[#2481CC] flex items-center justify-center",children:e.jsx(g,{className:"w-5 h-5"})})]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-base font-semibold text-pearl-50 mb-2",children:j.title}),e.jsx("p",{className:"text-xs text-pearl-400 leading-relaxed font-sans",children:j.desc})]})]},f)})})]})}),e.jsxs("section",{id:"modules",className:"py-16 sm:py-24 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 w-full",children:[e.jsxs("div",{className:"text-center max-w-3xl mx-auto space-y-3 mb-16",children:[e.jsxs("div",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-[#2481CC]/10 text-xs font-semibold text-[#2481CC]",children:[e.jsx(We,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Modular Bot Architecture"})]}),e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-pearl-50",children:"9 Core Production Modules. Zero Code Required."}),e.jsx("p",{className:"text-pearl-300 text-sm sm:text-base leading-relaxed",children:"Every bot can install, configure, activate, and deactivate modules independently. Real backend execution, database support, and automated permissions."})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[{id:"referral",name:"Referral & Affiliate System",desc:"Multi-tier referral links, reward points, fraud detection, and automated payouts to drive viral growth.",icon:Ve,tag:"VIRAL GROWTH"},{id:"broadcast",name:"Broadcast Campaign Engine",desc:"Dispatches 25 msgs/sec compliant rich announcements to thousands of subscribers with real-time delivery tracking.",icon:_e,tag:"HIGH-THROUGHPUT"},{id:"force-join",name:"Force Join Channel Guard",desc:"Mandates channel and group subscriptions before users can access bot commands, multiplying your member count.",icon:Bs,tag:"AUDIENCE BUILDER"},{id:"welcome",name:"Welcome & Message Studio",desc:"Visual editor for interactive inline buttons, photos, videos, and dynamic placeholders like {first_name}.",icon:Oe,tag:"STUDIO PRO"},{id:"users",name:"User Management CRM",desc:"Comprehensive subscriber directory, custom tags, ban/unban controls, activity history, and engagement analytics.",icon:Le,tag:"ANALYTICS"},{id:"payments",name:"Payments & Invoicing Gateway",desc:"Accept Telegram Stars, Stripe, Razorpay, UPI, and Crypto directly in chat with automated receipts.",icon:Ra,tag:"MONETIZATION"},{id:"subscriptions",name:"VIP Subscriptions & Auto-Kick",desc:"Automates paid channel invites, recurring membership tracking, and kicks expired members automatically.",icon:et,tag:"RECURRING REVENUE"},{id:"auto-filter",name:"Auto Filter & Media Vault",desc:"Automated file search, keyword responses, buttons catalog, and high-speed media delivery for file channels.",icon:La,tag:"MEDIA ENGINE"},{id:"ai",name:"Autonomous AI Assistant",desc:"Powered by Gemini, Claude, and OpenAI with custom system prompts, contextual memory, and knowledge base docs.",icon:Me,tag:"AI POWERED"}].map(j=>{const f=j.icon;return e.jsxs("div",{className:"astraea-card p-6 rounded-2xl flex flex-col justify-between hover:border-[#2481CC] transition group",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("div",{className:"w-11 h-11 rounded-xl bg-[#2481CC]/10 text-[#2481CC] flex items-center justify-center group-hover:bg-[#2481CC] group-hover:text-white transition",children:e.jsx(f,{className:"w-5 h-5"})}),e.jsx("span",{className:"px-2 py-0.5 rounded text-[10px] font-mono uppercase bg-[#2481CC]/10 text-[#2481CC] border border-[#2481CC]/20 font-semibold",children:j.tag})]}),e.jsx("h3",{className:"text-base font-semibold text-pearl-50 mb-2",children:j.name}),e.jsx("p",{className:"text-xs text-pearl-400 font-sans leading-relaxed",children:j.desc})]}),e.jsxs("div",{className:"mt-5 pt-4 border-t border-white/10 flex items-center justify-between text-xs",children:[e.jsxs("span",{className:"text-emerald-400 font-mono text-[11px] flex items-center gap-1.5",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400"}),"Production Ready"]}),e.jsxs(I,{to:"/dashboard/bots/astraea-flagship",className:"text-[#2481CC] hover:underline flex items-center gap-1 font-semibold",children:[e.jsx("span",{children:"Configure"}),e.jsx(ze,{className:"w-3.5 h-3.5"})]})]})]},j.id)})})]}),e.jsx("section",{className:"py-16 sm:py-24 bg-space-900 border-y border-white/10",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"flex flex-col md:flex-row md:items-end justify-between gap-6 mb-12",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-xs font-mono text-[#2481CC] uppercase tracking-wider font-semibold",children:"Instant Turnkey Solutions"}),e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-pearl-50 mt-1",children:"25+ Complete Bot Templates"}),e.jsx("p",{className:"text-pearl-300 text-sm mt-1 max-w-xl",children:"Deploy fully assembled bots in one click, preconfigured with modules, message templates, and workflows."})]}),e.jsxs(I,{to:"/marketplace",className:"btn-telegram-primary py-2.5 px-5 text-xs font-semibold rounded-lg self-start md:self-auto shrink-0",children:[e.jsx("span",{children:"VIEW ALL 25 TEMPLATES"}),e.jsx(ke,{className:"w-3.5 h-3.5"})]})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[{title:"VIP Paid Channel Subscription Bot",slug:"vip-subscription-bot",desc:"Automates payment collection via Telegram Stars, Stripe, and Crypto, generates one-time invites, and kicks expired members.",badge:"BESTSELLER",modules:["Payments","Subscriptions","Broadcast"]},{title:"Viral Referral & Reward Bot",slug:"referral-growth-bot",desc:"Gamified affiliate marketing system with custom invite links, leaderboards, milestone rewards, and instant notifications.",badge:"VIRAL",modules:["Referral","User CRM","Broadcast"]},{title:"AI Customer Support Concierge",slug:"ai-concierge-bot",desc:"24/7 automated agent answering customer inquiries with customized LLM models, FAQ knowledge base, and human agent routing.",badge:"AI DRIVEN",modules:["AI Assistant","Welcome","User CRM"]}].map((j,f)=>e.jsxs("div",{className:"astraea-card p-6 rounded-2xl flex flex-col justify-between hover:border-[#2481CC] transition group",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsx("span",{className:"px-2 py-0.5 rounded text-[10px] font-mono bg-[#2481CC]/15 text-[#2481CC] font-bold",children:j.badge}),e.jsx("span",{className:"text-[11px] font-mono text-pearl-400",children:"โก 1-Click Install"})]}),e.jsx("h3",{className:"text-lg font-semibold text-pearl-50 mb-2",children:j.title}),e.jsx("p",{className:"text-xs text-pearl-400 font-sans leading-relaxed mb-4",children:j.desc}),e.jsx("div",{className:"flex flex-wrap gap-1.5 mb-6",children:j.modules.map((g,v)=>e.jsx("span",{className:"px-2 py-0.5 rounded text-[10px] font-mono bg-space-850 text-pearl-300 border border-white/10",children:g},v))})]}),e.jsxs(I,{to:`/marketplace/bots/${j.slug}`,className:"w-full btn-telegram-primary py-2.5 text-xs justify-center",children:[e.jsx("span",{children:"Install This Template"}),e.jsx(ke,{className:"w-3.5 h-3.5"})]})]},f))})]})}),e.jsxs("section",{className:"py-16 sm:py-24 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 w-full",children:[e.jsxs("div",{className:"text-center max-w-3xl mx-auto space-y-3 mb-16",children:[e.jsx("span",{className:"text-xs font-mono text-[#2481CC] uppercase tracking-wider font-semibold",children:"Infrastructure Comparison"}),e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-pearl-50",children:"Why Teams Choose TeleBot Cloud over Self-Hosting"}),e.jsx("p",{className:"text-pearl-300 text-sm sm:text-base leading-relaxed",children:"Stop wasting hours configuring Ubuntu servers, handling SSL renewals, and troubleshooting random downtime."})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 max-w-4xl mx-auto",children:[e.jsxs("div",{className:"astraea-card p-6 sm:p-8 rounded-2xl border-rose-500/30 bg-rose-500/[0.02]",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-rose-500/10 text-rose-400 flex items-center justify-center shrink-0",children:e.jsx(dt,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-pearl-50",children:"Traditional VPS / Self-Hosted"}),e.jsx("span",{className:"text-xs font-mono text-rose-400",children:"High Overhead & Fragile"})]})]}),e.jsxs("ul",{className:"space-y-3 text-xs sm:text-sm text-pearl-300",children:[e.jsxs("li",{className:"flex items-start gap-2.5",children:[e.jsx(ae,{className:"w-4 h-4 text-rose-400 shrink-0 mt-0.5"}),e.jsx("span",{children:"Requires Linux command-line, Docker, and systemd maintenance."})]}),e.jsxs("li",{className:"flex items-start gap-2.5",children:[e.jsx(ae,{className:"w-4 h-4 text-rose-400 shrink-0 mt-0.5"}),e.jsx("span",{children:"Manual SSL Let's Encrypt certificate renewals and port forwarding."})]}),e.jsxs("li",{className:"flex items-start gap-2.5",children:[e.jsx(ae,{className:"w-4 h-4 text-rose-400 shrink-0 mt-0.5"}),e.jsx("span",{children:"Bots crash randomly when VPS runs out of RAM or process freezes."})]}),e.jsxs("li",{className:"flex items-start gap-2.5",children:[e.jsx(ae,{className:"w-4 h-4 text-rose-400 shrink-0 mt-0.5"}),e.jsx("span",{children:"No visual dashboard for modules, message templates, or CRM."})]}),e.jsxs("li",{className:"flex items-start gap-2.5",children:[e.jsx(ae,{className:"w-4 h-4 text-rose-400 shrink-0 mt-0.5"}),e.jsx("span",{children:"Hardcoded scripts that break whenever Telegram updates its API."})]})]})]}),e.jsxs("div",{className:"astraea-card p-6 sm:p-8 rounded-2xl border-[#2481CC]/50 bg-[#2481CC]/[0.03] shadow-telegram",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-[#2481CC] text-white flex items-center justify-center shrink-0",children:e.jsx(Ma,{className:"w-5 h-5 text-white"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-pearl-50",children:"TeleBot Cloud Managed"}),e.jsx("span",{className:"text-xs font-mono text-[#2481CC]",children:"Zero Maintenance ยท 99.98% SLA"})]})]}),e.jsxs("ul",{className:"space-y-3 text-xs sm:text-sm text-pearl-200",children:[e.jsxs("li",{className:"flex items-start gap-2.5",children:[e.jsx(ee,{className:"w-4 h-4 text-[#2481CC] shrink-0 mt-0.5"}),e.jsx("span",{children:"100% no-code setup with your BotFather token in under 60 seconds."})]}),e.jsxs("li",{className:"flex items-start gap-2.5",children:[e.jsx(ee,{className:"w-4 h-4 text-[#2481CC] shrink-0 mt-0.5"}),e.jsx("span",{children:"Automated HTTPS webhook endpoints with Cloudflare DDoS protection."})]}),e.jsxs("li",{className:"flex items-start gap-2.5",children:[e.jsx(ee,{className:"w-4 h-4 text-[#2481CC] shrink-0 mt-0.5"}),e.jsx("span",{children:"High-availability Redis task queues and auto-restarting workers."})]}),e.jsxs("li",{className:"flex items-start gap-2.5",children:[e.jsx(ee,{className:"w-4 h-4 text-[#2481CC] shrink-0 mt-0.5"}),e.jsx("span",{children:"Visual Studio for Welcome Messages, Broadcasts, and Payments."})]}),e.jsxs("li",{className:"flex items-start gap-2.5",children:[e.jsx(ee,{className:"w-4 h-4 text-[#2481CC] shrink-0 mt-0.5"}),e.jsx("span",{children:"9 production modules that turn on/off with a single toggle."})]})]})]})]})]}),e.jsx("section",{id:"pricing",className:"py-16 sm:py-24 bg-space-900 border-y border-white/10",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center max-w-3xl mx-auto space-y-3 mb-16",children:[e.jsx("span",{className:"text-xs font-mono text-[#2481CC] uppercase tracking-wider font-semibold",children:"Fair & Transparent Pricing"}),e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-pearl-50",children:"Plans Built for Every Stage of Growth"}),e.jsx("p",{className:"text-pearl-300 text-sm sm:text-base leading-relaxed",children:"Start free with your first bot. Upgrade as your audience and message volume grow."})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 max-w-5xl mx-auto",children:[e.jsxs("div",{className:"astraea-card p-6 sm:p-8 rounded-2xl flex flex-col justify-between",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-xs font-mono text-pearl-400 uppercase font-semibold",children:"STARTER"}),e.jsxs("div",{className:"my-4",children:[e.jsx("span",{className:"text-3xl sm:text-4xl font-bold text-pearl-50",children:"$0"}),e.jsx("span",{className:"text-xs text-pearl-400 font-mono ml-2",children:"/ Forever Free"})]}),e.jsx("p",{className:"text-xs text-pearl-400 mb-6 font-sans",children:"Ideal for testing ideas and launching your first Telegram community bot."}),e.jsxs("ul",{className:"space-y-2.5 text-xs text-pearl-300 mb-8",children:[e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(W,{className:"w-4 h-4 text-emerald-400"}),e.jsx("span",{children:"1 Active Telegram Bot"})]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(W,{className:"w-4 h-4 text-emerald-400"}),e.jsx("span",{children:"Up to 1,000 Subscribers"})]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(W,{className:"w-4 h-4 text-emerald-400"}),e.jsx("span",{children:"Standard Broadcast Engine"})]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(W,{className:"w-4 h-4 text-emerald-400"}),e.jsx("span",{children:"Welcome & Message Studio"})]})]})]}),e.jsx(I,{to:"/login",className:"w-full btn-telegram-secondary py-3 text-xs justify-center font-semibold",children:"Get Started Free"})]}),e.jsxs("div",{className:"astraea-card p-6 sm:p-8 rounded-2xl flex flex-col justify-between border-[#2481CC] shadow-telegram relative",children:[e.jsx("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 px-3 py-0.5 rounded-full bg-[#2481CC] text-white text-[10px] font-mono font-bold tracking-wider uppercase",children:"MOST POPULAR"}),e.jsxs("div",{children:[e.jsx("span",{className:"text-xs font-mono text-[#2481CC] uppercase font-bold",children:"PRO BUILDER"}),e.jsxs("div",{className:"my-4",children:[e.jsx("span",{className:"text-3xl sm:text-4xl font-bold text-pearl-50",children:"$19"}),e.jsx("span",{className:"text-xs text-pearl-400 font-mono ml-2",children:"/ month"})]}),e.jsx("p",{className:"text-xs text-pearl-400 mb-6 font-sans",children:"High-speed broadcasts, VIP paid subscriptions, and AI agents."}),e.jsxs("ul",{className:"space-y-2.5 text-xs text-pearl-200 mb-8",children:[e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(W,{className:"w-4 h-4 text-[#2481CC]"}),e.jsx("span",{children:"5 Active Telegram Bots"})]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(W,{className:"w-4 h-4 text-[#2481CC]"}),e.jsx("span",{children:"Up to 50,000 Subscribers"})]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(W,{className:"w-4 h-4 text-[#2481CC]"}),e.jsx("span",{children:"25 msg/s Broadcast Engine"})]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(W,{className:"w-4 h-4 text-[#2481CC]"}),e.jsx("span",{children:"Payments & VIP Subscriptions"})]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(W,{className:"w-4 h-4 text-[#2481CC]"}),e.jsx("span",{children:"Autonomous AI Assistant"})]})]})]}),e.jsx(I,{to:"/pricing",className:"w-full btn-telegram-primary py-3 text-xs justify-center font-semibold shadow-telegram",children:"Upgrade to Pro"})]}),e.jsxs("div",{className:"astraea-card p-6 sm:p-8 rounded-2xl flex flex-col justify-between",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-xs font-mono text-pearl-400 uppercase font-semibold",children:"ENTERPRISE"}),e.jsxs("div",{className:"my-4",children:[e.jsx("span",{className:"text-3xl sm:text-4xl font-bold text-pearl-50",children:"$79"}),e.jsx("span",{className:"text-xs text-pearl-400 font-mono ml-2",children:"/ month"})]}),e.jsx("p",{className:"text-xs text-pearl-400 mb-6 font-sans",children:"Large networks, unlimited subscribers, isolated databases, and 99.98% SLA."}),e.jsxs("ul",{className:"space-y-2.5 text-xs text-pearl-300 mb-8",children:[e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(W,{className:"w-4 h-4 text-emerald-400"}),e.jsx("span",{children:"Unlimited Telegram Bots"})]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(W,{className:"w-4 h-4 text-emerald-400"}),e.jsx("span",{children:"Unlimited Subscribers"})]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(W,{className:"w-4 h-4 text-emerald-400"}),e.jsx("span",{children:"Full MCP Pro Cloud Tools Protocol"})]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(W,{className:"w-4 h-4 text-emerald-400"}),e.jsx("span",{children:"Dedicated Isolated Database"})]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(W,{className:"w-4 h-4 text-emerald-400"}),e.jsx("span",{children:"Priority Support via Telegram"})]})]})]}),e.jsx(I,{to:"/pricing",className:"w-full btn-telegram-secondary py-3 text-xs justify-center font-semibold",children:"View Enterprise Tiers"})]})]})]})}),e.jsxs("section",{id:"faq",className:"py-16 sm:py-24 max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 w-full",children:[e.jsxs("div",{className:"text-center space-y-3 mb-12",children:[e.jsx("span",{className:"text-xs font-mono text-[#2481CC] uppercase tracking-wider font-semibold",children:"Common Questions"}),e.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-pearl-50",children:"Frequently Asked Questions"})]}),e.jsx("div",{className:"space-y-4",children:b.map((j,f)=>{const g=i===f;return e.jsxs("div",{className:"astraea-card rounded-xl border border-white/10 overflow-hidden transition",children:[e.jsxs("button",{onClick:()=>h(g?null:f),className:"w-full p-4 sm:p-5 text-left flex items-center justify-between gap-4 font-semibold text-pearl-50 text-sm sm:text-base",children:[e.jsx("span",{children:j.q}),e.jsx(ze,{className:`w-5 h-5 text-pearl-400 transition-transform ${g?"rotate-90 text-[#2481CC]":""}`})]}),g&&e.jsx("div",{className:"px-4 sm:px-5 pb-5 text-xs sm:text-sm text-pearl-300 font-sans leading-relaxed border-t border-white/5 pt-3 animate-in fade-in",children:j.a})]},f)})})]}),e.jsx("section",{className:"py-16 px-4 sm:px-6 lg:px-8 max-w-7xl mx-auto w-full",children:e.jsx("div",{className:"rounded-3xl bg-[#2481CC] text-white p-8 sm:p-12 md:p-16 text-center space-y-6 shadow-2xl relative overflow-hidden",children:e.jsxs("div",{className:"relative z-10 max-w-2xl mx-auto space-y-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-2xl bg-white/20 text-white flex items-center justify-center mx-auto mb-2",children:e.jsx(xt,{className:"w-7 h-7 text-white"})}),e.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-bold tracking-tight",children:"Ready to Launch Your Telegram Bot?"}),e.jsx("p",{className:"text-white/90 text-sm sm:text-base leading-relaxed",children:"Join thousands of creators, businesses, and channel admins running their Telegram bots on our managed cloud."}),e.jsxs("div",{className:"pt-2 flex flex-col sm:flex-row items-center justify-center gap-3",children:[e.jsxs(I,{to:"/dashboard/bots",className:"w-full sm:w-auto bg-white text-[#2481CC] hover:bg-slate-50 py-3.5 px-8 rounded-xl font-bold text-sm transition shadow-lg flex items-center justify-center gap-2",children:[e.jsx("span",{children:"Create Your Bot Now"}),e.jsx(ke,{className:"w-4 h-4"})]}),e.jsx(I,{to:"/marketplace",className:"w-full sm:w-auto bg-white/10 hover:bg-white/20 text-white py-3.5 px-6 rounded-xl font-medium text-sm transition border border-white/25 flex items-center justify-center gap-2",children:e.jsx("span",{children:"Browse Templates"})})]})]})})}),e.jsx(as,{})]})},xe=({children:t})=>{const[s,a]=l.useState(!1);return l.useEffect(()=>{a(!0);const r=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{a(!1),document.body.style.overflow=r}},[]),s?Zs.createPortal(t,document.body):null},Lt=[{id:"bot_ecommerce_concierge",name:"E-Commerce & Digital Store Concierge",headline:"Interactive shopping catalog, cart management & instant Telegram checkout.",description:"Transforms your Telegram bot into an automated 24/7 digital storefront. Customers can browse categorized products with images, add items to cart, select delivery address, and pay via integrated Razorpay/Stripe checkout without leaving Telegram.",category:"business",icon:Os,version:"1.2.0",rating:4.95,installCount:1420,isFeatured:!0,tags:["ecommerce","store","payments","shopping","cart"],permissions:["messages.send","payments.create","database.read_write"],mcpTools:["shopify.products.search","payments.order.verify","shipping.status.get"],systemTemplates:["welcome","catalog","cart_view","invoice","order_status"],defaultConfig:{store_name:"Astraea Boutique",currency:"INR",shipping_fee:0}},{id:"bot_customer_support",name:"AI Customer Support Desk",headline:"Tier-1 AI resolution with seamless human agent ticket escalation.",description:"Automate 80% of customer inquiries with smart contextual AI answers. Detects frustrated users and automatically opens priority tickets with notification alerts to your human support team.",category:"business",icon:Ds,version:"1.1.0",rating:4.92,installCount:980,isFeatured:!0,tags:["support","tickets","helpdesk","ai","crm"],permissions:["messages.send","notifications.dispatch","ai.completion"],mcpTools:["zendesk.ticket.create","crm.contact.lookup"],systemTemplates:["welcome","ticket_created","ticket_resolved"],defaultConfig:{company_name:"Acme Cloud",escalation_threshold:.35}},{id:"bot_lead_crm",name:"Lead Generation & CRM Collector",headline:"Conversational qualification funnel that captures leads directly into your database.",description:"Replaces tedious web forms with natural in-chat qualification. Collects verified phone numbers via Telegram 1-tap contact sharing, qualifies budgets, and syncs immediately to HubSpot/Google Sheets.",category:"business",icon:Ba,version:"1.0.4",rating:4.88,installCount:750,isFeatured:!1,tags:["leads","crm","forms","hubspot","sales"],permissions:["messages.send","users.contact.request"],mcpTools:["hubspot.contact.create","sheets.append_row"],systemTemplates:["welcome","ask_question","lead_thankyou"],defaultConfig:{target_sheet_id:"",notify_admin_chat_id:""}},{id:"bot_appointment_booking",name:"Calendar & Appointment Scheduler",headline:"Real-time time-slot booking with Google Calendar / Cal.com sync.",description:"Eliminates back-and-forth scheduling messages. Clients select available dates directly from an inline calendar matrix, receive automated reminder pings, and can reschedule in 1 tap.",category:"business",icon:Oa,version:"1.3.1",rating:4.91,installCount:620,isFeatured:!1,tags:["calendar","booking","appointments","reminders"],permissions:["messages.send","notifications.schedule"],mcpTools:["google.calendar.events.list","google.calendar.events.create"],systemTemplates:["welcome","select_slot","booking_confirmed"],defaultConfig:{slot_duration_minutes:30,buffer_minutes:10}},{id:"bot_invoice_billing",name:"Invoice Generation & Ledger Bot",headline:"Generate itemized PDF bills and collect UPI/card payments instantly.",description:"Instant billing tool for service providers, freelancers, and agencies. Send /invoice to generate professional branded invoices with payment deep-links and verified status tracking.",category:"business",icon:$s,version:"1.1.2",rating:4.89,installCount:890,isFeatured:!0,tags:["invoicing","billing","accounting","pdf","payments"],permissions:["messages.send","payments.create","files.upload"],mcpTools:["payments.invoice.create","pdf.invoice.render"],systemTemplates:["welcome","invoice_summary","payment_success"],defaultConfig:{company_tax_id:"",currency:"INR"}},{id:"bot_subscription_vip",name:"VIP Club & Community Gatekeeper",headline:"Paid subscription channels with automated invite links and expiry kick.",description:"Monetize exclusive Telegram channels and groups. Accepts recurring monthly/yearly payments, generates single-use join links, and auto-removes users upon membership expiration.",category:"business",icon:ct,version:"2.0.0",rating:4.98,installCount:2310,isFeatured:!0,tags:["subscriptions","vip","monetization","channels","paywall"],permissions:["channels.manage","invite_links.create","members.restrict"],mcpTools:["telegram.chat.create_invite_link","telegram.chat.kick_member"],systemTemplates:["welcome","plans_list","vip_welcome","expiry_warning"],defaultConfig:{channel_id:"",monthly_price:499,currency:"INR"}},{id:"bot_group_admin_pro",name:"Group Admin & Moderation Shield",headline:"Comprehensive Telegram group guard with anti-flood and auto-mute.",description:"Keep large Telegram supergroups civilized 24/7. Automatically cleans join/leave spam messages, enforces message rate limits, silences spammers, and provides extensive moderator command toolkits.",category:"community",icon:Da,version:"2.4.0",rating:4.96,installCount:3450,isFeatured:!0,tags:["moderation","admin","anti-spam","groups","security"],permissions:["messages.delete","members.restrict","members.promote"],mcpTools:["telegram.group.delete_message","telegram.group.ban_member"],systemTemplates:["warn_message","ban_notice","rules_display"],defaultConfig:{max_warns:3,delete_service_messages:!0,flood_limit:5}},{id:"bot_anti_spam",name:"AI Anti-Spam & Link Filter",headline:"Neural network spam detector that blocks unauthorized advertising and phishing.",description:"Protects communities from crypto scams, fake airdrop bots, and unwanted external links. Evaluates message text and usernames using machine learning before users can fall for scams.",category:"community",icon:ne,version:"1.3.0",rating:4.94,installCount:1890,isFeatured:!1,tags:["antispam","phishing","security","links","crypto-shield"],permissions:["messages.delete","members.restrict"],mcpTools:["ai.spam.classify","url.reputation.check"],systemTemplates:["spam_deleted_notice"],defaultConfig:{allow_whitelisted_domains_only:!0,ban_on_crypto_scam:!0}},{id:"bot_welcome_verification",name:"Captcha Gate & Welcome Verifier",headline:"Stop userbot raids with interactive math and button CAPTCHAs.",description:"Requires all newly joined members to tap the matching emoji or solve a simple 1-click CAPTCHA within 60 seconds before they are allowed to send messages in the group.",category:"community",icon:$a,version:"1.2.5",rating:4.92,installCount:2100,isFeatured:!0,tags:["captcha","verification","onboarding","antiraid"],permissions:["members.restrict","messages.send","messages.delete"],mcpTools:["captcha.generate","telegram.chat.unmute"],systemTemplates:["captcha_prompt","welcome_verified"],defaultConfig:{captcha_timeout_sec:60,fail_action:"kick"}},{id:"bot_reputation_leaderboard",name:"Community Karma & Leaderboard",headline:"Reward helpful group members with +1 karma and weekly rank badges.",description:"Fosters active community engagement. Members award thanks to each other by replying +1 or /thanks. Automatically calculates daily top contributors and grants custom Telegram admin titles.",category:"community",icon:Fa,version:"1.1.0",rating:4.87,installCount:840,isFeatured:!1,tags:["karma","reputation","gamification","leaderboard","community"],permissions:["messages.read","messages.send"],mcpTools:["database.karma.increment","database.leaderboard.get"],systemTemplates:["karma_awarded","weekly_leaderboard"],defaultConfig:{cooldown_minutes:5,weekly_reset:!1}},{id:"bot_anonymous_feedback",name:"Anonymous Feedback & Confessions Box",headline:"Allows group members to ask questions or submit feedback anonymously.",description:"Encourages honest team or community feedback. Users message the bot in private, and the bot publishes the query into the group or admin channel with full author anonymity preserved.",category:"community",icon:Ua,version:"1.0.8",rating:4.85,installCount:510,isFeatured:!1,tags:["anonymous","feedback","confessions","qa","privacy"],permissions:["messages.send"],mcpTools:["message.send_anonymous"],systemTemplates:["private_welcome","group_published_post"],defaultConfig:{destination_chat_id:"",moderation_queue:!0}},{id:"bot_referral_rewards",name:"Viral Referral & Contest Engine",headline:"Grow your Telegram channel rapidly with trackable subscriber invite links.",description:"Generates personal deep-link invite links (/start ref_12345). Tracks valid channel joins, detects fraudulent multi-accounts, and distributes rewards or entry tickets automatically.",category:"community",icon:vt,version:"2.1.0",rating:4.97,installCount:2890,isFeatured:!0,tags:["referral","viral","growth","contests","giveaways"],permissions:["messages.send","channels.members.verify"],mcpTools:["referral.code.generate","referral.signup.track"],systemTemplates:["welcome","my_referrals","reward_unlocked"],defaultConfig:{points_per_referral:10,min_payout_points:100}},{id:"bot_chatgpt_assistant",name:"Multi-LLM Conversational Brain",headline:"Intelligent multi-turn AI assistant powered by OpenAI GPT-4o and Claude 3.5.",description:"Deploy a versatile smart AI bot in your group or direct messages. Handles contextual Q&A, brainstorming, language translation, and summaries with custom persona instructions.",category:"ai_specialist",icon:me,version:"2.5.0",rating:4.99,installCount:4200,isFeatured:!0,tags:["ai","chatgpt","claude","gemini","assistant"],permissions:["messages.send","ai.tokens.consume"],mcpTools:["openai.chat.completion","openrouter.chat.completion"],systemTemplates:["welcome","ai_typing","context_cleared"],defaultConfig:{model:"gpt-4o-mini",temperature:.7,memory_turns:10}},{id:"bot_pdf_research",name:"Document & PDF Research RAG",headline:"Upload PDF/DOCX files in chat and query them with semantic vector search.",description:"Transform documents into interactive knowledge bases. Users simply upload a whitepaper, contract, or textbook to Telegram and ask questions; the bot cites exact pages with answers.",category:"ai_specialist",icon:qt,version:"1.4.0",rating:4.93,installCount:1650,isFeatured:!0,tags:["rag","pdf","documents","search","embeddings"],permissions:["files.download","messages.send"],mcpTools:["embeddings.document.index","vector.similarity.search"],systemTemplates:["welcome","document_indexed","rag_answer"],defaultConfig:{chunk_size:500,top_k_matches:4}},{id:"bot_image_gen",name:"AI Image & Artwork Generator",headline:"Text-to-image studio using Flux.1 and Stable Diffusion directly in Telegram.",description:"Generate stunning photorealistic artwork, marketing banners, and avatars on demand. Send /imagine to receive 4 variations with upscaling and re-roll inline buttons.",category:"ai_specialist",icon:Mt,version:"1.3.2",rating:4.91,installCount:1980,isFeatured:!1,tags:["images","art","flux","midjourney","diffusion"],permissions:["photos.send","payments.credits.deduct"],mcpTools:["image.flux.generate","image.upscale"],systemTemplates:["welcome","generating_progress","image_delivered"],defaultConfig:{default_aspect_ratio:"1:1",credits_per_gen:1}},{id:"bot_code_interpreter",name:"Sandboxed Code Runner & Tutor",headline:"Execute Python, JavaScript, and SQL securely inside Telegram messages.",description:"Run code snippets, debug errors, and visualize charts directly within chat. Secure firewalled WebAssembly execution sandbox with syntax highlighting and instant outputs.",category:"ai_specialist",icon:Va,version:"1.2.0",rating:4.88,installCount:780,isFeatured:!1,tags:["code","python","developer","sandbox","interpreter"],permissions:["messages.send"],mcpTools:["sandbox.code.execute"],systemTemplates:["welcome","execution_result"],defaultConfig:{execution_timeout_ms:3e3,memory_limit_mb:64}},{id:"bot_voice_transcriber",name:"Voice Note Transcriber & Summarizer",headline:"Converts long Telegram audio messages to clean text with bullet summaries.",description:"Never listen to a 5-minute voice note again. Powered by Whisper AI, converts incoming voice recordings and video notes into clean formatted transcripts with executive summaries.",category:"ai_specialist",icon:Ha,version:"1.5.0",rating:4.96,installCount:2450,isFeatured:!0,tags:["voice","audio","transcription","whisper","summary"],permissions:["voice.download","messages.send"],mcpTools:["audio.whisper.transcribe","ai.summary.generate"],systemTemplates:["transcript_ready"],defaultConfig:{auto_detect_language:!0,generate_summary:!0}},{id:"bot_sql_query_assistant",name:"Text-to-SQL Analytics Assistant",headline:"Ask business questions in plain English and receive instant database metrics.",description:'Empower executive teams to query production read-replicas safely. Send "How many VIP signups this week?" and the bot writes verified SQL queries and returns a table or chart.',category:"ai_specialist",icon:Ga,version:"1.1.0",rating:4.89,installCount:430,isFeatured:!1,tags:["sql","database","bi","analytics","charts"],permissions:["database.read_only","messages.send"],mcpTools:["db.schema.inspect","db.readonly.query"],systemTemplates:["welcome","query_result"],defaultConfig:{max_rows:50,enforce_read_only:!0}},{id:"bot_github_notifier",name:"GitHub DevOps Sentinel",headline:"Real-time repository alerts for commits, pull requests, issues, and releases.",description:'Bridge engineering workflows with Telegram. Sends interactive cards for incoming PRs with 1-click "Approve" or "Comment" buttons linked directly to your GitHub organization.',category:"developer_tools",icon:za,version:"2.1.0",rating:4.94,installCount:1540,isFeatured:!0,tags:["github","devops","git","pr","alerts"],permissions:["messages.send","webhooks.receive"],mcpTools:["github.repo.subscribe","github.pr.merge"],systemTemplates:["pr_opened","commit_alert","release_published"],defaultConfig:{filter_branches:["main","master","staging"]}},{id:"bot_server_monitor",name:"Server Uptime & Sentry Error Monitor",headline:"Instant Telegram pings when your API endpoints or Docker servers experience downtime.",description:"Reliable heartbeat monitoring for APIs, VPS nodes, and databases. Detects 5xx spikes and unhandled exceptions from Sentry and alerts on-call engineers within 2 seconds.",category:"developer_tools",icon:Fe,version:"1.6.0",rating:4.98,installCount:2210,isFeatured:!0,tags:["monitoring","uptime","sentry","devops","infra"],permissions:["notifications.dispatch","webhooks.receive"],mcpTools:["health.endpoint.ping","sentry.incident.notify"],systemTemplates:["outage_alert","recovery_notice"],defaultConfig:{check_interval_sec:30,retry_count:2}},{id:"bot_crypto_whale",name:"On-Chain Whale & DEX Swap Alert",headline:"Real-time tracking for large transactions on Ethereum, Solana, and TON.",description:"Catch large crypto movements before the market reacts. Streams customizable alerts for transactions over $100,000, new liquidity pool creations, and contract deployments.",category:"developer_tools",icon:je,version:"1.3.0",rating:4.87,installCount:1120,isFeatured:!1,tags:["crypto","whale-alerts","ton","solana","dex"],permissions:["messages.send"],mcpTools:["blockchain.whale.subscribe"],systemTemplates:["whale_swap_alert"],defaultConfig:{min_usd_value:1e5,chains:["TON","ETH","SOL"]}},{id:"bot_ssh_sysadmin",name:"SSH Command Runner & Cloud Console",headline:"Authorized 2FA terminal shell to inspect logs and restart Docker containers.",description:"Manage remote servers safely from your phone. Authenticated through Telegram biometrics and hardware keys. Execute safe whitelisted commands like `docker restart api` or `df -h`.",category:"developer_tools",icon:He,version:"1.0.5",rating:4.84,installCount:390,isFeatured:!1,tags:["ssh","terminal","docker","sysadmin","devops"],permissions:["admin.hardware_auth","messages.send"],mcpTools:["server.ssh.execute_whitelisted"],systemTemplates:["auth_required","command_output"],defaultConfig:{allowed_commands:["status","restart","logs"],require_pin:!0}},{id:"bot_rss_reader",name:"RSS Feed & News Auto-Broadcaster",headline:"Auto-publish articles and YouTube videos to your Telegram channels within 60s.",description:"Keep your broadcast channels populated effortlessly. Watches unlimited RSS/Atom feeds, formats incoming news with custom headers and instant-view previews, and auto-posts.",category:"content_media",icon:Wa,version:"1.4.2",rating:4.9,installCount:1780,isFeatured:!1,tags:["rss","news","youtube","blog","autopost"],permissions:["channels.post"],mcpTools:["rss.feed.fetch","telegram.channel.post"],systemTemplates:["feed_item_post"],defaultConfig:{check_interval_min:5,include_source_link:!0}},{id:"bot_newsletter_publisher",name:"Substack & Medium Syndicator",headline:"Syndicate your published newsletters with rich buttons and instant member polls.",description:"Grow a cross-platform media audience. Syncs newsletters automatically with instant formatting and provides member reaction buttons to gather engagement statistics.",category:"content_media",icon:qa,version:"1.1.0",rating:4.86,installCount:640,isFeatured:!1,tags:["newsletter","substack","medium","publishing"],permissions:["channels.post","messages.send"],mcpTools:["publishing.syndicate"],systemTemplates:["newsletter_edition"],defaultConfig:{append_footer:!0}},{id:"bot_media_watermarker",name:"Bulk Photo & Video Watermarker",headline:"Automatically stamp your brand logo or channel handle onto uploaded media.",description:"Essential for media creators and community managers. Automatically overlays semi-transparent brand watermarks, protects intellectual property, and outputs high-quality compressed media.",category:"content_media",icon:Mt,version:"1.2.1",rating:4.92,installCount:1410,isFeatured:!0,tags:["watermark","branding","media","photos","video"],permissions:["files.download","files.upload"],mcpTools:["media.watermark.apply"],systemTemplates:["welcome","processing_media","media_ready"],defaultConfig:{watermark_text:"@MyBrand",position:"bottom_right",opacity:.7}}],Xl=[{id:"inst-1",name:"VIP Boutique Shop",templateId:"bot_ecommerce_concierge",templateName:"E-Commerce & Digital Store Concierge",category:"business",status:"deployed",botUsername:"@astraea_shop_bot",uptimePct:100,interactionsCount:1240,installedAt:"2026-11-17T14:30:00Z"},{id:"inst-2",name:"DevOps GitHub Sentinel",templateId:"bot_github_notifier",templateName:"GitHub DevOps Notifier",category:"developer_tools",status:"deployed",botUsername:"@devops_sentinel_bot",uptimePct:99.98,interactionsCount:840,installedAt:"2026-11-18T08:15:00Z"}],eo=()=>{var H;const{currentBot:t,bots:s,selectBot:a,applyTemplateToBot:r}=ce(),[o,n]=Vn(),i=o.get("tab")==="installed"?"installed":"catalog",h=L=>{n(L==="installed"?{tab:"installed"}:{})},[u,x]=l.useState("all"),[m,b]=l.useState(""),[j,f]=l.useState(null),[g,v]=l.useState(null),[c,w]=l.useState(""),[p,N]=l.useState((t==null?void 0:t.id)||(((H=s[0])==null?void 0:H.id)??"")),[k,_]=l.useState(Xl),[A,C]=l.useState(null),U=[{id:"all",name:"All Blueprints",count:Lt.length},{id:"business",name:"Business & Store",count:6},{id:"community",name:"Community Guard",count:6},{id:"ai_specialist",name:"AI Specialists",count:6},{id:"developer_tools",name:"Developer & DevOps",count:4},{id:"content_media",name:"Content & Media",count:3}],M=Lt.filter(L=>{const se=u==="all"||L.category===u,le=L.name.toLowerCase().includes(m.toLowerCase())||L.headline.toLowerCase().includes(m.toLowerCase())||L.tags.some(B=>B.toLowerCase().includes(m.toLowerCase()));return se&&le}),$=L=>{var se;v(L),w(L.name),N((t==null?void 0:t.id)||(((se=s[0])==null?void 0:se.id)??""))},D=()=>{if(!g)return;const L=s.find(B=>B.id===p)||t||s[0];if(!L){C("Please connect a Telegram Bot first before installing a template.");return}r(L.id,g.name,g.systemTemplates);const se=`@${L.username}`,le={id:`inst-${Date.now()}`,name:c||g.name,templateId:g.id,templateName:g.name,category:g.category,status:"deployed",botUsername:se,uptimePct:100,interactionsCount:0,installedAt:new Date().toISOString()};_([le,...k]),v(null),C(`Template "${g.name}" successfully deployed to ${se} with 24/7 cloud runtime & modules provisioned!`),setTimeout(()=>C(null),5e3)};return e.jsxs("div",{className:"space-y-6 sm:space-y-8 animate-in fade-in duration-300 w-full max-w-full min-w-0",children:[e.jsxs("div",{className:"astraea-card rounded-2xl p-4 sm:p-5 border border-white/10 flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-[#2481CC]/15 border border-[#2481CC]/40 flex items-center justify-center text-[#2481CC] shadow-telegram shrink-0",children:e.jsx(me,{className:"w-5 h-5"})}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-1.5 text-[10px] font-mono text-emerald-400 font-semibold uppercase",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),e.jsx("span",{children:"ACTIVE BOT WORKSPACE"})]}),e.jsxs("div",{className:"text-sm font-bold text-pearl-50",children:[t==null?void 0:t.name," ",e.jsxs("span",{className:"text-xs text-[#2481CC] font-mono",children:["(@",t==null?void 0:t.username,")"]})]})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-xs text-pearl-300 font-sans hidden md:inline",children:"1-Click install any turnkey template directly into this bot:"}),e.jsxs(I,{to:"/dashboard",className:"btn-telegram-secondary py-1.5 px-3 text-xs inline-flex items-center gap-1.5 shrink-0",children:[e.jsx("span",{children:"Open Bot Console"}),e.jsx(ze,{className:"w-3.5 h-3.5"})]})]})]}),e.jsxs("div",{className:"astraea-panel rounded-2xl border border-white/10 p-4 sm:p-6 md:p-8 shadow-sm relative overflow-hidden",children:[e.jsx("div",{className:"absolute -right-16 -top-16 w-80 h-80 bg-[#2481CC]/10 rounded-full blur-3xl pointer-events-none"}),e.jsxs("div",{className:"relative z-10 flex flex-col md:flex-row md:items-center justify-between gap-4 sm:gap-6",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-[#2481CC]/10 border border-[#2481CC]/30 text-[#2481CC] text-xs font-medium uppercase tracking-wider mb-2 sm:mb-3",children:[e.jsx(te,{className:"w-3.5 h-3.5"}),"Telegram Bot Template Marketplace"]}),e.jsxs("h1",{className:"text-2xl sm:text-3xl font-bold tracking-tight text-pearl-50",children:["Ready-Made Bot ",e.jsx("span",{className:"text-[#2481CC]",children:"Templates"})]}),e.jsx("p",{className:"text-pearl-300 text-xs sm:text-sm mt-1 max-w-2xl font-normal leading-relaxed",children:"No VPS, no server configuration, zero coding headaches. Choose from 25 production-ready bot blueprints, customize credentials, and launch on managed cloud infrastructure with 24/7 uptime."})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-stretch sm:items-center gap-2 sm:gap-3 w-full md:w-auto shrink-0",children:[e.jsxs("button",{onClick:()=>h("catalog"),className:`px-4 sm:px-5 py-2.5 rounded-xl text-xs font-semibold uppercase tracking-wider transition-all flex items-center justify-center gap-2 ${i==="catalog"?"btn-telegram-primary shadow-telegram":"btn-telegram-secondary"}`,children:[e.jsx(Fs,{className:"w-4 h-4"}),e.jsxs("span",{children:["Explore Catalog (",Lt.length,")"]})]}),e.jsxs("button",{onClick:()=>h("installed"),className:`px-4 sm:px-5 py-2.5 rounded-xl text-xs font-semibold uppercase tracking-wider transition-all flex items-center justify-center gap-2 ${i==="installed"?"btn-telegram-primary shadow-telegram":"btn-telegram-secondary"}`,children:[e.jsx(Ja,{className:"w-4 h-4"}),e.jsxs("span",{children:["Active Deployments (",k.length,")"]})]})]})]}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3 sm:gap-4 mt-6 sm:mt-8 pt-5 sm:pt-6 border-t border-white/10",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-[10px] sm:text-xs text-pearl-400 uppercase tracking-wider",children:"Production Blueprints"}),e.jsx("p",{className:"text-lg sm:text-xl font-bold text-pearl-50 mt-1",children:"25 Verified"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[10px] sm:text-xs text-pearl-400 uppercase tracking-wider",children:"Reusable Modules"}),e.jsx("p",{className:"text-lg sm:text-xl font-bold text-[#2481CC] mt-1",children:"9 Plug-and-Play"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[10px] sm:text-xs text-pearl-400 uppercase tracking-wider",children:"Cloud Runtime SLA"}),e.jsx("p",{className:"text-lg sm:text-xl font-bold text-emerald-400 mt-1",children:"99.98% 24/7"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[10px] sm:text-xs text-pearl-400 uppercase tracking-wider",children:"Setup Overhead"}),e.jsx("p",{className:"text-lg sm:text-xl font-bold text-pearl-50 mt-1",children:"0 Server / VPS"})]})]})]}),A&&e.jsxs("div",{className:"p-3.5 sm:p-4 rounded-xl bg-emerald-500/10 border border-emerald-500/30 text-emerald-300 text-xs sm:text-sm flex items-center justify-between shadow-sm animate-in fade-in",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ee,{className:"w-5 h-5 text-emerald-400 shrink-0"}),e.jsx("span",{children:A})]}),e.jsx("button",{onClick:()=>C(null),className:"text-emerald-400 hover:text-white p-1",children:e.jsx(ae,{className:"w-4 h-4"})})]}),i==="catalog"&&e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col md:flex-row items-stretch md:items-center justify-between gap-3 sm:gap-4",children:[e.jsx("div",{className:"flex items-center gap-2 overflow-x-auto w-full md:w-auto pb-2 md:pb-0 scrollbar-none",children:U.map(L=>e.jsxs("button",{onClick:()=>x(L.id),className:`px-3.5 sm:px-4 py-2 rounded-xl text-xs whitespace-nowrap tracking-wider uppercase transition-all shrink-0 font-medium ${u===L.id?"bg-[#2481CC] text-white shadow-telegram":"bg-space-850 hover:bg-space-800 text-pearl-300 hover:text-white border border-white/10"}`,children:[L.name," (",L.count,")"]},L.id))}),e.jsxs("div",{className:"relative w-full md:w-72 shrink-0",children:[e.jsx(qe,{className:"w-4 h-4 text-pearl-400 absolute left-3.5 top-1/2 -translate-y-1/2"}),e.jsx("input",{type:"text",placeholder:"Search bot blueprints, tags...",value:m,onChange:L=>b(L.target.value),className:"w-full pl-10 pr-4 py-2 rounded-xl bg-space-900 border border-white/10 text-xs text-pearl-100 placeholder-pearl-500 focus:outline-none focus:border-[#2481CC] transition-all font-mono"})]})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 sm:gap-6",children:M.map(L=>{const se=L.icon;return e.jsxs("div",{className:"astraea-card group relative rounded-2xl border border-white/10 hover:border-[#2481CC]/50 p-4 sm:p-6 flex flex-col justify-between transition-all duration-200 hover:shadow-lg",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-start justify-between gap-3 mb-4",children:[e.jsx(I,{to:`/marketplace/bots/${L.id.replace("bot_","").replace(/_/g,"-")}`,className:"w-12 h-12 rounded-xl bg-[#2481CC]/15 border border-[#2481CC]/35 flex items-center justify-center text-[#2481CC] group-hover:scale-105 transition-transform shadow-sm",children:e.jsx(se,{className:"w-6 h-6"})}),e.jsxs("div",{className:"flex flex-col items-end gap-1",children:[e.jsx("span",{className:"text-[10px] px-2.5 py-0.5 rounded-full bg-space-850 border border-white/10 text-pearl-300 uppercase tracking-wider font-mono",children:L.category.replace("_"," ")}),e.jsxs("div",{className:"flex items-center gap-1 text-[11px] text-[#2481CC] font-mono",children:[e.jsx("span",{children:"โญ"}),e.jsx("span",{className:"font-semibold",children:L.rating.toFixed(2)}),e.jsxs("span",{className:"text-pearl-400",children:["(",L.installCount,")"]})]})]})]}),e.jsx(I,{to:`/marketplace/bots/${L.id.replace("bot_","").replace(/_/g,"-")}`,className:"text-base font-bold text-pearl-50 group-hover:text-[#2481CC] transition-colors block leading-snug",children:L.name}),e.jsx("p",{className:"text-xs text-pearl-400 font-sans mt-1.5 leading-relaxed line-clamp-2",children:L.headline}),e.jsx("div",{className:"flex flex-wrap gap-1.5 mt-4",children:L.tags.slice(0,3).map(le=>e.jsxs("span",{className:"text-[10px] px-2 py-0.5 rounded-md bg-space-850 text-pearl-300 border border-white/5 font-mono",children:["#",le]},le))})]}),e.jsxs("div",{className:"pt-4 sm:pt-6 mt-4 sm:mt-6 border-t border-white/10 flex flex-wrap sm:flex-nowrap items-center justify-between gap-2",children:[e.jsx(I,{to:`/marketplace/bots/${L.id.replace("bot_","").replace(/_/g,"-")}`,className:"px-3 py-1.5 rounded-lg text-xs text-[#2481CC] hover:underline transition-all font-mono font-medium",children:"Inspect โ"}),e.jsxs("button",{onClick:()=>$(L),className:"btn-telegram-primary py-1.5 px-3.5 text-xs font-semibold uppercase tracking-wider inline-flex items-center gap-1.5 shadow-telegram",children:[e.jsx(Qe,{className:"w-3.5 h-3.5 fill-white"}),e.jsx("span",{children:"Deploy Cloud"})]})]})]},L.id)})})]}),i==="installed"&&e.jsx("div",{className:"space-y-6 min-w-0 max-w-full",children:e.jsxs("div",{className:"astraea-panel rounded-2xl border border-white/10 overflow-hidden min-w-0 max-w-full",children:[e.jsxs("div",{className:"p-4 sm:p-6 border-b border-white/10 flex flex-col sm:flex-row sm:items-center justify-between gap-3 sm:gap-4",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-base font-bold text-pearl-50",children:"Active Tenant Bot Fleet"}),e.jsx("p",{className:"text-xs text-pearl-400 mt-0.5 font-sans",children:"Bots running 24/7 on our managed cloud runtime. Real-time telemetry and health monitoring."})]}),e.jsx("button",{onClick:()=>h("catalog"),className:"btn-telegram-primary py-2 px-4 text-xs font-semibold uppercase tracking-wider shadow-telegram w-full sm:w-auto text-center shrink-0",children:"+ Install New Blueprint"})]}),e.jsx("div",{className:"overflow-x-auto w-full max-w-full",children:e.jsxs("table",{className:"w-full min-w-[650px] text-left text-xs font-mono",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-white/10 text-pearl-400 uppercase tracking-wider text-[10px]",children:[e.jsx("th",{className:"py-4 px-6 font-medium",children:"Instance Name"}),e.jsx("th",{className:"py-4 px-6 font-medium",children:"Blueprint"}),e.jsx("th",{className:"py-4 px-6 font-medium",children:"Runtime Status"}),e.jsx("th",{className:"py-4 px-6 font-medium",children:"Telegram Bot"}),e.jsx("th",{className:"py-4 px-6 font-medium",children:"Uptime"}),e.jsx("th",{className:"py-4 px-6 font-medium",children:"Interactions"}),e.jsx("th",{className:"py-4 px-6 font-medium text-right",children:"Actions"})]})}),e.jsx("tbody",{className:"divide-y divide-white/5",children:k.map(L=>e.jsxs("tr",{className:"hover:bg-white/[0.02] transition-colors",children:[e.jsxs("td",{className:"py-4 px-6 font-medium text-pearl-50 flex items-center gap-2",children:[e.jsx(me,{className:"w-4 h-4 text-[#2481CC]"}),e.jsx("span",{children:L.name})]}),e.jsx("td",{className:"py-4 px-6 text-pearl-300",children:L.templateName}),e.jsx("td",{className:"py-4 px-6",children:e.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-emerald-500/10 border border-emerald-500/30 text-emerald-300 text-[10px] font-medium uppercase tracking-wider font-semibold",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),"24/7 Running"]})}),e.jsx("td",{className:"py-4 px-6 text-[#2481CC] font-mono text-[11px] font-medium",children:L.botUsername||"Unlinked"}),e.jsxs("td",{className:"py-4 px-6 text-pearl-200 font-mono",children:[L.uptimePct,"%"]}),e.jsx("td",{className:"py-4 px-6 text-pearl-200 font-mono",children:L.interactionsCount.toLocaleString()}),e.jsx("td",{className:"py-4 px-6 text-right space-x-2",children:e.jsxs(I,{to:"/dashboard",className:"btn-telegram-secondary py-1 px-2.5 text-[10px] inline-flex items-center gap-1",children:[e.jsx(Jt,{className:"w-3 h-3"}),e.jsx("span",{children:"Console"})]})})]},L.id))})]})})]})}),j&&e.jsx(xe,{children:e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-3 sm:p-4 bg-black/80 backdrop-blur-md animate-in fade-in",children:e.jsxs("div",{className:"relative w-full max-w-2xl rounded-2xl astraea-card border border-white/15 p-4 sm:p-6 md:p-8 shadow-2xl overflow-y-auto max-h-[90vh]",children:[e.jsx("button",{onClick:()=>f(null),className:"absolute right-3 sm:right-5 top-3 sm:top-5 p-2 rounded-xl bg-white/5 hover:bg-white/10 text-pearl-400 hover:text-white transition-all",children:e.jsx(ae,{className:"w-4 h-4"})}),e.jsxs("div",{className:"flex items-center gap-3 sm:gap-4 mb-4 sm:mb-6 pr-8",children:[e.jsx("div",{className:"w-12 h-12 sm:w-14 sm:h-14 rounded-2xl bg-[#2481CC]/15 border border-[#2481CC]/30 flex items-center justify-center text-[#2481CC] shrink-0",children:e.jsx(j.icon,{className:"w-6 h-6 sm:w-7 sm:h-7"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:"text-[10px] sm:text-xs uppercase tracking-wider text-[#2481CC] font-semibold font-mono",children:j.category.replace("_"," ")}),e.jsx("h2",{className:"text-lg sm:text-xl font-bold text-pearl-50 truncate",children:j.name}),e.jsxs("p",{className:"text-[11px] sm:text-xs text-pearl-400 mt-0.5 font-mono",children:["Version ",j.version," โข Verified Blueprint"]})]})]}),e.jsxs("div",{className:"space-y-4 sm:space-y-6 text-xs text-pearl-300 font-sans leading-relaxed",children:[e.jsxs("div",{children:[e.jsx("h4",{className:"text-pearl-100 uppercase tracking-wider text-[11px] font-semibold mb-1.5",children:"Overview"}),e.jsx("p",{className:"text-pearl-300",children:j.description})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"text-pearl-100 uppercase tracking-wider text-[11px] font-semibold mb-1.5",children:"Required Permissions"}),e.jsx("div",{className:"flex flex-wrap gap-1.5 sm:gap-2",children:j.permissions.map(L=>e.jsx("span",{className:"px-2.5 py-1 rounded-md bg-space-850 border border-white/10 text-emerald-400 font-mono text-[10px] sm:text-[11px]",children:L},L))})]}),j.mcpTools.length>0&&e.jsxs("div",{children:[e.jsx("h4",{className:"text-pearl-100 uppercase tracking-wider text-[11px] font-semibold mb-1.5",children:"Recommended MCP Tools"}),e.jsx("div",{className:"flex flex-wrap gap-1.5 sm:gap-2",children:j.mcpTools.map(L=>e.jsxs("span",{className:"px-2.5 py-1 rounded-md bg-[#2481CC]/10 border border-[#2481CC]/30 text-[#2481CC] font-mono text-[10px] sm:text-[11px]",children:["โก ",L]},L))})]}),e.jsxs("div",{className:"p-3.5 sm:p-4 rounded-xl bg-space-850 border border-white/5",children:[e.jsx("h4",{className:"text-pearl-100 uppercase tracking-wider text-[11px] font-semibold mb-1",children:"Telegram System Templates"}),e.jsx("p",{className:"text-pearl-400 text-[11px] mb-2 font-sans",children:"Pre-styled decorative templates provided with this bot:"}),e.jsx("div",{className:"flex flex-wrap gap-1.5",children:j.systemTemplates.map(L=>e.jsxs("span",{className:"px-2 py-0.5 rounded bg-space-900 text-pearl-300 text-[10px] font-mono",children:["/",L]},L))})]})]}),e.jsxs("div",{className:"mt-6 sm:mt-8 pt-4 sm:pt-6 border-t border-white/10 flex flex-col-reverse sm:flex-row items-stretch sm:items-center sm:justify-end gap-2 sm:gap-3",children:[e.jsx("button",{onClick:()=>f(null),className:"px-5 py-2.5 rounded-xl text-xs text-pearl-400 hover:text-white text-center font-mono",children:"Close"}),e.jsx("button",{onClick:()=>{const L=j;f(null),$(L)},className:"btn-telegram-primary py-2.5 px-6 text-xs font-semibold uppercase tracking-wider shadow-telegram text-center",children:"Continue to Deployment โ"})]})]})})}),g&&e.jsx(xe,{children:e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-3 sm:p-4 bg-black/80 backdrop-blur-md animate-in fade-in",children:e.jsxs("div",{className:"relative w-full max-w-lg rounded-2xl astraea-card border border-white/15 p-4 sm:p-6 md:p-8 shadow-2xl",children:[e.jsx("button",{onClick:()=>v(null),className:"absolute right-3 sm:right-5 top-3 sm:top-5 p-2 rounded-xl bg-white/5 hover:bg-white/10 text-pearl-400 hover:text-white transition-all",children:e.jsx(ae,{className:"w-4 h-4"})}),e.jsxs("div",{className:"flex items-center gap-3 mb-4 sm:mb-6 pr-8",children:[e.jsx("div",{className:"w-10 h-10 sm:w-12 sm:h-12 rounded-xl bg-[#2481CC]/15 border border-[#2481CC]/40 flex items-center justify-center text-[#2481CC] shrink-0",children:e.jsx(g.icon,{className:"w-5 h-5 sm:w-6 sm:h-6"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h3",{className:"text-base sm:text-lg font-bold text-pearl-50 truncate",children:"Deploy Template to Bot"}),e.jsx("p",{className:"text-xs text-[#2481CC] font-mono truncate",children:g.name})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-semibold text-pearl-300 uppercase tracking-wider mb-1.5 font-mono",children:"Target Telegram Bot (Play Console Workspace)"}),e.jsx("select",{value:p,onChange:L=>N(L.target.value),className:"w-full px-4 py-2.5 rounded-xl bg-space-900 border border-white/10 text-xs text-pearl-100 focus:outline-none focus:border-[#2481CC] font-mono",disabled:!s||s.length===0,children:!s||s.length===0?e.jsx("option",{value:"",children:"No bots connected - please connect a bot first"}):s.map(L=>e.jsxs("option",{value:L.id,children:[L.name," (@",L.username,") ",L.id===(t==null?void 0:t.id)?"โ
CURRENT CHOSEN":""]},L.id))}),e.jsx("p",{className:"text-[10px] text-pearl-400 mt-1 font-mono",children:"All blueprint modules, triggers & system templates will be provisioned directly into this bot."})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-semibold text-pearl-300 uppercase tracking-wider mb-1.5 font-mono",children:"Custom Instance Name"}),e.jsx("input",{type:"text",value:c,onChange:L=>w(L.target.value),className:"w-full px-4 py-2.5 rounded-xl bg-space-900 border border-white/10 text-xs text-pearl-100 focus:outline-none focus:border-[#2481CC] font-mono",placeholder:"e.g., My Luxury Boutique Store"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-xs font-semibold text-pearl-300 uppercase tracking-wider mb-1.5 font-mono",children:"Cloud Infrastructure Tier"}),e.jsxs("div",{className:"p-3 rounded-xl bg-space-850 border border-white/10 flex items-center justify-between gap-2",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-xs text-pearl-50 font-semibold",children:"Shared Cloud Worker Pool"}),e.jsx("p",{className:"text-[10px] sm:text-[11px] text-pearl-400",children:"24/7 Managed Supervisor Loop (Included in Plan)"})]}),e.jsx("span",{className:"text-[10px] px-2 py-0.5 rounded bg-emerald-500/20 text-emerald-400 border border-emerald-500/30 font-semibold shrink-0",children:"ACTIVE"})]})]}),e.jsxs("div",{className:"p-3 rounded-xl bg-space-850 border border-white/5 space-y-2",children:[e.jsx("p",{className:"text-xs text-pearl-300 font-semibold font-mono",children:"What happens next:"}),e.jsxs("ul",{className:"text-[11px] text-pearl-400 space-y-1 list-disc pl-4 font-sans",children:[e.jsx("li",{children:"Blueprint manifest and state tables will be isolated for your tenant."}),e.jsx("li",{children:"System templates will be loaded into Message Studio for this bot."}),e.jsx("li",{children:"Runtime supervisor will auto-recover bot if Telegram restarts."})]})]})]}),e.jsxs("div",{className:"mt-6 sm:mt-8 pt-4 sm:pt-6 border-t border-white/10 flex flex-col-reverse sm:flex-row items-stretch sm:items-center sm:justify-end gap-2 sm:gap-3",children:[e.jsx("button",{onClick:()=>v(null),className:"btn-telegram-secondary py-2 px-5 text-xs font-mono",children:"Cancel"}),e.jsxs("button",{onClick:D,className:"btn-telegram-primary py-2.5 px-6 text-xs font-semibold uppercase tracking-wider shadow-telegram flex items-center justify-center gap-2",children:[e.jsx(Qe,{className:"w-4 h-4 fill-white"}),e.jsx("span",{children:"Launch 24/7 Cloud Bot"})]})]})]})})})]})},to={"e-commerce-concierge":"bot_ecommerce_concierge","ai-customer-support":"bot_customer_support","lead-crm-sync":"bot_lead_crm","calendar-appointment-scheduler":"bot_appointment_booking","invoice-instant-pay":"bot_invoice_billing","vip-subscription-gatekeeper":"bot_subscription_vip","group-admin-pro":"bot_group_admin_pro","anti-spam-shield":"bot_anti_spam","welcome-gate-captcha":"bot_welcome_verification","chatgpt-assistant":"bot_chatgpt_assistant","pdf-research-rag":"bot_pdf_research","ai-image-generator":"bot_image_gen","github-devops-notifier":"bot_github_notifier","server-uptime-monitor":"bot_server_monitor","rss-auto-publisher":"bot_rss_reader"},_s={bot_ecommerce_concierge:{id:"bot_ecommerce_concierge",slug:"e-commerce-concierge",name:"E-Commerce & Digital Store Concierge",headline:"Interactive shopping catalog, cart management & instant Telegram checkout.",description:"Transforms your Telegram bot into an automated 24/7 digital storefront. Customers can browse categorized products with images, add items to cart, select delivery address, and pay via integrated Razorpay/Stripe checkout without leaving Telegram.",category:"Business & Commerce",icon:Os,version:"1.2.0",rating:4.95,installCount:1420,tags:["ecommerce","store","payments","shopping","cart"],permissions:["messages.send","payments.create","database.read_write"],mcpTools:["shopify.products.search","payments.order.verify","shipping.status.get"],systemTemplates:["welcome","catalog","cart_view","invoice","order_status"],defaultConfig:{store_name:"Astraea Boutique",currency:"INR",shipping_fee:0},architectureSteps:["Customer sends /start or clicks Welcome Menu","Dynamic catalog loaded from database with photo & inline buttons","Cart state maintained via Redis session storage","Order checkout verified with server-side HMAC payment signature","Instant notification dispatched to store admin channel"]},bot_customer_support:{id:"bot_customer_support",slug:"ai-customer-support",name:"AI Customer Support Desk",headline:"Tier-1 AI resolution with seamless human agent ticket escalation.",description:"Automate 80% of customer inquiries with smart contextual AI answers. Detects frustrated users and automatically opens priority tickets with notification alerts to your human support team.",category:"Business & Support",icon:Ds,version:"1.1.0",rating:4.92,installCount:980,tags:["support","tickets","helpdesk","ai","crm"],permissions:["messages.send","notifications.dispatch","ai.completion"],mcpTools:["zendesk.ticket.create","crm.contact.lookup"],systemTemplates:["welcome","ticket_created","ticket_resolved"],defaultConfig:{company_name:"Acme Cloud",escalation_threshold:.35},architectureSteps:["Inquiry received and processed via semantic AI agent prompt","Context search over FAQ knowledge base","Automated reply with inline helpfulness rating buttons","Ticket escalated to operator queue if confidence is low"]},bot_subscription_vip:{id:"bot_subscription_vip",slug:"vip-subscription-gatekeeper",name:"VIP Subscription & Paid Channel Gatekeeper",headline:"Monetize private Telegram channels with recurring auto-kick subscriptions.",description:"Full monetization solution for private channels, trading groups, and VIP communities. Handles subscription renewals, sends expiry alerts, issues temporary invite links, and auto-removes expired members.",category:"Monetization & VIP",icon:ct,version:"1.3.0",rating:4.97,installCount:1890,tags:["subscriptions","vip","paywall","channel","recurring"],permissions:["messages.send","chat.manage_members","payments.create"],mcpTools:["telegram.chat.create_invite_link","telegram.chat.ban_member"],systemTemplates:["welcome","plan_picker","invoice","channel_invite"],defaultConfig:{monthly_price:499,grace_period_days:2},architectureSteps:["User selects subscription tier and completes Razorpay/Stripe payment","One-time single-use Telegram invite link generated","Celery background worker monitors expiration dates","Automated renewal alert dispatched 48h before expiry","Auto-kick executed if renewal unpaid after grace period"]}},so=()=>{const{slug:t}=ca(),s=Ne(),{isAuthenticated:a}=Ue(),[r,o]=l.useState(!1),[n,i]=l.useState(""),[h,u]=l.useState(""),[x,m]=l.useState(!1),[b,j]=l.useState(!1),f=t&&to[t]||t||"bot_ecommerce_concierge",g=_s[f]||_s.bot_ecommerce_concierge,v=g.icon,c=async w=>{if(w.preventDefault(),!a){s("/login");return}m(!0);try{const p=await fetch("/api/v1/bots",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:n||"7182910392:AAExampleBotTokenForVerification2026",name:h||g.name,default_locale:"en"})});m(!1),j(!0),setTimeout(()=>{o(!1),s("/dashboard/bots")},1500)}catch{m(!1),j(!0),setTimeout(()=>{o(!1),s("/dashboard/bots")},1500)}};return e.jsxs("div",{className:"space-y-8 animate-in fade-in duration-300",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono text-pearl-400",children:[e.jsxs(I,{to:"/marketplace",className:"hover:text-[#2481CC] transition flex items-center gap-1",children:[e.jsx(Us,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"Marketplace"})]}),e.jsx("span",{children:"/"}),e.jsx("span",{className:"text-pearl-200",children:"Bots"}),e.jsx("span",{children:"/"}),e.jsx("span",{className:"text-[#2481CC] truncate font-medium",children:g.name})]}),e.jsxs("div",{className:"astraea-card rounded-2xl p-4 sm:p-6 md:p-8 border border-white/15 relative overflow-hidden flex flex-col md:flex-row items-start md:items-center justify-between gap-4 sm:gap-6 min-w-0 max-w-full",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center gap-4 sm:gap-5 min-w-0",children:[e.jsx("div",{className:"w-14 h-14 sm:w-20 sm:h-20 rounded-2xl bg-[#2481CC]/10 border border-[#2481CC]/40 flex items-center justify-center text-[#2481CC] shadow-telegram shrink-0",children:e.jsx(v,{className:"w-8 h-8 sm:w-11 sm:h-11"})}),e.jsxs("div",{className:"space-y-1.5 min-w-0",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("span",{className:"px-2 py-0.5 rounded text-[10px] font-mono uppercase bg-[#2481CC]/15 text-[#2481CC] border border-[#2481CC]/30 font-semibold",children:g.category}),e.jsxs("span",{className:"text-xs font-mono text-pearl-400",children:["v",g.version]}),e.jsxs("span",{className:"text-xs font-mono text-emerald-400",children:["โ
",g.rating]}),e.jsxs("span",{className:"text-xs font-mono text-pearl-400",children:["(",g.installCount.toLocaleString()," installs)"]})]}),e.jsx("h1",{className:"text-xl sm:text-2xl md:text-3xl text-pearl-50 font-bold tracking-tight",children:g.name}),e.jsx("p",{className:"text-xs sm:text-sm text-pearl-300 font-sans max-w-2xl leading-relaxed",children:g.headline})]})]}),e.jsx("div",{className:"flex flex-col sm:flex-row items-stretch sm:items-center gap-3 w-full md:w-auto shrink-0",children:e.jsxs("button",{onClick:()=>o(!0),className:"btn-telegram-primary py-2.5 sm:py-3 px-5 sm:px-6 text-xs sm:text-sm justify-center shadow-telegram w-full sm:w-auto",children:[e.jsx(oe,{className:"w-4 h-4"}),e.jsx("span",{children:"DEPLOY BOT TO CLOUD"})]})})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6",children:[e.jsxs("div",{className:"lg:col-span-8 space-y-6",children:[e.jsxs("div",{className:"astraea-panel rounded-xl p-6 border border-white/10 space-y-3",children:[e.jsx("h3",{className:"text-base font-bold text-pearl-50",children:"Blueprint Overview"}),e.jsx("p",{className:"text-xs sm:text-sm text-pearl-300 font-sans leading-relaxed",children:g.description})]}),e.jsxs("div",{className:"astraea-panel rounded-xl p-6 border border-white/10 space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2 pb-3 border-b border-white/10",children:[e.jsx(Me,{className:"w-5 h-5 text-[#2481CC]"}),e.jsx("h3",{className:"text-base font-bold text-pearl-50",children:"Operational Architecture Flow"})]}),e.jsx("div",{className:"space-y-3",children:g.architectureSteps.map((w,p)=>e.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg bg-space-850/60 border border-white/5",children:[e.jsx("div",{className:"w-6 h-6 rounded-full bg-[#2481CC]/20 text-[#2481CC] font-mono text-xs font-bold flex items-center justify-center shrink-0 mt-0.5",children:p+1}),e.jsx("span",{className:"text-xs font-sans text-pearl-200 leading-relaxed",children:w})]},p))})]}),e.jsxs("div",{className:"astraea-panel rounded-xl p-6 border border-white/10 space-y-3",children:[e.jsx("h3",{className:"text-base font-bold text-pearl-50",children:"Pre-Configured Telegram Message Templates"}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-2",children:g.systemTemplates.map((w,p)=>e.jsxs("div",{className:"p-2.5 rounded bg-space-900 border border-white/5 text-xs font-mono text-pearl-300 flex items-center gap-2",children:[e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-[#2481CC]"}),e.jsxs("span",{children:["/",w]})]},p))})]})]}),e.jsxs("div",{className:"lg:col-span-4 space-y-6",children:[e.jsxs("div",{className:"astraea-panel rounded-xl p-5 border border-white/10 space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-white/10 text-xs font-mono",children:[e.jsx("span",{className:"text-[#2481CC] uppercase font-semibold",children:"MCP Tools Protocol"}),e.jsx("span",{className:"text-emerald-400",children:"READY"})]}),e.jsx("div",{className:"space-y-2",children:g.mcpTools.map((w,p)=>e.jsxs("div",{className:"p-2 rounded bg-space-900 border border-white/5 text-[11px] font-mono text-pearl-300 select-all",children:["โ๏ธ ",w]},p))})]}),e.jsxs("div",{className:"astraea-panel rounded-xl p-5 border border-white/10 space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono text-pearl-300 pb-2 border-b border-white/10",children:[e.jsx(Ze,{className:"w-4 h-4 text-[#2481CC]"}),e.jsx("span",{children:"Permission Capabilities"})]}),e.jsx("div",{className:"space-y-1.5",children:g.permissions.map((w,p)=>e.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono text-emerald-400",children:[e.jsx(ee,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:w})]},p))})]}),e.jsxs("div",{className:"astraea-panel rounded-xl p-5 border border-white/10 space-y-2",children:[e.jsx("span",{className:"text-[10px] font-mono text-pearl-400 uppercase block",children:"Discovery Tags"}),e.jsx("div",{className:"flex flex-wrap gap-1.5",children:g.tags.map(w=>e.jsxs("span",{className:"px-2 py-0.5 rounded bg-space-850 border border-white/10 text-[10px] font-mono text-[#2481CC]",children:["#",w]},w))})]})]})]}),r&&e.jsx(xe,{children:e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-3 sm:p-4 bg-black/80 backdrop-blur-md",children:e.jsxs("div",{className:"w-full max-w-lg max-h-[90vh] overflow-y-auto astraea-card rounded-2xl p-6 border border-white/15 shadow-2xl animate-in zoom-in-95 duration-200",children:[e.jsxs("div",{className:"flex items-center justify-between pb-4 border-b border-white/10 mb-5",children:[e.jsxs("div",{children:[e.jsxs("h3",{className:"text-lg text-pearl-50 font-bold tracking-tight",children:["Deploy ",g.name]}),e.jsx("p",{className:"text-xs font-mono text-[#2481CC] mt-0.5",children:"Automated 24/7 Managed Cloud Provisioning"})]}),e.jsx("button",{onClick:()=>o(!1),className:"text-pearl-400 hover:text-pearl-100 p-1",children:e.jsx(ae,{className:"w-5 h-5"})})]}),b?e.jsxs("div",{className:"py-8 text-center space-y-3",children:[e.jsx(ee,{className:"w-12 h-12 text-emerald-400 mx-auto animate-bounce"}),e.jsx("div",{className:"font-bold text-pearl-50 text-base",children:"Bot Deployed & Active!"}),e.jsx("p",{className:"text-xs font-mono text-pearl-400",children:"Redirecting to your Fleet Management..."})]}):e.jsxs("form",{onSubmit:c,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-[10px] font-mono uppercase text-pearl-400 mb-1",children:"Bot Display Name"}),e.jsx("input",{type:"text",value:h,onChange:w=>u(w.target.value),placeholder:g.name,className:"w-full px-3.5 py-2.5 rounded-lg bg-space-900 border border-white/10 text-xs font-mono text-pearl-100 focus:outline-none focus:border-[#2481CC]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-[10px] font-mono uppercase text-pearl-400 mb-1",children:"Telegram BotFather Token"}),e.jsx("input",{type:"password",value:n,onChange:w=>i(w.target.value),placeholder:"123456789:ABCdefGHIjklMNOpqrSTUvwxYZ",className:"w-full px-3.5 py-2.5 rounded-lg bg-space-900 border border-white/10 text-xs font-mono text-pearl-100 focus:outline-none focus:border-[#2481CC]"}),e.jsx("p",{className:"text-[10px] font-mono text-pearl-400 mt-1",children:"Tokens are cryptographically encrypted at rest with AES-256-GCM."})]}),e.jsxs("div",{className:"pt-4 border-t border-white/10 flex items-center justify-end gap-3",children:[e.jsx("button",{type:"button",onClick:()=>o(!1),className:"btn-telegram-secondary py-2 px-4",children:"CANCEL"}),e.jsx("button",{type:"submit",disabled:x,className:"btn-telegram-primary py-2 px-5",children:x?e.jsxs(e.Fragment,{children:[e.jsx(ue,{className:"w-3.5 h-3.5 animate-spin"}),e.jsx("span",{children:"PROVISIONING..."})]}):e.jsxs(e.Fragment,{children:[e.jsx(oe,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:"CONFIRM & LAUNCH"})]})})]})]})]})})})]})},pt={support:{bot_name:"Customer Support Desk",headline:"Automated 24/7 Telegram customer helpdesk with instant answers and human escalation.",category:"Business Operations",matched_blueprint:"bot_customer_support",system_prompt:"You are the Customer Support Assistant for our Telegram SaaS platform. Greet customers warmly, resolve billing or account inquiries, and create escalation tickets for human support when requested.",selected_modules:["welcome_message","user_management","ai_assistant"],selected_mcp_tools:["message.send","analytics.report","tickets.create"],preview_text:`๐ง Customer Support Portal