|
Download README.md from Hfzune/Zinx: direct link, hf CLI and curl.
- Browser
- Download file 1.5 kB
-
https://huggingface.co/spaces/Hfzune/Zinx/resolve/main/README.md
- Command line
-
hf download hf://spaces/Hfzune/Zinx/README.md
-
curl -L -o README.md https://huggingface.co/spaces/Hfzune/Zinx/resolve/main/README.md
1.5 kB
A newer version of the Gradio SDK is available: 6.31.0
metadata
title: Phone Lookup Bot
emoji: π
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 6.29.1
python_version: '3.12'
app_file: app.py
pinned: false
license: mit
startup_duration_timeout: 30m
short_description: Telegram phone lookup bot streaming HF dataset
π Phone Lookup Telegram Bot
Streams Kzr0xx/Icmr-and-hitek (104 GB) directly from HuggingFace via DuckDB.
No download. No storage bucket. External heartbeat via GitHub Actions.
Required Space Secrets
| Secret | Value | Required? |
|---|---|---|
BOT_TOKEN |
Telegram bot token from @BotFather | β Yes |
SPACE_URL |
https://<your-user>-<space-name>.hf.space |
β Yes |
WEBHOOK_SECRET |
1221 (or any random string) |
β Recommended |
HF_TOKEN |
HF read token | β οΈ Recommended |
TELEGRAM_PROXY |
Cloudflare Worker URL (see below) | β Only if Telegram is blocked |
Endpoints
GET /healthβ heartbeat / health check (used by keep-alive cron)POST /webhookβ Telegram webhook (auto-registered on startup)GET /β Gradio landing page
If Telegram API Is Blocked
Some HF Space regions cannot reach api.telegram.org. If setWebhook logs
show connection failures, deploy a Cloudflare Worker proxy:
- Go to https://workers.cloudflare.com β create a free Worker
- Paste this code:
export default {
async fetch(request) {
const url = new URL(request.url);
url.hostname = "api.telegram.org";
return fetch(new Request(url, request));
}
};