Python framework that eliminates 70% of boilerplate. From idea to VPS deployment with a single command. Forget about server configuration.
* Alpha access opens in waves. Join 200+ developers already waiting.
Less Code
Time to Production
Platforms
Python Type-Safe
From idea to deployed Telegram bot: what you actually write. We handle all the routine — database setup, caching, and deployment.
# 1. Load config and environment variables from os import getenv from dotenv import load_dotenv load_dotenv() API_TOKEN = getenv("TELEGRAM_TOKEN") DB_URL = getenv("DATABASE_URL") # 2. Initialize AIOGram, State Machine, Redis, PostgreSQL import logging from aiogram import Bot, Dispatcher from aiogram.fsm.storage.redis import RedisStorage from sqlalchemy.ext.asyncio import create_async_engine from sqlalchemy.orm import sessionmaker # ... 100+ lines for connection setup and middleware # 3. Middleware for session and transaction management class DbSessionMiddleware: # ... 50 lines of code # ... # 4. /start command handler async def cmd_start(message, session): # ... 20 lines of logic await message.answer("Hello!") # 5. Main startup loop async def main(): # ... 50 lines for deploy and process management await dp.start_polling(bot) if __name__ == "__main__": asyncio.run(main())
# 1. Define routes and state (FastAPI-like) from botscale import Router, settings from botscale.db import Session from botscale.types import Message router = Router() # 2. Handler using DI for Session @router.message("/start") async def start_handler(message: Message, db: Session): # db - ready and active SQLModel session user = db.get_user(message.from_user.id) if not user: db.create_user("new") await message.answer("Hello, this is BotScale!") # 3. Settings settings.telegram_token = "env(TELEGRAM_TOKEN)" settings.db_url = "env(DATABASE_URL)" # 4. Main entry point (framework handles the rest) from botscale import App app = App(routers=[router]) # Run: botscale run
BotScale comes with pre-configured tools that every production app needs — but usually takes hours to set up.
Start a project with one command: botscale init. Run
migrations, generate boilerplate, and deploy without hassle. All
tools available in the console.
Forget manual Docker, Nginx, and supervisor setup. The
botscale deploy command handles everything: from build
to launch on a remote server.
Built-in SQLModel/Alembic support. Automatic session and transaction management. Use clean Python classes instead of complex ORM.
Automatic data filtering and XSS protection. Built-in Redis Rate Limiter protects against DDoS. All data is strictly typed.
Simple and ready-to-use web interface for monitoring, viewing logs, and managing users. Connect and control your bot in real-time.
Fully async and Redis-powered State Machine for managing complex dialogs. User state is cached for high response speed.
We're constantly working on BotScale. Here's what's coming next.
Everything you need to know about BotScale Framework
BotScale requires Python 3.10 or higher. We recommend using Python 3.11+ for best performance and type checking support.
Run botscale deploy and the framework handles
everything: Docker image building, Nginx configuration, SSL
certificates, and process management on your VPS.
Absolutely! BotScale deploys to any Linux VPS with SSH access. We support Ubuntu, Debian, and other major distributions.
BotScale is built on top of aiogram but adds production-ready features: automatic deployment, database abstraction, admin panel, rate limiting, and structured project architecture.