Hi, so this is a reason why the support for html tags for telegram was reverted.
I think that we can use that html tags in our telegram transport. I know that there is no support for all html tags, but i believe that is better to edit default template in docs where is a problem with sending alert in this line:
@foreach ($alert->contacts as $key => $value) {{ $value }} <{{ $key }}> @endforeach
and use a html tags which is possible in telegram alerts. instead of the line with information, which i think is not very needed. For example I just want to know when is device down or something like that and I dont want to read a lot of text of it.
There is a list of html tags supported for telegram:
<b>bold</b>, <strong>bold</strong>
<i>italic</i>, <em>italic</em>
<a href="http://www.example.com/">inline URL</a>
<a href="tg://user?id=123456789">inline mention of a user</a>
<code>inline fixed-width code</code>
<pre>pre-formatted fixed-width code block</pre>
and here is how I use it. It is in slovak language but I think it i better to read alerts with that tags
and here is an alert template for that telegram message. I edited it to english for you
@if ($alert->state == 1)❗️ Device <b>{{ $alert->hostname }}</b> is DOWN @endif @if ($alert->state == 2)⚠️ Acknowledged @endif @if ($alert->state == 3)⚠️ Recovering @endif @if ($alert->state == 0)✅ Device <b>{{ $alert->hostname }}</b> is UP @endif
<b>Time:</b> {{ $alert->timestamp }}
<b>Last uptime</b>: {{ $alert->uptime_long }}
<b>Time elapsed:</b> {{ $alert->elapsed }}
<b>Location:</b> {{ $alert->location }}
So what do you think ?