Update README.md

Updated and 100% working info in SOCKS5 proxy block.
This commit is contained in:
LeoNeeD 2018-04-18 10:05:26 +12:00 committed by GitHub
parent 373d4d37ff
commit 10ec897fb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -503,13 +503,10 @@ from telebot import apihelper
apihelper.proxy = {'http', 'http://10.10.1.10:3128'}
```
If you want to use socket5 proxy you need install dependency `pip install requests[socks]`.
If you want to use socket5 proxy you need install dependency `pip install requests[socks]` and make sure, that you have the latest version of `gunicorn`, `PySocks`, `pyTelegramBotAPI`, `requests` and `urllib3`.
```python
proxies = {
'http': 'socks5://user:pass@host:port',
'https': 'socks5://user:pass@host:port'
}
apihelper.proxy = {'https', ' 'socks5://userproxy:password@proxy_address:port''}
```