0

I am creating a telegram bot using telepot, as I run this code, The following error comes :

My Code:

token = 'XXXXXXXX'
bot = telepot.Bot(token)
bot.getMe()

Error:

Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)')

How to fix this error?

Aexomir
  • 158
  • 8
  • Does this help: https://stackoverflow.com/questions/43298872/how-to-solve-readtimeouterror-httpsconnectionpoolhost-pypi-python-org-port? – Pygirl Mar 27 '20 at 09:26
  • @Pygirl I've successfully installed them; but i can't use .getMe() function ! – Aexomir Mar 27 '20 at 09:30

1 Answers1

1

Have you tried to downgrade urllib3 to 1.24.1? See https://github.com/nickoala/telepot/issues/463#issuecomment-490874476

yartem
  • 41
  • 3