Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-22159

Markdown is broken in Telegram media type

    XMLWordPrintable

Details

    • Team INT
    • 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), Sprint candidates, S2401
    • 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.

      Attachments

        Issue Links

          Activity

            People

              zit Zabbix Integration Team
              Kalimulin Alex Kalimulin
              Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: