Telegram bot setup problems

Hi everyone, I’m new to hass.io, so please be gentle :wink:

I just tried setting up my telegram bot using the steps provided in the documentation, but was unfortunately not successful. I get the following error message when starting hass.io:

" The following components and platforms could not be set up:

  • telegram-bot
  • notify.telegram"

The bot has been set-up in telegram. My configuration.yaml looks like this:

# Telegram Chatbot
telegram_bot:
  - platform: polling
    api_key: [API_KEY]
    allowed_chat_ids:
    - [CHAT_ID]
       
notify:
  - name: telegram_notifier
    platform: telegram
    chat_id: [CHAT_ID]

I did of course replace the brackets with the respective data. Any idea what I’m doing wrong?

Thank you very much for your help!
Tonvenio

It’s usually a mistyped api_key, or that you haven’t initiated the bot by starting the conversation.

What does the log say?

Ufff… that was indeed it. I just copied a part of the API key. Thanks a lot! :slight_smile:

1 Like