Yes, you can use HTML tags in Zabbix Telegram notifications. The Telegram Bot API supports several HTML formatting options that can be utilized in your Zabbix alerts.
Supported HTML Tags
You can include the following HTML tags in your Zabbix Telegram notifications:
- `` or `` for bold text
- `` or `` for italic text
- `` for inline URLs
- `` for inline fixed-width code
- `` for pre-formatted fixed-width code blocks
Configuration Steps
1. Create a Telegram Bot: Use @BotFather to create your bot and obtain the API token.
2. Set Up Media Type in Zabbix:
- Go to Administration > Media types and create a media type for Telegram.
- In the script parameters, include the bot token and specify the `parse_mode` as `HTML`.
3. Customize Notifications:
- When defining actions in Zabbix, you can customize the subject and message fields to include HTML formatting as needed.
4. Testing: After setting up, test the notifications to ensure the HTML formatting appears correctly in Telegram messages.
By following these steps, you can effectively utilize HTML tags in your Zabbix Telegram notifications, enhancing the readability and presentation of the alerts you send[1][3][4].
Citations:[1] https://github.com/GabrielRF/Zabbix-Telegram-Notification
[2] https://github.com/BlackVS/zabbix-telegram
[3] https://www.kaznu.kz/content/files/news/folder23177/Lab%2013%20PCM.pdf
[4] https://www.zabbix.com/integrations/telegram
[5] https://github.com/ableev/Zabbix-in-Telegram
[6] https://ashoktutorials.blogspot.com/2017/06/zabbix-alert-notification-with-telegram.html
[7] https://thepalmtree.network/en/zabbix-telegram-notifications/
[8] https://azdigi.com/blog/en/linux-server-en/tools-en/how-to-set-up-zabbix-alerts-via-telegram/