An open API service indexing awesome lists of open source software.

https://github.com/vauth/tg-oob

Out-of-Band with telegram bot api using cloudflare workers
https://github.com/vauth/tg-oob

blind-attack cloudflare-workers out-of-band owasp telegram-bot-api

Last synced: 11 months ago
JSON representation

Out-of-Band with telegram bot api using cloudflare workers

Awesome Lists containing this project

README

          

# Telegram OOB
Out-of-Band with telegram bot api using cloudflare workers.


### 🗂 Variables:
```javascript
const TOKEN = 'ENV_BOT_TOKEN' // Your bot token.
const SECRET = 'ENV_BOT_SECRET' // Everything you wish.
const OWNER = 123456789 // Owner telegram id.
```


### ⚙️Deploy:
- Upload `worker.js` into [cloudflare workers](https://workers.cloudflare.com/).
- Modify the [variables](#Variables).
- Deploy.


### 🔗 Endpoints:
- Register Webhook
```javascript
XXX.XXXX.workers.dev/registerWebhook
// Response - Ok
```
- unRegister Webhook
```javascript
XXX.XXXX.workers.dev/unRegisterWebhook
// Response - Ok
```
- Send Test Request
```javascript
XXX.XXXX.workers.dev/test
// Response - {"status":200}
```
- Send Message
```javascript
XXX.XXXX.workers.dev/?send=hello+world
// Response - {"status":200}
```
- Send Bulk URL
```javascript
XXX.XXXX.workers.dev/p/data...
// Response - {"status":200}
```


### 🛠 Tips:
- For better performance send data with `URL-encode` or `Base64` format.
```javascript
Text: test message

Encoded:
- test%20message // URL-encode
- dGVzdCBtZXNzYWdl // Base64
...
```
- You can use telegram markdown.
```markdown
*bold*
_italic_
[text](url)
`mono`
```code block```
```
- [More information](https://www.google.com/search?&q=oob+blind+hunting).