https://github.com/nabeelcodes/torbot
Deploys a TypeScript Telegram webhook on Cloudflare Workers. Accepts magnet links and adds them to TorBox. Powered by Hono + CF Workers + TypeScript.
https://github.com/nabeelcodes/torbot
cloudflare-workers honojs telegrambot torbox typescript wrangler zod
Last synced: about 2 months ago
JSON representation
Deploys a TypeScript Telegram webhook on Cloudflare Workers. Accepts magnet links and adds them to TorBox. Powered by Hono + CF Workers + TypeScript.
- Host: GitHub
- URL: https://github.com/nabeelcodes/torbot
- Owner: nabeelcodes
- Created: 2025-11-12T19:34:55.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-11-13T13:08:31.000Z (about 2 months ago)
- Last Synced: 2025-11-13T14:11:45.714Z (about 2 months ago)
- Topics: cloudflare-workers, honojs, telegrambot, torbox, typescript, wrangler, zod
- Language: TypeScript
- Homepage:
- Size: 142 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TorBox Telegram Bot
Deploys a TypeScript Telegram webhook on Cloudflare Workers. Accepts magnet links and adds them to TorBox. Powered by Hono + CF Workers + TypeScript.
## Setup
1. Create bot with BotFather and get `TELEGRAM_TOKEN`.
2. Get `TORBOX_API_KEY` from TorBox.
3. Install dependencies:
```bash
pnpm install
```
## Stack
- **Runtime** : Cloudflare Workers
- **Framework** : Hono (TS-first, Express-style)
- **Type Checking** : Zod for API validation
- **Deployment** : wrangler CLI
- **Bot Architecture** : Telegram Webhook (not polling)
- **TorBox API Calls** : fetch with Bearer auth
- **Secrets** : Wrangler’s vars (wrangler secret put TELEGRAM_TOKEN)