Telegram Bot API Proxy

This service acts as a transparent proxy for the Telegram Bot API. It allows you to bypass network restrictions and create middleware for your Telegram bot applications.

How to Use

Replace api.telegram.org with this worker's URL in your API calls.

Example Usage:

Original Telegram API URL:

https://api.telegram.org/bot{YOUR_BOT_TOKEN}/sendMessage

Using this proxy:

https://{YOUR_WORKER_URL}/bot{YOUR_BOT_TOKEN}/sendMessage

Features

Note: This proxy does not store or modify your bot tokens. All requests are forwarded directly to Telegram's API servers.

Example Code

// JavaScript Example fetch('https://{YOUR_WORKER_URL}/bot{YOUR_BOT_TOKEN}/sendMessage', { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify({ chat_id: "123456789", text: "Hello from Telegram Bot API Proxy!" }) }) .then(response => response.json()) .then(data => console.log(data));