feat: pantalla para administrar chats autorizados del agente de Telegram

Antes la whitelist de telegram_agent_auth solo se podía tocar con curl/Postman
contra /api/v2/agent/auth. Se agrega /app/agente/chats-autorizados con un
CRUD simple, más un botón "buscar mensajes recientes" (UpdatesRecientesDelBot,
vía getUpdates) para descubrir el chat_id de alguien que le acaba de escribir
al bot sin tener que pedírselo por otro medio. Entrada nueva en el menú lateral
del módulo Automatización IA.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Lizandro GD
2026-08-03 02:37:40 +00:00
co-authored by Claude Sonnet 5
parent 7b0e4b9b5c
commit 5607836261
6 changed files with 311 additions and 0 deletions
+1
View File
@@ -401,6 +401,7 @@ func AdminApiRoutes(api fiber.Router) {
// ─── Agente Telegram: chats autorizados ──────────────────────────────────
h.Get("/agent/auth", controllers.AgentAuthList)
h.Get("/agent/auth/recientes", controllers.AgentAuthRecientes)
h.Post("/agent/auth", controllers.AgentAuthCreate)
h.Delete("/agent/auth/:id", controllers.AgentAuthDelete)
h.Delete("/agent/history/:chat_id", controllers.AgentHistoryClear)