diff --git a/pkg/notifier/telegramnotifier/telegram.go b/pkg/notifier/telegramnotifier/telegram.go index bbe8d68b0..39257cb10 100644 --- a/pkg/notifier/telegramnotifier/telegram.go +++ b/pkg/notifier/telegramnotifier/telegram.go @@ -67,12 +67,12 @@ func (n *Notifier) NotifyTo(channel string, obj interface{}, args ...interface{} log.Infof(a, pureArgs...) message = fmt.Sprintf(a, pureArgs...) - case types.Stringer: - message = a.String() - case types.PlainText: message = a.PlainText() + case types.Stringer: + message = a.String() + default: log.Errorf("unsupported notification format: %T %+v", a, a)