Config of telegram_bot

Hello!
I need help in configuration of telegram_bot

My version of HA:
Home Assistant 2022.8.4
Supervisor 2022.08.3
Operating System 8.4
Frontend 20220802.0 - latest

I put this in configuration.yaml to set up notification via telegram bot

# Telegram Notification
telegram_bot:
  - platform: polling
    api_key: MYAPI
    allowed_chat_ids:
      - ID

But when I tried to restart HA:

Log of Home Assistant Core:

Logger: homeassistant.loader
Source: components/telegram_bot/__init__.py:25 
First occurred: 17:09:02 (4 occurrences) 
Last logged: 17:21:31

Unexpected exception importing component homeassistant.components.telegram_bot
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2872, in get_entry_map
    ep_map = self._ep_map
  File "/usr/local/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2834, in __getattr__
    raise AttributeError(attr)
AttributeError: _ep_map

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 638, in get_component
    cache[self.domain] = importlib.import_module(self.pkg_path)
  File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/src/homeassistant/homeassistant/components/telegram_bot/__init__.py", line 25, in <module>
    from telegram.ext import CallbackContext, Filters
  File "/usr/local/lib/python3.10/site-packages/telegram/ext/__init__.py", line 27, in <module>
    from .jobqueue import JobQueue, Job
  File "/usr/local/lib/python3.10/site-packages/telegram/ext/jobqueue.py", line 28, in <module>
    from apscheduler.schedulers.background import BackgroundScheduler
  File "/usr/local/lib/python3.10/site-packages/apscheduler/schedulers/background.py", line 5, in <module>
    from apscheduler.schedulers.base import BaseScheduler
  File "/usr/local/lib/python3.10/site-packages/apscheduler/schedulers/base.py", line 42, in <module>
    class BaseScheduler(six.with_metaclass(ABCMeta)):
  File "/usr/local/lib/python3.10/site-packages/apscheduler/schedulers/base.py", line 66, in BaseScheduler
    _trigger_plugins = dict((ep.name, ep) for ep in iter_entry_points('apscheduler.triggers'))
  File "/usr/local/lib/python3.10/site-packages/apscheduler/schedulers/base.py", line 66, in <genexpr>
    _trigger_plugins = dict((ep.name, ep) for ep in iter_entry_points('apscheduler.triggers'))
  File "/usr/local/lib/python3.10/site-packages/pkg_resources/__init__.py", line 662, in <genexpr>
    for entry in dist.get_entry_map(group).values()
  File "/usr/local/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2874, in get_entry_map
    ep_map = self._ep_map = EntryPoint.parse_map(
  File "/usr/local/lib/python3.10/site-packages/pkg_resources/__init__.py", line 2559, in parse_map
    raise ValueError("Entry points must be listed in groups")
ValueError: Entry points must be listed in groups

I follow the instruction to config telegram_bot on the official site >> Telegram bot - Home Assistant
Where I’m wrong?
Can you please help me?

# Telegram Notification
telegram_bot:
- platform: polling
  api_key: MYAPI
  allowed_chat_ids:
    - 1234567891
    - -123213133

Don’t know if this was your problem but you need to put the chat id of the bot as well. It will have “-” in front of it.

Thanks for the advice, i just added the bot_id, but still the problem persists :frowning:

After updating Home Assistant Core to 2022.8.5 I solved my problem and now everything works! :slight_smile: