Spaces:
Sleeping
Sleeping
|
Download README.md from maryjscout/error: direct link, hf CLI and curl.
- Browser
- Download file 2.08 kB
-
https://huggingface.co/spaces/maryjscout/error/resolve/main/README.md
- Command line
-
hf download hf://spaces/maryjscout/error/README.md
-
curl -L -o README.md https://huggingface.co/spaces/maryjscout/error/resolve/main/README.md
2.08 kB
| title: JARVIS Telegram Bot | |
| emoji: π€ | |
| colorFrom: indigo | |
| colorTo: purple | |
| sdk: docker | |
| app_port: 7860 | |
| pinned: false | |
| # J.A.R.V.I.S. β Telegram Bot (Hugging Face primary, no Render) | |
| Polls `@AyomideJarvis_bot` and replies via the Muse Spark brain, with Firebase | |
| memory/notes/reminders and PC-task queueing. All Telegram traffic goes through | |
| `telegram_transport.py` (direct or via the Cloudflare relay). | |
| ## Space Secrets (Settings β Variables and secrets) β exact list | |
| | Secret | Required | Value | | |
| |---|---|---| | |
| | `TELEGRAM_BOT_TOKEN` | yes | Bot token from @BotFather (no quotes) | | |
| | `OPENCODE_API_KEY` | yes | Muse Spark / OpenCode Zen key | | |
| | `OPENCODE_MODEL` | yes | `muse-spark-1.3-contributor-free` | | |
| | `FIREBASE_CREDENTIALS_JSON` | yes | Full service-account JSON (one line) | | |
| | `JARVIS_TG_UID` | optional | Your Telegram numeric ID (blank = open) | | |
| | `TELEGRAM_TRANSPORT` | yes | `auto` (start here), then `proxy` once relay is tested | | |
| | `TELEGRAM_PROXY_URL` | for proxy | `https://jarvis-tg-relay.<you>.workers.dev` | | |
| | `TELEGRAM_PROXY_AUTH` | for proxy | Same secret as Worker `TELEGRAM_RELAY_SECRET` | | |
| | `N8N_REMINDER_WEBHOOK` | optional | n8n webhook for reminder fan-out | | |
| | `TELEGRAM_MODE` | optional | `polling` (default) or `webhook` | | |
| | `SPACE_PUBLIC_URL` | webhook only | `https://<space>.hf.space` | | |
| | `TELEGRAM_WEBHOOK_SECRET` | webhook only | Long random string (also given to Telegram) | | |
| No secrets in source code β the bot exits with `TELEGRAM_NO_TOKEN` if the token is missing. | |
| ## Files in this folder (deployed to the Space root) | |
| - `app.py` β entrypoint (`CMD python app.py`) | |
| - `telegram_bot.py` β canonical bot (brain, Firebase, queue, webhook/polling) | |
| - `telegram_transport.py` β direct/proxy transport + `/diag` matrix | |
| - `requirements.txt`, `Dockerfile`, `README.md` | |
| ## Endpoints (`:7860`) | |
| - `/` β health: model, mode, transport, polls, offset, Telegram reachability | |
| - `/diag` β network test matrix JSON (DNS/TCP/HTTPS/getMe direct-vs-proxy, no secrets) | |
| - `/webhook/<secret>` β Telegram webhook receiver (webhook mode only) | |