crazy-max / diun

Receive notifications when an image is updated on a Docker registry
https://crazymax.dev/diun/
MIT License
2.91k stars 111 forks source link

Telegram - formatted messages #832

Open Victoare opened 1 year ago

Victoare commented 1 year ago

Telegram message has a flag (parse_mode) for formatted messages. https://core.telegram.org/bots/api#formatting-options

Right now if I set the templateBody to Docker image \<code>{{ .Entry.Image.Path }}\</code> has been released an \<b>update\</b>. then the <...> tags are showing in the message instead of the formatted message.

It would be nice to have a notif parameter like:

notif:
  telegram:
    parseMode: HTML / Markdown / MarkdownV2
LoScienzo commented 7 months ago

This is very old, but I found you can surround text in backticks `like this` to get monospaced text.

immagine