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

Update README.md

This commit is contained in:
Jay-T 2018-04-18 13:10:22 +05:00 committed by GitHub
parent 28111bdf4e
commit 989cae597b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -500,13 +500,13 @@ You can use proxy for request. `apihelper.proxy` object will use by call `reques
```python ```python
from telebot import apihelper 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]` and make sure, that you have the latest version of `gunicorn`, `PySocks`, `pyTelegramBotAPI`, `requests` and `urllib3`. 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
apihelper.proxy = {'https', ' 'socks5://userproxy:password@proxy_address:port''} apihelper.proxy = {'https':'socks5://userproxy:password@proxy_address:port'}
``` ```