
Telegram Bot Grammy
This is a complete project template for building Telegram bots with grammY on Cloudflare Workers, backed by D1 SQLite databases and Drizzle ORM. It handles the full setup: dual environment configs (dev and production branches), database migrations, TypeScript types, Vitest testing, and GitHub Actions that auto-deploy when you push. The approach is opinionated but coherent, giving you user tables with relations, webhook handlers, and pre-commit hooks out of the box. If you're starting a new bot project and want modern tooling without stitching together five different tutorials, this gets you from zero to deployed in about twenty minutes. The multi-environment workflow is the real value here, most starter templates skip that part entirely.
- skills.sh installs
- 292
- GitHub stars
- 3
- last updated
- Aug 21, 2026
Install
$ npx -y skills add pbnicad/telegram-bot-grammy-skill --skill telegram-bot-grammy --agent claude-codeInstalls into .claude/skills of the current project.
Files
Telegram Bot Development Skill (grammY + Cloudflare Workers)
Tech Stack
| Component | Technology |
|---|---|
| Framework | grammY |
| Language | TypeScript |
| Runtime | Cloudflare Workers |
| ORM | Drizzle ORM |
| Database | Cloudflare D1 (SQLite) |
| Testing | Vitest |
| Linting | Biome |
| Package Manager | pnpm |
| Git Hooks | Husky + lint-staged |
| CI/CD | GitHub Actions (multi-environment) |
Environment Configuration
| Branch | Environment | Worker Name | Database |
|---|---|---|---|
dev | development | my-telegram-bot-dev | telegram-bot-db-dev |
main | production | my-telegram-bot | telegram-bot-db |
Project Initialization
1. Create Project
pnpm create cloudflare@latest my-telegram-bot
# Select: "Hello World" Worker, TypeScript: Yes, Git: Yes, Deploy: No
cd my-telegram-bot
2. Install Dependencies
# Core dependencies
pnpm add grammy drizzle-orm
# Dev dependencies
pnpm add -D drizzle-kit vitest @vitest/coverage-v8 @biomejs/biome husky lint-staged
3. Create Drizzle Config (drizzle.config.ts)
Sponsors
Details
- Repository
- github.com/pbnicad/telegram-bot-grammy-skill
- Categories
- Frontend Development, Backend & APIs, Testing & QA, DevOps & CI/CD, Git & Pull Requests, Documentation, Cloud & Infrastructure, Databases
- First seen
- Jun 3, 2026