We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aed9547 commit ba9f0baCopy full SHA for ba9f0ba
internal/platform/repositories/alert/telegram.go
@@ -3,6 +3,7 @@ package alert
3
import (
4
"encoding/json"
5
"net/url"
6
+ "strings"
7
8
"github.com/hatamiarash7/uptime-webhook/internal/models"
9
log "github.com/sirupsen/logrus"
@@ -13,7 +14,7 @@ func (r *Repository) CreateTelegramMessage(alert models.Alert) error {
13
14
var urls []string
15
16
for _, tag := range alert.Data.Service.Tags {
- team, ok := r.config.Notifier.Telegram.Teams[tag]
17
+ team, ok := r.config.Notifier.Telegram.Teams[strings.ToLower(tag)]
18
if !ok {
19
log.Errorf("[Telegram] Team not found for tag: %s", tag)
20
continue
0 commit comments