Solved: Telegram - duplicated mapping key?

I set up Telegram to communicate messages out of my install of Home Assistant ( * Core 2025.3.4, Supervisor 2025.03.3, Operating System 15.0, Frontend 20250306.0) using this guide. While it all seems to work out OK I continue to get an error in the configuration.YAML.
duplicated mapping key (48:1)

45 | - -xxxxxxxxx
46 | # Notifier
47 |
48 | notify:
------^
49 | - platform: telegram
50 | name: “telegram_notifier”

My config looks like this:

Telegram Bot

telegram_bot:

  • platform: polling
    api_key: “MyBigLooooooongAPIKey”
    allowed_chat_ids:
    • -xxxxxxxxx

Notifier

notify:

  • platform: telegram
    name: “telegram_notifier”
    chat_id: -xxxxxxxxx

I cannot figure out what I’ve done wrong can anyone point out my mistake?

A little while later…

I solved the problem! I checked the logs and I noticed that the error message in the log was a bit more useful. When I took the big picture of the configuration.yaml into view it was obvious that another notifywas defined under the SMTP entry in the yaml. As I don’t use SMTP I commented that out and all is well with the universe once more.

In future please do not use the quote button to format your configuration for the forum use the </> button or do this: https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16