I'm currently developing a Telegram bot using python/Pytelegrambotapi.
In my local machine, if the bot is started and left for sometime without any request, It terminates and throws the error
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.telegram.org', port=443): Read timed out. (read timeout=25)
Can someone help me handling this error.
Thanks in advance
Sometime network or Telegram issues happen.
Handle exceptions or use bot.infinity_polling() instead of bot.polling()
edit: Try this function with these parameters (you can adjust later as you'd like)

bot.infinity_polling(timeout=10, long_polling_timeout = 5)
Pytelegrambotapi Throws ReadTimeout error