1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Merge pull request #494 from LeoNeeDpk1/patch-1

Update README.md SOCKS5 proxy info
This commit is contained in:
FrankWang 2018-04-18 11:51:44 +09:00 committed by GitHub
commit 28111bdf4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -503,13 +503,10 @@ from telebot import apihelper
apihelper.proxy = {'http', 'http://10.10.1.10:3128'} 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 ```python
proxies = { apihelper.proxy = {'https', ' 'socks5://userproxy:password@proxy_address:port''}
'http': 'socks5://user:pass@host:port',
'https': 'socks5://user:pass@host:port'
}
``` ```