03-sep: [videoclub] Buscador interactivo + agentes/skills OpenCode + aviso por voz
This commit is contained in:
30
.opencode/skill/telegram-procesamiento/SKILL.md
Normal file
30
.opencode/skill/telegram-procesamiento/SKILL.md
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
name: telegram-procesamiento
|
||||
description: Procesamiento de mensajes de Telegram: leer telegram_mensajes.log, mensajes nuevos, canal IDD. Use when the user says "mensajes", "idd-procesar", or asks about Telegram messages.
|
||||
---
|
||||
|
||||
# Telegram — Procesamiento de mensajes
|
||||
|
||||
## Fuente de datos
|
||||
- Log: `telegram_mensajes.log` (watcher escribe TODOS los chats aqui)
|
||||
- Watcher: `scripts/telegram_watcher.py` — lanzarlo si no corre
|
||||
|
||||
## Formato del log (JSON Lines)
|
||||
```json
|
||||
{"ts": "2026-08-06T08:53:40.017Z", "chat": "IDD", "sender": "IDD", "text": "...", "alert": false}
|
||||
```
|
||||
|
||||
## Comando "mensajes"
|
||||
1. Leer `telegram_mensajes.log`
|
||||
2. Mostrar mensajes nuevos desde la ultima lectura
|
||||
3. Ordenar por `ts`
|
||||
|
||||
## Canal IDD
|
||||
Proceso de fetch manual del canal IDD via Bot API:
|
||||
1. Fetch de mensajes pendientes del canal IDD
|
||||
2. Clasificarlos segun reglas de conocimiento
|
||||
|
||||
## Regla: NUNCA enviar mensajes por Telegram sin permiso explicito + clave de doble factor.
|
||||
|
||||
## Scripts
|
||||
- `scripts/telegram_watcher.py` — watcher de monitoreo
|
||||
Reference in New Issue
Block a user