Error in Telegram Bot with parse_mode

When trying to add parse_mode to HTML, I get this error:
2021-04-21 09:11:06 ERROR (MainThread) [homeassistant.components.automation.xxxx] AUTO: Error executing script. Invalid data for call_service at pos 1: extra keys not allowed @ data[‘parse_mode’]
2021-04-21 09:11:06 ERROR (MainThread) [homeassistant.components.automation.xxxx] Error while executing automation automation.xxxx: extra keys not allowed @ data[‘parse_mode’]

This is the action code:

service: notify.telegram_not
data:
  title: 'test.'
  message: test
  parse_mode: 'HTML'
  data:
    inline_keyboard:
      - 'YES:/turnon'

If I remove the “parse_mode” it works perfectly.

1 Like

Have you figured out the problem?

No, I just didn’t use it.

parse_mode is an option for the telegram_bot (definition) and sorrily not for the notify service
see also : this post
just in case you want to use it