telegram-bot
Skill39 starsChanged 7 months agoMITView on GitHub
Bot de Telegram para comunicación bidireccional usuario ↔ Claudia. Gestión del proceso PM2, watchdog, briefing y recordatorios. Usar cuando haya que gestionar, debuggear o modificar el bot.
- Reads credentials
- Installs packages
9 other projects use a version of this.
Adopted by
Most recently taken up by
- oivanfelipe/claude-skillstheir own version, first seen Nov 8, 2026
- AceDataCloud/Skillstheir own version, first seen Nov 8, 2026
- ScriptingApp/skillstheir own version, first seen Oct 28, 2026
- daniilganiev/telegram-devtheir own version, first seen Oct 8, 2026
- DEXTERITY-maker/rikkahub-skillstheir own version, first seen Jul 15, 2026
- OpenClaudia/openclaudia-skillstheir own version, first seen Jun 11, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- OpenClaudia/openclaudia-skills★ 731same name
- claude-office-skills/skills★ 433same name
- AceDataCloud/Skills★ 17same name
- ScriptingApp/skills★ 17same name
- grandamenium/openclawd-lesson-1-telegram-bot★ 4same name
- DEXTERITY-maker/rikkahub-skills★ 1same name
- leo-capvano/telegram-skill★ 1same name
- daniilganiev/telegram-dev★ 0same name
- oivanfelipe/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- claudia-blueprintSkill
- claudia-calendarSkill
- claudia-corpus-syncSkill
- claudia-critiqueSkill
- claudia-finanzasSkill
- claudia-gmailSkill
- claudia-imageSkill
- claudia-intakeSkill
- claudia-onboardingSkill
- claudia-researchSkill
- claudia-scrapeSkill
- claudia-thinkingSkill
- claudia-updateSkill
- claudia-wisdomSkill
- claudia-yt-analyticsSkill
- claudia-yt-transcriptSkill
- memory-searchSkill
- notesSkill
- vault-searchSkill
- weekly-reviewSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 80
No hay bot interactivo (no puedes enviar mensajes a Claudia por Telegram)
- Distinctive: line 191
Sin configuración: no se envía ningún briefing.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Telegram Bot — Comunicación bidireccional
Bot de Telegram que permite al usuario interactuar con Claudia desde el móvil. Soporta texto, audio (whisper.cpp), imágenes y comando /agenda.
Personalización: antes de ejecutar, lee
user/behavior.mden este directorio. Si tiene contenido, aplícalo como ajustes sobre el comportamiento de esta skill — en caso de conflicto con lo definido aquí, prevalece lo del usuario.
Proceso
- Runtime: Node.js con PM2
- Arranque:
cd .claude/skills/telegram-bot && pm2 start ecosystem.config.cjs - Watchdog: cron cada 5 min →
watchdog.sh(revive el bot si cae, mata claudes colgados) - Recordatorios: cron cada 5 min →
node check_reminders.js - Briefing: configurable por el usuario (ver sección Briefing)
Comandos del bot
/agenda [días]— calendario sin IA/new— nueva sesión/project <nombre>— cambiar workspace (los disponibles se definen enuser/config.json)/status— estado del bot/cancel— cancelar tarea en ejecución
HTTP API (Siri / Tailscale)
POST http://localhost:3001/message con { text, secret, return_only }. Usado por check_reminders.js para enriquecer recordatorios con contexto.
Setup (primera vez)
Privacidad: los bots de Telegram no soportan cifrado de extremo a extremo (sólo los Secret Chats lo hacen, y sólo entre usuarios). Todo lo que pase por este bot (briefings, recordatorios, notas, respuestas de Claudia) viaja por servidores de Telegram. Apto para uso personal del día a día; no lo uses como canal para información confidencial de clientes o datos sensibles de negocio.
- Abre Telegram y busca @BotFather
- Envía
/newbot, elige nombre y username - BotFather te dará un token (formato
123456:ABC-DEF...) - Para obtener tu User ID: busca @userinfobot en Telegram y envía
/start - Añade ambos a
user/credentials/.env:TELEGRAM_BOT_TOKEN=tu_token_aqui TELEGRAM_USER_ID=tu_id_aqui
Opcionales en .env: HTTP_PORT (default 3001), HTTP_SECRET, CLAUDE_CODE_OAUTH_TOKEN.
Modos de operación
Modo local (solo notificaciones — recomendado para empezar)
Recordatorios de tareas via Telegram. No necesita VPS ni PM2. Funciona mientras el equipo esté encendido.
macOS:
cd ~/.claude/skills/telegram-bot && npm install
bash setup-local-reminders.shWindows:
cd ~\.claude\skills\telegram-bot; npm install
powershell -ExecutionPolicy Bypass -File setup-local-reminders.ps1Linux:
cd ~/.claude/skills/telegram-bot && npm install
# Añadir a crontab:
crontab -l | { cat; echo "*/5 * * * * cd .claude/skills/telegram-bot && node check_reminders.js"; } | crontab -Qué hace:
- Recordatorios — check cada 5 min, envía por Telegram los que vencen
Limitaciones del modo local:
- Los recordatorios
ctx=yesse envían como notificación simple (sin enriquecimiento con Claude) - Si el equipo está dormido/apagado, las notificaciones se envían al despertar (macOS/Windows) o se pierden (Linux sin servidor)
- No hay bot interactivo (no puedes enviar mensajes a Claudia por Telegram)
Para desinstalar:
- macOS:
bash setup-local-reminders.sh --uninstall - Windows:
powershell -File setup-local-reminders.ps1 -Uninstall - Linux: editar
crontab -ey eliminar la línea
Requisitos: Node.js 18+.
Modo completo (bot interactivo + notificaciones)
Bot bidireccional + todas las automatizaciones. Requiere un servidor siempre encendido (VPS, servidor casero, o Mac que no se apague).
cd ~/.claude/skills/telegram-bot && npm install
npm install -g pm2
pm2 start ecosystem.config.cjsCrons del servidor:
*/5 * * * * .claude/skills/telegram-bot/watchdog.sh
*/5 * * * * cd .claude/skills/telegram-bot && node check_reminders.jsRequisitos: Node.js 18+, PM2, servidor siempre encendido.
Briefing diario
El briefing es una notificación programada con información del día (calendario, tareas, etc.). Es independiente de los recordatorios y se configura en user/config/settings.json (key skill_briefing).
Setup conversacional
Cuando el usuario quiera configurar el briefing (dice "quiero un resumen matutino", "configura el briefing", "mándame la agenda cada mañana", etc.), no le mandes a editar JSON. Guíale con preguntas, una a una:
- ¿Cuándo?
¿A qué hora quieres recibir el briefing? ¿Todos los días o solo entre semana?
- Si dice "por la mañana" → sugerir 08:00
- Si quiere varios envíos (mañana + tarde) → crear un schedule por cada uno
- Pedir nombre para cada schedule si hay más de uno ("mañana", "cierre", etc.)
- ¿Qué incluir?
¿Qué quieres que incluya? Las opciones son:
- Agenda del día — eventos de tu calendario
- Tareas pendientes — lo que tienes en tu lista
- Ambas
- Si tiene calendario configurado → ofrecer ambas
- Si no tiene calendario → ofrecer solo tareas, mencionar que puede añadir calendario después
- Detalles (solo si aplica):
- Si eligió calendario: ¿Solo hoy o también mañana? ¿Todos los calendarios o alguno específico?
- Si eligió tareas: ¿Solo las que vencen hoy o también las pendientes sin fecha?
- Generar y activar:
- Genera la key
skill_briefingenuser/config/settings.jsoncon las respuestas - Ejecuta el setup script correspondiente (o indica el cron para VPS)
- Envía un briefing de prueba:
node send_briefing.js <nombre_schedule> - Confirma: "Te acabo de enviar uno de prueba. ¿Te ha llegado bien? ¿Quieres cambiar algo?"
- Genera la key
Si el usuario quiere modificar un briefing existente, lee la key skill_briefing de settings.json, pregunta qué quiere cambiar, actualiza la key y re-ejecuta el setup.
Formato de la configuración
Key skill_briefing en user/config/settings.json:
{
"skill_briefing": {
"enabled": true,
"schedules": [
{
"name": "mañana",
"hour": 8,
"minute": 0,
"days": ["mon", "tue", "wed", "thu", "fri", "sat", "sun"],
"sections": ["calendar", "tasks"]
}
],
"sections": {
"calendar": {
"days_ahead": 1,
"calendars": "all"
},
"tasks": {
"source": "user/workspaces/_me/notes/tasks.md",
"show_pending": true,
"show_due_today": true
}
}
}
}schedules[] — cuándo enviar. Se pueden definir varios (ej. briefing de mañana + resumen de tarde):
name— identificador librehour,minute— hora local (segúntimezone)days— días de la semana (mon-sun). Omitir para todos los días.sections— qué secciones incluir en este envío
sections — qué información incluir:
calendar— eventos del calendario.days_ahead: cuántos días mostrar.calendars:"all"o lista de nombres de calendario específicos.tasks— tareas pendientes.show_pending: todas las pendientes.show_due_today: las que vencen hoy.
Zona horaria — se lee de user/config/settings.json (campo timezone). Si el usuario no la tiene configurada, preguntar y guardarla allí.
Activación
El briefing se activa con el mismo mecanismo que los recordatorios:
- Modo local: el setup script (
setup-local-reminders.sh/.ps1) detecta si existe la keyskill_briefingensettings.jsony crea los LaunchAgents/tareas programadas correspondientes. - Modo completo (VPS): se añaden los crons según la configuración.
- Sin configuración: no se envía ningún briefing. Los recordatorios funcionan independientemente.
Script
send_briefing.js — lee skill_briefing de settings.json, genera el mensaje y lo envía por Telegram. Se invoca con el nombre del schedule: node send_briefing.js mañana.
Estado (gitignored)
user/sessions.json — sesiones persistentes de conversación.
user/logs/ — logs del watchdog y recordatorios.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

