feat: notificaciones Telegram en webhook de Coolify

- CoolifyWebhook parsea el payload y envía mensaje formateado a Telegram
- Detecta estado ( success /  fail / 🚀 deploying / ⏹ stop / 🔄 restart)
- Ruta /webhooks/coolify/:config_id identifica de qué instancia viene
- Notifica a todos los chats autorizados del agente bot
- GetAgentTelegramConfig() en models para obtener el bot activo

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro GD
2026-07-13 19:28:59 +00:00
co-authored by Claude Sonnet 4.6
parent a8786e2aca
commit ee9a2f09d6
3 changed files with 146 additions and 2 deletions
+3
View File
@@ -24,7 +24,10 @@ func RutasPublicas(web fiber.Router) {
web.Post("/webhooks/saas-in/:token", controllers.SaasWebhookInHandler)
web.Get("/webhooks/saas-in/:token", controllers.SaasWebhookInHandler) // algunos SaaS verifican con GET
// Coolify notifica eventos de deployment/restart aquí (configurar en Coolify → Settings → Notifications → Webhook)
// Ruta genérica
web.Post("/webhooks/coolify", controllers.CoolifyWebhook)
// Ruta por instancia: incluye el config_id para identificar de qué Coolify viene
web.Post("/webhooks/coolify/:config_id", controllers.CoolifyWebhook)
// ─── Página de confirmación de pago ───────────────────────────────────
web.Get("/pago-exitoso", apiControllers.PagoExitosoPage)