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:
co-authored by
Claude Sonnet 5
parent
7b0e4b9b5c
commit
5607836261
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user