From 10ec897fb541d1197c39ac6cc2fa7923041e2075 Mon Sep 17 00:00:00 2001 From: LeoNeeD <35986338+LeoNeeDpk1@users.noreply.github.com> Date: Wed, 18 Apr 2018 10:05:26 +1200 Subject: [PATCH] Update README.md Updated and 100% working info in SOCKS5 proxy block. --- README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5bda4ed..408b6be 100644 --- a/README.md +++ b/README.md @@ -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''} ```