[ZBX-23244] Telegram webhook can't pass "<" so bot can parse it correctly Created: 2023 Aug 11  Updated: 2024 Apr 10  Resolved: 2023 Sep 12

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 6.0.20, 6.4.5
Fix Version/s: 6.0.22rc1, 6.4.7rc1, 7.0.0alpha5, 7.0 (plan)

Type: Problem report Priority: Major
Reporter: Elina Kuzyutkina (Inactive) Assignee: Aleksandr Iantsen
Resolution: Fixed Votes: 0
Labels: telegram, webhook
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBX-22134 Telegram integration does not process... Closed
Team: Team INT
Sprint: Sprint 104 (Sep 2023)
Story Points: 1

 Description   

Send notification via Telegram bot with message containing "<"
for example:

<b>PROBLEM DETECTED</b>\nMy host\r\n\r\n<b>Warning</b>\r\nHost has been restarted (uptime < 10m)

Sending will fail with
Sending failed: Bad Request: can't parse entities: Unsupported start tag "" at byte offset xx
Telegram bot after < waits for the tag but it's not a tag it's "less"

Need to replace < to < with correct regex
https://core.telegram.org/bots/api#html-style
Although for > it works



 Comments   
Comment by Aleksandr Iantsen [ 2023 Sep 05 ]

Fixed in:

Generated at Sun Aug 10 09:27:10 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.