From cd92b70d6b6869d3aa04e73949ae3b678d85d4b2 Mon Sep 17 00:00:00 2001 From: _run Date: Sun, 1 May 2022 19:13:49 +0500 Subject: [PATCH] Update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index a0e283f97..3412d80d0 100644 --- a/README.md +++ b/README.md @@ -656,6 +656,8 @@ telebot.logger.setLevel(logging.DEBUG) # Outputs debug messages to console. ``` ### Proxy +For sync: + You can use proxy for request. `apihelper.proxy` object will use by call `requests` proxies argument. ```python @@ -670,6 +672,14 @@ If you want to use socket5 proxy you need install dependency `pip install reques apihelper.proxy = {'https':'socks5://userproxy:password@proxy_address:port'} ``` +For async: +```python +from telebot import asyncio_helper + +asyncio_helper.proxy = 'http://127.0.0.1:3128' #url +``` + + ### Testing You can disable or change the interaction with real Telegram server by using ```python