Hello !
Telegram is popular among privacy-conscious people who want a secure messaging app. It has over 500 million active users worldwide. Telegram is widely recognized as a secure channel for online communications.
We can make use of Telegram bots to send and receive messages or commands to/from Home Assistant.
Here, I use :
⇒ Bot name : "Door Open Alert ⚠️"
⇒ Bot username : "bibinmadhavan_bot"
(Bot name and username are two different things. Bot name will be the chat name appearing on your telegram. Unlike the bot name, your bot username should always end with the word “bot”)


telegram_bot:
- platform: polling
api_key: "xxxxxxxxxxxxxxxxxx" # APIfrom “BotFather”
allowed_chat_ids:
- 1123456 # Chat ID from “Get My ID”
(Note: API key from “BotFather” and Chat ID from “Get My ID”)
This will enable Telegram's bot service to be integrated into HA.
notify:
- platform: telegram
name: "bibin" # Use any name you want
chat_id: 123456

If you have done everything correctly you can see a new notify service “notify.any_name” under the Developer Tools → Services.
We have to verify now if the notify service is working or not.


For multiple users :
If you want to include more persons from the family, just add their Telegram chat IDs to the "telegram_bot:" and "notify:" sections of the configuration.yaml file.


You can verify the service created for the second person same as before, under Developer Tools → Services.
Group notification :
What we have done here now is to give each one a new notify service, which is not convenient if you want to create an automation to notify all at the same time since we need to call multiple notify services. In such scenarios, we can make use of "Notify Groups". We can combine multiple notification services into a single service using "Notify Groups".
notify:
- name: "Family Group"
platform: group
services:
- service: notify.bibin # 1st notify service
- service: notify.office # 2nd notify service
That's it. You can now use the service "notify.family_group" for sending telegram notifications to all users at the same time.
I want to personally thank you for reading my recent article.” Your time and attention are greatly appreciated, and it means a lot to me that you took the time to engage with my content. Your support and feedback are invaluable, and I am grateful for the opportunity to share my thoughts and ideas with you. Whether you left a comment, shared the article, or read it, your participation helps fuel my passion for writing and motivates me to keep creating content that resonates with readers like you.
Please feel free to reach out if you have any thoughts, questions, or feedback about the article. I love hearing from my readers and learning about your perspectives.
Once again, thank you for your support. I look forward to sharing more with you soon.