This is probably because you have installed a too old Python library from the python-telegram-bot. (Can have several reasons at first).
I assume you have executed the bot via my install script, so try the following.
- Try to run the following command, you should get a similar output.
pip3 show python-telegram-bot
Output:
Name: python-telegram-bot
Version: 20.1
Summary: We have made you a wrapper you can't refuse
Home-page: https://python-telegram-bot.org/
Author: Leandro Toledo
Author-email: devs@python-telegram-bot.org
License: LGPLv3
Location: /usr/local/lib/python3.7/dist-packages
Requires: httpx
Required-by:
If the version in this output is <20.0 execute the following commands in your terminal as root. If this works I will update the install script so that this doesn’t happen anymore. Thanks for your help.
# In your case replace <omd_site_name> with tycke
omd_site=<omd_site_name>
telegram_plus_dir=/omd/sites/$omd_site/local/share/checkmk-telegram-plus
telegram_plus_service_name=checkmk-telegram-plus-$omd_site.service
pip3 install --target=$telegram_plus_dir python-telegram-bot==20.1
pip3 install --target=$telegram_plus_dir python-telegram-bot[job-queue]==20.1
pip3 install --target=$telegram_plus_dir python-telegram-bot[callback-data]==20.1
systemctl restart $telegram_plus_service_name
Keep me posted if this helped, I’ll be happy if we can make the install script work for everyone without any problems