Last active
February 4, 2025 06:46
-
-
Save peyanski/79ab317470296bafd04f211b1107a44b to your computer and use it in GitHub Desktop.
Add these lines in your configuration.yaml file and change the Access Token & chat ID with yours to make it work.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# STEPS TO GET THE TELEGRAM TOKEN AND CHAT ID ARE: | |
## 1. In Telegram, open a chat with @BotFather - https://t.me/BotFather and enter /newbot. | |
## 2. Follow the instructions and store the token somewhere safe. | |
## 3. To get a chat ID, send any message to the GetIDs bot - https://t.me/getidsbot | |
## 4. Enter /start. The bot will return your chat ID | |
## 5. Find your newly created bot and start a chat with it | |
## 6. Add the YAML code below in configuration.yaml file in Home Assistant and restart HA | |
# configuration.yaml entry | |
# Telegram Bot | |
telegram_bot: | |
- platform: polling | |
api_key: !secret t_key | |
allowed_chat_ids: | |
- YOUR_CHAT_ID | |
# Notifier | |
notify: | |
- platform: telegram | |
name: "telegram_bot" | |
chat_id: YOUR_CHAT_ID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment