Spaces:
Runtime error
Runtime error
🤖 Telegram Bot Integration
Bot: @Error33yobot
Configuración Requerida
En Hugging Face Spaces (Settings → Variables and secrets):
| Type | Key | Value |
|---|---|---|
| Secret | TELEGRAM_BOT_TOKEN |
8246977072:AAHItyl6wYcrkNwTcj5Teu0lsVwTeMKZZqU |
| Secret | TELEGRAM_CHAT_ID |
5858991844 |
En GitHub Secrets (Settings → Secrets and variables → Actions):
| Secret | Value |
|---|---|
TELEGRAM_BOT_TOKEN |
8246977072:AAHItyl6wYcrkNwTcj5Teu0lsVwTeMKZZqU |
TELEGRAM_CHAT_ID |
5858991844 |
✅ Configuración completa - ¡El bot ya está funcionando!
Cómo obtener tu Chat ID (ya configurado)
El Chat ID ya está configurado: 5858991844
Si necesitás cambiarlo en el futuro, los pasos son:
- Abrí Telegram
- Buscá:
@Error33yobot - Iniciá el bot: Click en "Start" o mandale "hola"
- Ejecutá este comando:
curl -s "https://api.telegram.org/bot8246977072:AAHItyl6wYcrkNwTcj5Teu0lsVwTeMKZZqU/getUpdates" | python3 -m json.tool - Buscá en el resultado:
"chat": {"id": 123456789, ...}
Comandos del Bot
| Comando | Descripción |
|---|---|
/start |
Mostrar ayuda y comandos disponibles |
/ping |
Verificar que el bot está activo |
/status |
Ver estado del sistema (jobs activos, proxies, etc.) |
/jobs |
Listar los últimos 5 jobs |
Crear Jobs desde Telegram
Simplemente enviá un mensaje al bot con tu tarea:
Go to Hacker News and save the top 10 stories as JSON
El bot va a:
- ✅ Crear el job
- 📋 Confirmarte con el Job ID
- 🔔 Avisarte cuando termine con el link de descarga
Notificaciones Automáticas
Job Started
🚀 Job Started
ID: abc123...
Task: Go to Hacker News...
Format: json
⏳ Processing...
Job Completed
✅ Job Completed!
ID: abc123...
Format: json
📥 Download Result
Job Failed
❌ Job Failed
ID: abc123...
Error: [error message]
KeepAlive Alert
⚠️ KeepAlive Alert
🔴 HF Space health check failed!
Status: 503
The Space might be sleeping or down.
KeepAlive Restored
✅ KeepAlive OK
🟢 HF Space health check passed!
Status: 200
The Space is awake and running.
Flujo de Uso
- Configurá las variables en HF Spaces y GitHub
- Iniciá el bot en Telegram (
/start) - Enviá tu tarea como mensaje
- Esperá la notificación de completado
- Descargá el resultado desde el link
Ejemplos de Comandos
Buscar en Google
Search for "AI engineers in San Francisco" on LinkedIn and save as CSV
Extraer datos
Go to amazon.com and get the top 5 wireless headphones under $100
Navegación compleja
Visit hackernews.com, click on "Ask HN", and save all posts from today
Troubleshooting
El bot no responde
- Verificá que
TELEGRAM_BOT_TOKENesté configurado - Verificá que
TELEGRAM_CHAT_IDsea correcto - Revisá los logs del Space
No llegan las notificaciones
- Verificá que el bot tenga permisos para enviarte mensajes
- Asegurate de haber iniciado el bot (
/start)
El keepalive no notifica
- Verificá los secrets de GitHub Actions
- Revisá el workflow en: https://github.com/ncolex/33BrowserPilot/actions
Costo: $0/mes
- Telegram Bot API: Gratis
- GitHub Actions: 2000 min/mes (usás ~1)
- Total: $0