Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Disabled previewing for telegram to fix linking
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmarmour committed Sep 25, 2020
1 parent 5d7c8a6 commit 0dc7cb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/alert/telegram.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func SendTelegramMessage(item string, nvidiaURL string, config config.TelegramCo
return err
}

req, err := http.NewRequest("POST", fmt.Sprintf("https://api.telegram.org/bot%s/sendMessage", config.APIKey), bytes.NewBuffer(payload))
req, err := http.NewRequest("POST", fmt.Sprintf("https://api.telegram.org/bot%s/sendMessage&disable_web_page_preview=true", config.APIKey), bytes.NewBuffer(payload))
if err != nil {
return err
}
Expand Down

0 comments on commit 0dc7cb0

Please sign in to comment.