Using multiple Telegram bots to send notifications?

Hi,

Currently I only use one Telegram bot for all notifications, but I want to expand into using several bots (logging, notifications, alarm etc.)

I have all the bots created and have their chat_id’s. I’m able to find their api-key as well using the Home Assistant guide. However, I can’t get anything but my original bot to send messages.

My configuration.yaml:

telegram_bot:
  - platform: polling
    api_key: *api_key*
    allowed_chat_ids:
      - chat_id_1
      - chat_id_2
telegram_bot:
  - platform: polling
    api_key: *api_key_alarm*
    allowed_chat_ids:
      - chat_id_3

Can’t get the above to work. Been finding similar questions from a few years ago, but no one mentions if they got it to work.

What am I doing wrong?

Did you solve this?

I have updated the doc’s for using 1 bot in several groups some weeks ago.
So it’s not needed to use several bots, just use 1 bot and add it to several groups for logging, notifications, alarm etc.

Never got more than one bot working, but did as gerard33 suggests; using the same bot in several groups and then use these groups for log, notifications, alarms or whatever.