HOWTO change Template Telegramm Message

Hi guys

Need to change telegramm alert template . Can some one help me to find it

Fox example delete URL section on telegramm message

Hi garamelek,

It’s currently not possible to configure the template for the Telegram alerts. It would have to be done either in code (with a custom build) or through adding support for templating to the Telegram alerting.

All the code related to the telegram alerter can be found here: https://github.com/grafana/grafana/blob/master/pkg/services/alerting/notifiers/telegram.go

What is your use case if I may ask? Is it just about deleting the url or do you want to customize it to fit your specific use case.

Dear lgram ,

Thanks for you comment . i just want to delete URL:http://localhost:3000… from telegramm message , because it take more space . And the second problem with grafana when alert is alram is triggered grafana send
[Alerting] TR-A Haber HD alert
State: TR-A Haber HD alert
Message: TR-A2 Turk SD Проверить
URL: http://localhost:3000//d/ieR6Pggmk/cliptv?fullscreen=true&edit=true&tab=alert&panelId=38&orgId=1

And after some time when alarm is recovered i receive again same message but only [OK ] is changed

[OK] TR-A Haber HD alert
State: TR-A Haber HD alert
Message: TR-A2 Turk SD Проверить
URL: http://localhost:3000//d/ieR6Pggmk/cliptv?fullscreen=true&edit=true&tab=alert&panelId=38&orgId=1

Is that bug or something wrong in my configuration ?

That looks about right. We might make it possible to configure the messages being sent in the future but it’s not planned for now.

Any plan to remove url in msg?

Hello, I have the same concern. I want to remove URL which is showing up in my telegram alerts. any solution yet?