Hi all,
I did the upgrade from 2022.3.6 to 2022.4.0 (HA Core in virtualenv) and the Telegram integration doesn’t start anymore.
I read that there was a bug in 2022.4.0, fixed in 2022.4.1: I updated to 2022.4.1 and then to 2022.4.2 but the problem is always present.
These are the error messages that appear:
Invalid config
The following integrations and platforms could not be set up:
telegram_bot
Please check your config and logs.
Platform error notify.telegram - cannot import name 'Bot' from 'telegram' (/srv/homeassistant/lib/python3.9/site-packages/telegram/__init__.py)
Platform error notify.telegram - cannot import name 'Bot' from 'telegram' (/srv/homeassistant/lib/python3.9/site-packages/telegram/__init__.py)
Component error: telegram_bot - cannot import name 'Bot' from 'telegram' (/srv/homeassistant/lib/python3.9/site-packages/telegram/__init__.py)
Do you have any suggestions for restoring telegram notifications?
Here the yaml configuration:
telegram_bot:
- platform: broadcast
api_key: !secret telegram_api_key
allowed_chat_ids:
- 11xxxxxx
- 50xxxxxx
notify:
- name: telegram_1
platform: telegram
chat_id: 11xxxxxx
- name: telegram_2
platform: telegram
chat_id: 50xxxxxx
Thank you