Glancing at the stack trace and reviewing some code, chances are the issue is not actually caused by Telegram plugin / telebot dependency, but the code is merely responding to an actual issue caused by the far end, or configuration in the network (=working as intended).
EHOSTUNREACH actually means what it says: The host (telegram server side) is unreachable. It might help attempting to investigate if these IP addresses are reachable outside Pimatic (Ping is useless - see below), but from the system on which pimatic lives (e.g. terminal session). An interesting test would be to execute the following command from the linux console:
wget https://api.telegram.org/bot<API_TOKEN>/getMe (replace
<API_TOKEN> with your bot token right after the word
Output example, where the
188.8.131.52|:443... connected and
200 OK are what you want to see. If there is an issue it will give a response code other than 200 OK. if this is combined with the line below not indicating “connected” it proves we need to investigate the issue outside pimatic. If the 443 connection is OK, but you do not get a “200 OK”, it might indicate a config issue such as the bot token not being valid (unlikely as @OrTiN indicated the systems seems to work apart from the log flooding.
Resolving api.telegram.org (api.telegram.org)... 184.108.40.206, 220.127.116.11, 18.104.22.168, ... Connecting to api.telegram.org (api.telegram.org)|22.214.171.124|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 96 [application/json] Saving to: ‘getMe’
Unfortunately ping only proves there is a path between to systems and IP connectivity is possible. It does not say anything if two systems can establish a socket connection. Background: Ping uses ports 7 and 8 (Echo and Echo-reply respectively, using the ICMP protocol if I recall correctly. HTTP or HTTPS protocols actually live much higher in the network stack on top of TCP/IP. In layman’s terms: Ping confirms there is a road between two cities, but you still dont know if specific types of vehicles can travel from A to .