Deploy TG Cloudflare Worker Proxy Workaround

A simple Cloudflare Worker that proxies requests to the Telegram Bot API

Deploy TG Cloudflare Worker Proxy Workaround

telegram-cloudflare-proxy

ndneighbor/telegram-cloudflare-proxy

Just deployed

Telegram Bot API Proxy (Cloudflare Workers)

A simple Cloudflare Worker that proxies requests to the Telegram Bot API, bypassing IP-based restrictions that block cloud provider IPs.

Why is this needed?

Telegram blocks requests from many cloud provider IP ranges (including GCP, AWS, Azure, Railway, Heroku, etc.) as an anti-spam measure. This proxy routes your API requests through Cloudflare's edge network, which uses different IP ranges that aren't blocked.

Free Tier Limits

Cloudflare Workers free tier includes:

  • 100,000 requests per day
  • 10ms CPU time per request

This is sufficient for most bots. If you need more, Cloudflare's paid plan starts at $5/month for 10 million requests. In the meantime, Railway is working to restore IP access for all blocks to the telegram API.

Troubleshooting

Still getting blocked?

  1. Make sure you're using the Worker URL, not api.telegram.org
  2. Check that the Worker deployed successfully: visit https://your-worker.workers.dev/ - you should see a JSON health response
  3. Test with a simple getMe request:
    curl https://your-worker.workers.dev/bot/getMe
    

Deploy and Host TG Cloudflare Worker Proxy Workaround on Railway

Sample

About Hosting TG Cloudflare Worker Proxy Workaround

A simple Cloudflare Worker that proxies requests to the Telegram Bot API, bypassing IP-based restrictions that block cloud provider IPs.

Common Use Cases

A simple Cloudflare Worker that proxies requests to the Telegram Bot API, bypassing IP-based restrictions that block cloud provider IPs.

Dependencies for TG Cloudflare Worker Proxy Workaround Hosting

A simple Cloudflare Worker that proxies requests to the Telegram Bot API, bypassing IP-based restrictions that block cloud provider IPs.

Deployment Dependencies

A simple Cloudflare Worker that proxies requests to the Telegram Bot API, bypassing IP-based restrictions that block cloud provider IPs.

Why Deploy TG Cloudflare Worker Proxy Workaround on Railway?

A simple Cloudflare Worker that proxies requests to the Telegram Bot API, bypassing IP-based restrictions that block cloud provider IPs.


Template Content

telegram-cloudflare-proxy

ndneighbor/telegram-cloudflare-proxy

More templates in this category

View Template
Foundry Virtual Tabletop
A Self-Hosted & Modern Roleplaying Platform

View Template
(v1) Simple Medusa Backend
Deploy an ecommerce backend and admin using Medusa

View Template
peppermint
Docker-compose port for peppermint.sh