Add additional method to get telegram id (#31713)

* Add additional method to get telegram id

* tiny tweak

---------

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
Tobias Perschon 2024-03-04 08:45:15 +01:00 committed by GitHub
parent 5bc42ddd02
commit 0ffb4be258
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -119,6 +119,10 @@ $ python3
If you want to add new chat IDs then you will need to disable the active configuration to actually see the result with the IDs, otherwise you may only get empty results array.
</div>
**Method 4:** You can also get the chat ID from the Home Assistant logs. If you have set up the bot already, you can send a message to your bot from an unauthorized ID and you will see an error entry in the log containing the ID.
[![Open your Home Assistant instance and show your Home Assistant logs.](https://my.home-assistant.io/badges/logs.svg)](https://my.home-assistant.io/redirect/logs/?)
## Configuration
To enable Telegram notifications in your installation, add the following to your `configuration.yaml` file: