Skip to content
/ tg-oob Public

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

License

Notifications You must be signed in to change notification settings

Vauth/tg-oob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Telegram OOB

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


🗂 Variables:

const TOKEN = 'ENV_BOT_TOKEN' // Your bot token.
const SECRET = 'ENV_BOT_SECRET' // Everything you wish.
const OWNER = 123456789 // Owner telegram id.

⚙️Deploy:


🔗 Endpoints:

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

🛠 Tips:

  • For better performance send data with URL-encode or Base64 format.
Text: test message

Encoded:
- test%20message // URL-encode
- dGVzdCBtZXNzYWdl // Base64
...
  • You can use telegram markdown.
*bold*
_italic_
[text](url)
`mono`
```code block```