Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manzoorwanijk/telegram-bot-api-worker
Take an alternate route to Telegram Bot API :)
https://github.com/manzoorwanijk/telegram-bot-api-worker
api cloudflare cloudflare-worker cloudflare-workers telegram telegram-bot telegram-bot-api
Last synced: 5 days ago
JSON representation
Take an alternate route to Telegram Bot API :)
- Host: GitHub
- URL: https://github.com/manzoorwanijk/telegram-bot-api-worker
- Owner: manzoorwanijk
- Created: 2019-08-02T17:56:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-07T09:33:00.000Z (over 1 year ago)
- Last Synced: 2024-10-19T16:26:51.972Z (18 days ago)
- Topics: api, cloudflare, cloudflare-worker, cloudflare-workers, telegram, telegram-bot, telegram-bot-api
- Language: JavaScript
- Homepage:
- Size: 1.62 MB
- Stars: 115
- Watchers: 3
- Forks: 41
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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](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 :)