Skip to content

dbconfig/Telegram-API-Proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram API Proxy

Version License: GPL-3.0

A Cloudflare-based solution for accessing the Telegram API without VPN in regions where it's restricted.

Overview

This project provides a secure and reliable proxy for the Telegram Bot API that works in regions where access to the official Telegram API might be restricted. The proxy is hosted on Cloudflare Pages, ensuring high availability and performance.

Features

  • Unlimited users and API requests
  • High stability against network disruptions and filtering
  • Secure data transmission
  • Easy integration with existing code

How to Use

Replace the standard Telegram API URL (https://api.telegram.org/bot) with:

https://telegram-api-proxy-anonymous.pages.dev/api/bot

Example in JavaScript

const Http = new XMLHttpRequest();
let botToken = "YOUR_BOT_TOKEN";
let ChatID = "YOUR_CHAT_ID";
let message = "Hello World";

var url = 'https://telegram-api-proxy-anonymous.pages.dev/api/bot' + botToken + 
          '/sendMessage?text=' + message + 
          '&chat_id=' + ChatID;

Http.open("GET", url);
Http.send();

Example in Python

import requests

def send_telegram_message(message):
    token = "YOUR_BOT_TOKEN"
    chat_id = "YOUR_CHAT_ID"
    url = f"https://telegram-api-proxy-anonymous.pages.dev/api/bot{token}/sendMessage"
    
    payload = {
        "text": message,
        "chat_id": chat_id
    }
    
    response = requests.get(url, params=payload)
    return response.json()

Online Demo

You can access the web interface at:

https://telegram-api-proxy-anonymous.pages.dev/

License

This project is licensed under the GPL-3.0 License.

Author

Anonymous

About

A Cloudflare-based solution for accessing the Telegram API without VPN in regions where it's restricted.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 88.0%
  • CSS 6.4%
  • HTML 5.6%