Source: https://github.com/python-telegram-bot/python-telegram-bot/wiki/Handling-network-errors/_edit