home-assistant.io icon indicating copy to clipboard operation
home-assistant.io copied to clipboard

telegram bot doesn't send messages containing "_" when using markdown

Open depuits opened this issue 3 years ago • 6 comments

Feedback

This issue is a followup on https://github.com/home-assistant/core/issues/45290. When including a markdown special character in a telegram message the message just is not send. I found lots of other people having issues with this, especially when including entity id's or names containing an underscore. The suggestion in the linked issue is to change the parse_mode for the bot but I can't find any documentation about this option.

telegram_bot:
  - platform: broadcast
    api_key: !secret telegram_token
    parse_mode: html
    allowed_chat_ids:
      - chat_id

I'm also not sure if the parse_mode also applies to the telegram notification or only the bot. In any case the markdown parsing and other parsing options should be documented and made clear to the user.

The markdown is also not used on all notification platforms.

URL

https://www.home-assistant.io/integrations/telegram/

Version

2021.12.10

Additional information

No response

depuits avatar Feb 02 '22 10:02 depuits

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved. If this issue is still relevant, please let us know by leaving a comment 👍 This issue has now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Apr 03 '22 11:04 github-actions[bot]

+1

depuits avatar Apr 04 '22 08:04 depuits

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved. If this issue is still relevant, please let us know by leaving a comment 👍 This issue has now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jun 03 '22 10:06 github-actions[bot]

+1

depuits avatar Jun 03 '22 14:06 depuits

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved. If this issue is still relevant, please let us know by leaving a comment 👍 This issue has now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 02 '22 16:08 github-actions[bot]

+1

depuits avatar Aug 02 '22 16:08 depuits

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved. If this issue is still relevant, please let us know by leaving a comment 👍 This issue has now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Oct 01 '22 18:10 github-actions[bot]

+1

depuits avatar Oct 03 '22 09:10 depuits

That option is documented here: https://www.home-assistant.io/integrations/telegram_bot

ludeeus avatar Oct 04 '22 12:10 ludeeus

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved. If this issue is still relevant, please let us know by leaving a comment 👍 This issue has now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Dec 03 '22 13:12 github-actions[bot]