Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
fix: incorrect markdown format for telegram
Kyle Mendelld56c2b7e8044
diff --git a/backend/internal/services/notification_service.go b/backend/internal/services/notification_service.goindex 434470328..3b4d10128 100644--- a/backend/internal/services/notification_service.go+++ b/backend/internal/services/notification_service.go@@ -1298,13 +1298,13 @@ func (s *NotificationService) sendBatchTelegramNotification(ctx context.Context,description = "1 container image has an update available."}- message := fmt.Sprintf("*%s*\n\n%s\n\n", title, description)+ message := fmt.Sprintf("<b>%s</b>\n\n%s\n\n", title, description)for imageRef, update := range updates {- message += fmt.Sprintf("*%s*\n"+- "• *Type:* %s\n"+- "• *Current:* `%s`\n"+- "• *Latest:* `%s`\n\n",+ message += fmt.Sprintf("<b>%s</b>\n"++ "• <b>Type:</b> %s\n"++ "• <b>Current:</b> <code>%s</code>\n"++ "• <b>Latest:</b> <code>%s</code>\n\n",imageRef,update.UpdateType,update.CurrentDigest,@@ -1312,6 +1312,11 @@ func (s *NotificationService) sendBatchTelegramNotification(ctx context.Context,)}+ // Set parse mode to HTML if not already set+ if telegramConfig.ParseMode == "" {+ telegramConfig.ParseMode = "HTML"+ }+if err := notifications.SendTelegram(ctx, telegramConfig, message); err != nil {return fmt.Errorf("failed to send batch Telegram notification: %w", err)}