Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

ak1ra-lab/telegram-channel-proxy

Repository files navigation

telegram-channel-proxy

Yet another Telegram Channel Proxy running on Cloudflare Workers.

Quick start

  • Clone this repo, cd telegram-channel-proxy/.
  • Install npm dependencies, npm install
  • If you don't have wrangler installed, install it.
  • cp wrangler.toml.example wrangler.toml, edit routes in this file.
  • edit config.domain and config.channel in src/config.ts, or config it via env.DOMAIN, env.CHANNEL environment variables.
  • Run wrangler dev in your terminal to start a development server, or run wrangler publish to publish your worker
  • Add the DNS records in Cloudflare Dashboard Workers/Triggers/Custom Domains for your worker.

Environment variables

  • env.DOMAIN (default: undefined), your proxy domain, same domain as in routes from wrangler.toml.
  • env.CHANNEL (default: undefined), the Telegram Channel username you want to proxy.

License

MIT