Telegram_pot not working

Folks,
I do get the follwoing errors in my logfile

Sep 24 21:32:52 home-assistant hass[7135]: 2017-09-24 21:32:52 INFO (MainThread) [homeassistant.loader] Loaded telegram_bot from homeassistant.components.telegram_bot
Sep 24 21:32:52 home-assistant hass[7135]: 2017-09-24 21:32:52 INFO (MainThread) [homeassistant.loader] Loaded telegram_bot.polling from homeassistant.components.telegram_bot.polling
Sep 24 21:33:03 home-assistant hass[7135]: 2017-09-24 21:33:03 INFO (MainThread) [homeassistant.setup] Setting up telegram_bot
Sep 24 21:33:04 home-assistant hass[7135]: 2017-09-24 21:33:04 INFO (MainThread) [homeassistant.components.telegram_bot] Setting up telegram_bot.polling
Sep 24 21:33:05 home-assistant hass[7135]: 2017-09-24 21:33:05 ERROR (MainThread) [homeassistant.components.telegram_bot] Error setting up platform polling
Sep 24 21:33:05 home-assistant hass[7135]: File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/telegram_bot/__init__.py", line 232, in async_setup
Sep 24 21:33:05 home-assistant hass[7135]: File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/telegram_bot/polling.py", line 31, in async_setup_platform
Sep 24 21:33:05 home-assistant hass[7135]: 2017-09-24 21:33:05 INFO (MainThread) [homeassistant.setup] Setup of domain telegram_bot took 2.0 seconds.
Sep 24 21:33:05 home-assistant hass[7135]: 2017-09-24 21:33:05 ERROR (MainThread) [homeassistant.setup] Setup failed for telegram_bot: Component failed to initialize.
Sep 24 21:33:05 home-assistant hass[7135]: * [telegram-bot](https://home-assistant.io/components/telegram_bot/)
Sep 24 21:33:05 home-assistant hass[7135]: * [telegram-bot](https://home-assistant.io/components/telegram_bot/)

my config.yaml looks like:
telegram_bot:

    telegram_bot:
 - platform: polling
   api_key: bot<apitoken>
   allowed_chat_ids: <chatid>

the allowed_chat_ids: is something I got from running:
curl -X GET https://api.telegram.org/bot<apitoken/getMe

{“ok”:true,“result”:{"id:,“is_bot”:true,“first_name”:“Ihausbot”,“username”:"Ihausbot“}}

my notify.yaml looks like:

- name: my_telegram
    platform: telegram
    chat_id: <chatid>

What’s wrong?

Try to remove “bot” from the api key entry;

telegram_bot:
  - platform: polling
    api_key: <apitoken>
    allowed_chat_ids: <chatid>

Thanks, that erased the error. But still having issues with reaction on a command via telegram.

I do have in my notify.yaml

  - name: telegram_ihaus
    platform: telegram
    api_key: <api_key>
    chat_id: <chat-id>

configuration.yaml

telegram_bot:
  - platform: polling
    api_key: <api-token>
    allowed_chat_ids: 
      - <chat-id>

Action in it’s own yaml file

alias: 'Telegram bot that reply pong to ping'
hide_entity: true
trigger:
  platform: event
  event_type: telegram_command
  event_data:
    command: '/ping'
action:
  - service: notify.telegram_ihaus
    data:
      message: 'pong' 

When I send my bot a message like “/ping” I do get an error and nothing happens:

Sep 25 19:24:17 home-assistant hass[710]: 2017-09-25 19:24:17 ERROR (MainThread) [homeassistant.components.telegram_bot] Incoming message is not allowed ({‘date’: 1506360257, ‘text’: ‘/ping’, ‘entities’: [{‘type’: ‘bot_command’, ‘offset’: 0, ‘length’: 5}], ‘message_id’: 10, ‘from’: {‘is_bot’: False, ‘language_code’: ‘de-DE’, ‘id’: 289103473, ‘username’: ‘mindelheimer_bua’, ‘last_name’: ‘Schubert’, ‘first_name’: ‘Juergen’}, ‘chat’: {‘id’: , ‘type’: ‘private’, ‘last_name’: ‘lastname’, ‘username’: ‘right username’, ‘first_name’: ‘firstname’}})
no reaction. What went wrong?

in my working scenario - I’ve got the above line set to telegram_callback as the event_type rather than telegram_command