瀏覽代碼

telegram: Fix a typo in variable name

Robin Burchell 8 年之前
父節點
當前提交
a1a9f339bf
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      pkg/services/alerting/notifiers/telegram.go

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

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