<commit_before># Fritzbox Missed Calls Bot
**What?** This bot will inform you about (fixed-line) calls you missed via the [telegram-messenger](https://telegram.org/).
It only works if your calls are managed by an AVM FritzBox.

# Usage
## Prerequisites
### Software
First, please install Python 3 and then install the necessary packages as superuser/admin:

- [requests]()
- [lxml](https://github.com/lxml/lxml) to parse XML
  - [precombiled windows binary](http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml) and then `pip install lxml-....whl`
- [fritzconnection](https://github.com/kbr/fritzconnection) to access the FritzBox API
- [python-telegram-bot](https://github.com/python-telegram-bot/python-telegram-bot) to manage your Telegram Bot

`pip install requests lxml fritzconnection python-telegram-bot --upgrade` or `pip install somepackage.whl`

### Telegram Bot Token
On Telegram, talk to **BotFather** to create a bot and get its access-token.

```
/newbot<commit_msg>Readability increased in chat with BotFather<commit_after># Fritzbox Missed Calls Bot
**What?** This bot will inform you about (fixed-line) calls you missed via the [telegram-messenger](https://telegram.org/).
It only works if your calls are managed by an AVM FritzBox.

# Usage
## Prerequisites
### Software
First, please install Python 3 and then install the necessary packages as superuser/admin:

- [requests]()
- [lxml](https://github.com/lxml/lxml) to parse XML
  - [precombiled windows binary](http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml) and then `pip install lxml-....whl`
- [fritzconnection](https://github.com/kbr/fritzconnection) to access the FritzBox API
- [python-telegram-bot](https://github.com/python-telegram-bot/python-telegram-bot) to manage your Telegram Bot

`pip install requests lxml fritzconnection python-telegram-bot --upgrade` or `pip install somepackage.whl`

### Telegram Bot Token
On Telegram, talk to **BotFather** to create a bot and get its access-token.

```bash
/newbot
{'fraction_non_alphanumeric': 0.1239294710327456, 'fraction_numerical': 0.0010075566750629723, 'mean_word_length': 4.674285714285714, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, 'xml': 12}, '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': '2287410', 'n_tokens_mistral': 639, 'n_tokens_neox': 604, 'n_words': 205}