Skip to content

Commit

Permalink
chore: remove Link from telegram message
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Nov 1, 2021
1 parent 6aa7038 commit 101bccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/tasks/alert.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const emailTemplate = `Subject: Task '{{ .Alias }}' failed
Task {{ .TaskID }} with template '{{ .Alias }}' has failed!
Task log: <a href='{{ .TaskURL }}'>{{ .TaskURL }}</a>`

const telegramTemplate = `{"chat_id": "{{ .ChatID }}","parse_mode":"HTML","text":"<code>{{ .Alias }}</code>\n#{{ .TaskID }} <b>{{ .TaskResult }}</b> <code>{{ .TaskVersion }}</code> {{ .TaskDescription }}\nby {{ .Author }}\nLink: {{ .TaskURL }}"}`
const telegramTemplate = `{"chat_id": "{{ .ChatID }}","parse_mode":"HTML","text":"<code>{{ .Alias }}</code>\n#{{ .TaskID }} <b>{{ .TaskResult }}</b> <code>{{ .TaskVersion }}</code> {{ .TaskDescription }}\nby {{ .Author }}\n{{ .TaskURL }}"}`

// Alert represents an alert that will be templated and sent to the appropriate service
type Alert struct {
Expand Down

0 comments on commit 101bccc

Please sign in to comment.