【发布时间】:2021-12-09 18:33:29
【问题描述】:
我目前正在使用 python/Pytelegrambotapi 开发 Telegram 机器人。
在我的本地机器中,如果机器人在没有任何请求的情况下启动并离开一段时间,它会终止并抛出错误
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.telegram.org', port=443): Read timed out. (read timeout=25)
谁能帮我处理这个错误。
提前致谢
【问题讨论】:
标签: python bots telegram telegram-bot py-telegram-bot-api