urllib3 HTTPError HTTPSConnectionPool(host ='api.telegram.org',port = 443)

时间:2018-07-25 08:39:59

标签: python-telegram-bot

我正在使用python-telegram-bot软件包。我已经创建了令牌, 但是当我输入时出现错误

  

bot = telegram.Bot(token = token)

     

print(bot.get_me())

错误似乎是这样的

raise NetworkError('urllib3 HTTPError {0}'.format(error))
telegram.error.NetworkError: urllib3 HTTPError HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot596344372:AAE7hzD2dEWejYnNEVcwsTi6O_b4oFXT-IA/getMe (Caused by ConnectTimeoutError(<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x0570E630>, 'Connection to api.telegram.org timed out. (connect timeout=5.0)'))

0 个答案:

没有答案