[ZBX-22159] Markdown is broken in Telegram media type Created: 2023 Jan 03  Updated: 2025 Jul 03

Status: Blocked
Project: ZABBIX BUGS AND ISSUES
Component/s: Templates (T)
Affects Version/s: 5.0.30, 6.0.12, 6.2.6, 6.4.0beta5
Fix Version/s: 7.0.17rc1, 7.4.1rc1, 8.0.0alpha1 (master)

Type: Problem report Priority: Trivial
Reporter: Alex Kalimulin Assignee: Zabbix Integration Team
Resolution: Unresolved Votes: 5
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to ZBX-26484 Telegram notifications don't work in ... Closed
Sub-task
depends on ZBXNEXT-8565 New system macro(s) with raw alert me... Open
Team: Team INT
Sprint: Sprint 96 (Jan 2023), Sprint 97 (Feb 2023), Sprint 98 (Mar 2023), Sprint 99 (Apr 2023), Sprint 100 (May 2023), Sprint 101 (Jun 2023), Sprint 102 (Jul 2023), Sprint 103 (Aug 2023), Sprint 104 (Sep 2023), Sprint 105 (Oct 2023), Sprint 106 (Nov 2023), Sprint 107 (Dec 2023), S2401
Story Points: 1

 Description   

Markdown (in parse modes Markdown, MarkdownV2) doesn't work in Telegram webhook because all markdown symbols are escaped after the fix in ZBX-20150. Now these modes are documented and thus must work properly.

Even though ZBX-20150 reported the problem about markdown symbols in macro values (such symbols should be escaped indeed) the fix escaped all characters in the message altogether so now there is no way to send markdown-formatted messages.

Zabbix should resolve this by either:

1. Reverting the fix from ZBX-20150 and documenting the advice not to use Markdown/MarkdownV2 if macro values (e.g. host names) contain special characters.
2. Removing official support of parse modes Markdown and MarkdownV2. Supported parse modes will be empty or HTML in this case.
3. Introducing macro functions that escape values for the given macros. This option is a massive amount of work and should be a subject of a separate feature request.


Generated at Thu Jul 17 09:34:24 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.