---
title: "Deploy TG Cloudflare Worker Proxy Workaround"
description: "A simple Cloudflare Worker that proxies requests to the Telegram Bot API"
category: "Other"
url: https://railway.com/deploy/tg-cloudflare-worker-proxy-workaround
---

# Deploy TG Cloudflare Worker Proxy Workaround

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

**[Deploy TG Cloudflare Worker Proxy Workaround on Railway](https://railway.com/template/tg-cloudflare-worker-proxy-workaround)**

- **Creator:** Railway
- **Category:** Other
- **Total deploys:** 18

## Template content

### telegram-cloudflare-proxy

- **Source:** ndneighbor/telegram-cloudflare-proxy
- **Public domain:** Yes

## Documentation

# 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:
   ```bash
   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.


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/tg-cloudflare-worker-proxy-workaround
