From e31e08a072fd484ad478938d3ef55c06289c7471 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Mon, 13 Aug 2018 23:28:49 +0300 Subject: [PATCH] Proxy & proxy_auth is not needed when used aiohttp_socks --- aiogram/bot/base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aiogram/bot/base.py b/aiogram/bot/base.py index 137e0c2c..1934f0ac 100644 --- a/aiogram/bot/base.py +++ b/aiogram/bot/base.py @@ -71,6 +71,9 @@ class BaseBot: username=username, password=password, limit=connections_limit, ssl_context=ssl_context, loop=self.loop) + + self.proxy = None + self.proxy_auth = None else: connector = aiohttp.TCPConnector(limit=connections_limit, ssl_context=ssl_context, loop=self.loop)