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

Telegram webhook can't pass "<" so bot can parse it correctly

XMLWordPrintable

    • Sprint 104 (Sep 2023)
    • 1

      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

            aiantsen Aleksandr Iantsen
            elina.kuzyutkina Elina Kuzyutkina (Inactive)
            Team INT
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: