<commit_before># Telegram

> The telegram platform uses Telegram to delivery notifications from Home Assistant to your Android device, your Windows phone, or your iOS device. [Documentation](https://home-assistant.io/components/notify.telegram/)

```sh
user@server:~$ sudo pip3 install telegram
user@server:~$ sudo pip3 install python-telegram-bot
```

- Chat Id

```sh
{"ok":true,"result":[{"update_id":776736904,
"message":{"message_id":1,"from":{"id":166426442,"first_name":"Abraham","last_name":"Arce","username":"Xe1Gyq"},"chat":{"id":166426442,"first_name":"Abraham","last_name":"Arce","username":"Xe1Gyq","type":"private"},"date":1489859878,"text":"/start","entities":[{"type":"bot_command","offset":0,"length":6}]}},{"update_id":776736905,
"message":{"message_id":2,"from":{"id":166426442,"first_name":"Abraham","last_name":"Arce","username":"Xe1Gyq"},"chat":{"id":166426442,"first_name":"Abraham","last_name":"Arce","username":"Xe1Gyq","type":"private"},"date":1489859880,"text":"hi"}}]}
```
<commit_msg>Updates Edzna/documentation/Telegram.md<commit_after># Telegram

> The telegram platform uses Telegram to delivery notifications from Home Assistant to your Android device, your Windows phone, or your iOS device. [Documentation](https://home-assistant.io/components/notify.telegram/)

```sh
user@server:~$ sudo pip3 install telegram
user@server:~$ sudo pip3 install python-telegram-bot
```

- Chat Id

- https://api.telegram.org/bot<token>/getUpdates

```sh
{"ok":true,"result":[{"update_id":776736904,
"message":{"message_id":1,"from":{"id":166426442,"first_name":"Abraham","last_name":"Arce","username":"Xe1Gyq"},"chat":{"id":166426442,"first_name":"Abraham","last_name":"Arce","username":"Xe1Gyq","type":"private"},"date":1489859878,"text":"/start","entities":[{"type":"bot_command","offset":0,"length":6}]}},{"update_id":776736905,
"message":{"message_id":2,"from":{"id":166426442,"first_name":"Abraham","last_name":"Arce","username":"Xe1Gyq"},"chat":{"id":166426442,"first_name":"Abraham","last_name":"Arce","username":"Xe1Gyq","type":"private"},"date":1489859880,"text":"hi"}}]}
```

{'fraction_non_alphanumeric': 0.2402473834443387, 'fraction_numerical': 0.07992388201712655, 'mean_word_length': 13.914893617021276, 'pattern_counts': {'":': 76, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4246551', 'n_tokens_mistral': 824, 'n_tokens_neox': 714, 'n_words': 86}