Hi, I’m trying to figure out the same thing: How to use two telegram bots. I experience the same thing as OP; only the last defined bot will be used. I assume that the “telegram_bot” service doesn’t support two bots.
It is, however, a much wanted feature. I’d like one bot for alerts to go to the whole family (eg. fire alarm). The other bot is used for less urgent stuff, like doorbell, etc.
Regarding groups: I don’t quite understand how this is used. Is there a tutorial on that? Can I achieve separate alert and info with groups?
You can do that with the one bot sending to two (or more) different chat groups. See my example above. The system notification goes to me only for urgent system related issues like available updates or errors, the general chat group is used by me and others to receive functional alerts like the washing machine finishing, smoke or house alarm etc…
It is a long time since I set this up, so don’t remember the specifics but I think it was as simple as creating a chat group in telegram, inviting the bot, and setting up the notification services as above.
Ok, thank you, it works now. Basically, I use the config as given by you above (but I have “platform: polling” instead of “platform: webhooks”, not sure if that means anything).
To get the group and/or channel ids, I created group/channel (using Telegram app), and then invited my bot and also the “IDBot” from Telegram, and issued “/getgroupid@myidbot”, got the id, kicked out the bot, invited the family members. Then I used the ID in the config. Works!