A basic boilerplate, containing all the requirements to build and ship Telegram web apps on top of Cloudflare Workers.
Warning: This project is not production-ready and is only meant to be used as a starting point for building Telegram web apps.
- Hono for API routing
- Drizzle for database
- Zod for data validation
- Trpc for API
- Neon for Postgres
- Vitest for testing
pnpm install
pnpm run devpnpm deploypnpm test {test-name?}In order to run and preview the frontend, you need to spin up ngrok so that you can directly view the web app in Telegram.
pnpm install
pnpm run devYou also need to send /test {ngrok-url} to the bot, in order to get the web app url.
A basic implementation of a Telegram bot using Hono as the backend router.
- Hono for API routing
- Telegram Bot