When the HTTP connection is lost, telegram library triggers the following exception:
2022-09-07 10:57:51,950 - telegram.ext.updater - Bot:111111111111111:updater - ERROR - Error while getting Updates: urllib3 HTTPError HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot1111111111111/getUpdates (Caused by NewConnectionError('<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x0000025275121120>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
2022-09-07 10:57:51,950 - telegram.ext.dispatcher - Bot:11111111:dispatcher - ERROR - No error handlers are registered, logging exception.
on such event, the telegram app in mobile phone is unaware that HTTP connection is lost.
I want the python bot script to send a message to the telegram app when the HTTP connection is restored. how do I do that?