Deploy TG Cloudflare Worker Proxy Workaround
A simple Cloudflare Worker that proxies requests to the Telegram Bot API
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?
- Make sure you're using the Worker URL, not
api.telegram.org - Check that the Worker deployed successfully: visit
https://your-worker.workers.dev/- you should see a JSON health response - 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-proxyCLOUDFLARE_API_TOKEN
Your Cloudflare API key, you can generate one here: https://dash.cloudflare.com/profile/api-tokens
CLOUDFLARE_ACCOUNT_ID
You can get this value here: https://developers.cloudflare.com/fundamentals/account/find-account-and-zone-ids/