codebam

TypeScript · 2022

Telegram Bot for Cloudflare Workers

A Telegram bot framework running entirely on Cloudflare Workers, with Workers AI wired up so bots can answer using Gemini and Gemma.

View sourceTry the bot

The problem

Run a useful Telegram bot without a persistent server while keeping webhook handling, shared types and the companion web application deployable together.

Architecture

  • grammY handles Telegram updates inside a Cloudflare Worker.
  • A Svelte 5 web application provides the browser-facing interface.
  • Shared packages keep types and helpers consistent across both deployments.

Highlights

  • Separate development and production Worker bindings
  • Webhook authentication and automated deployment
  • Workers AI and web-search integrations for bot responses

Technology

TypeScript · cloudflare · telegram · ai

← All selected work