Telegram Just Launched Real Serverless for Bots — And It’s Built for AI Agents

Telegram has quietly rolled out something much more interesting than another round of Stars or sticker packs: Serverless Bots. You can now run the backend logic for your bots (and even Mini Apps) directly inside Telegram’s own cloud — no external servers, VPS, or cloud functions required.
The feature is already live and documented at core.telegram.org/bots/serverless. It represents a significant step toward making bot development dramatically simpler and more accessible, especially for AI-assisted workflows.
How It Works
You write plain JavaScript modules. Deployment is done with a simple CLI command (`npx tgcloud push`). Your code runs in isolated V8 sandboxes right next to Telegram’s Bot API and comes with a built-in SQLite database.

- Execution environment: Lightweight V8 isolates with extremely low latency to the Bot API.
- Database: Built-in SQLite with a clean schema definition (`schema.js`) and a fluent query builder (inspired by Drizzle).
- Project structure: Clean separation with `handlers/` (one file per update type), `lib/` for shared code, and `schema.js` for the database.
- Management: You can create, edit, and manage projects directly from your phone via BotFather, in addition to the `tgcloud` CLI.
The platform automatically handles webhooks, scaling, and infrastructure — you just write the logic.
Important Limitations

- No npm packages — only the official SDK and your own modules.
- No filesystem access.
- No foreign keys in SQLite (`PRAGMA foreign_keys` is disabled).
- HTTP responses are capped at 32 MB; binary payloads are not supported.
- File upload/download from handlers is not yet available (you work with `file_id` instead).
These limitations keep the runtime lightweight, secure, and predictable.
The Killer Feature: AI-Native Development
What makes Telegram Serverless stand out is how deliberately it was designed for AI coding agents.

- `AGENTS.md` — detailed instructions for AI assistants on project structure, conventions, imports, and best practices.
- `docs/tgcloud-sdk.md` — full SDK reference.
Tools like Claude Code, Cursor, or any other AI coding assistant can read these files and immediately understand the environment. The goal is explicit: an AI agent should be able to build a complete, working bot from a natural language description.
Example workflow:
- Create a new project with `npm create @tgcloud/bot my-bot`;
- Tell Claude or Cursor: “Build a bot that tracks to-do lists per user with reminders”;
- The AI reads `AGENTS.md` + SDK docs, generates the schema and handlers;
- You test locally with `npx tgcloud run`;
- Deploy with one command.
This is a genuine shift. Instead of fighting with deployment, environment variables, and infrastructure, developers (and AI agents) can focus purely on the bot’s logic.
Who This Is For
- Developers who want to prototype or run small-to-medium bots without managing servers.
- Teams that want fast iteration and zero-ops deployment.
- AI enthusiasts and “vibe coders” who want to describe what they want and have an agent build it end-to-end.
- Anyone tired of setting up webhooks, databases, and scaling for Telegram bots.
It’s not meant to replace heavy backend systems with complex requirements, but for the vast majority of Telegram bots, it removes a huge amount of friction.
Bottom Line

For many bot developers, this could become the default way to build and ship Telegram bots going forward. The infrastructure is finally getting out of the way.
If you’ve been waiting for a low-friction way to build bots (especially with AI help), this is worth trying right now.
---

- Control the Ideas, Not the Code
- Anthropic Explained When to Tinker with Effort Level in Claude Code (Spoiler: Not Often)
- Stripe and Advent Bid $53 Billion for PayPal Acquisition
- TerraFirma Raises $115 Million for Infrastructure Construction Technology
- Dove Integrates Pink Beauty Bar into Prime Video's 'Elle' Series
---
Thank you!
Subscribe to our newsletter
Get the latest Web3, AI, and crypto news delivered straight to your inbox.