Explorar o código

telegram: Fix a typo in variable name

Robin Burchell %!s(int64=8) %!d(string=hai) anos
pai
achega
a1a9f339bf
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      pkg/services/alerting/notifiers/telegram.go

+ 2 - 2
pkg/services/alerting/notifiers/telegram.go

@@ -11,7 +11,7 @@ import (
 )
 
 var (
-	telegeramApiUrl string = "https://api.telegram.org/bot%s/%s"
+	telegramApiUrl string = "https://api.telegram.org/bot%s/%s"
 )
 
 func init() {
@@ -113,7 +113,7 @@ func (this *TelegramNotifier) Notify(evalContext *alerting.EvalContext) error {
 
 	bodyJSON.Set("text", message)
 
-	url := fmt.Sprintf(telegeramApiUrl, this.BotToken, "sendMessage")
+	url := fmt.Sprintf(telegramApiUrl, this.BotToken, "sendMessage")
 	body, _ := bodyJSON.MarshalJSON()
 
 	cmd := &m.SendWebhookSync{