Amin
Deploy: HermesFace finalized project to HF Space
2e658e7
|
Raw
History Blame Contribute Delete
550 Bytes

Telegram relay

This optional Cloudflare Worker keeps the Telegram Bot Token outside the Hugging Face Space. It accepts only HMAC-authenticated JSON from the Space and allows a small fixed set of Telegram Bot API methods. Deploy with:

wrangler secret put TELEGRAM_BOT_TOKEN
wrangler secret put TELEGRAM_RELAY_SECRET
wrangler deploy telegram_relay/src/index.js

Set TELEGRAM_RELAY_URL to the Worker URL and use the same relay secret in the Space. Do not commit either secret. Deployment is intentionally not run from this repository.