1
0
mirror of https://github.com/TwiN/gatus.git synced 2025-01-09 07:28:29 +01:00

Minor fix

This commit is contained in:
TwinProduction 2021-04-14 23:01:40 -04:00
parent ebcca4317d
commit 56dbe2fea0

View File

@ -45,7 +45,7 @@ func (provider *AlertProvider) ToCustomAlertProvider(service *core.Service, aler
return &custom.AlertProvider{
URL: fmt.Sprintf("https://api.telegram.org/bot%s/sendMessage", provider.Token),
Method: http.MethodPost,
Body: fmt.Sprintf(`{"chat_id": "%s", "text": "%s", "parse_mode": "MARKDOWN" }`, provider.ID, text),
Body: fmt.Sprintf(`{"chat_id": "%s", "text": "%s", "parse_mode": "MARKDOWN"}`, provider.ID, text),
Headers: map[string]string{"Content-Type": "application/json"},
}
}