Skip to content

Arisa43fps/telegram-bot-api-worker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Bot API Worker

You can use this script to create a CloudFlare Worker to send requests to Telegram Bot API if your ISP or Web host does not allow it.

How to Deploy

Please see the detailed instructions in docs/how-to-deploy.md

How to use

After you deploy the Worker, simply copy the worker URL and use it where you want to. The URL may look like this
https://my-worker.mysubdomain.workers.dev

How it works

After you deploy the Worker, simply use the worker URL in place of the Telegram Bot API URL. If your worker URL is https://my-worker.mysubdomain.workers.dev, then replace https://api.telegram.org in the Bot API URL.

So, https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/getMe

will become

https://my-worker.mysubdomain.workers.dev/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/getMe

Enjoy the talking to Telegram Bot API :)

About

Take an alternate route to Telegram Bot API :)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%