Semaphore/services/tasks/templates/telegram.tmpl
Thomas Boerger 5c8b87620e
feat: refactoring of alerts and send correct email alerts
Previously the sent email alerts have been missing mandatory headers
like `Date` and it was also missing content type, content transfer
encoding and mime version. I have taken proper examples form the
unmaintained gomail library to build right emails.

Besides that I have refactored the calls for alerts, they git the same
structure now and it should be prepared to inject custom templates for
all altering methods at some later point. Generally it is prepared for a
more flexible alert handling.
2024-03-03 20:12:28 +01:00

6 lines
232 B
Cheetah

{
"chat_id": "{{ .Chat.ID }}",
"parse_mode": "HTML",
"text": "<code>{{ .Name }}</code>\n#{{ .Task.ID }} <b>{{ .Task.Result }}</b> <code>{{ .Task.Version }}</code> - {{ .Task.Desc }}\nby {{ .Author }}\n{{ .Task.URL }}"
}