diff --git a/server/integrations/telegram.go b/server/integrations/telegram.go index 5dc5387..dcb7881 100644 --- a/server/integrations/telegram.go +++ b/server/integrations/telegram.go @@ -87,8 +87,8 @@ func (s TelegramIntegration) ProcessEvent(evt *ContactPointEvent, rawConfig stri if data.SensorLastContactCondition != nil { text := fmt.Sprintf("✅ %s has reported in last %s %s", data.Sensor.Name, strconv.FormatFloat(data.SensorLastContactCondition.Value, 'f', -1, 64), data.SensorLastContactCondition.ValueUnit) - if data.Alert.CustomMessage != "" { - text = data.Alert.CustomMessage + if data.Alert.CustomResolvedMessage != "" { + text = data.Alert.CustomResolvedMessage } msg := tgbotapi.NewMessage(config.TargetChannel, text)