mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-08 17:13:56 +00:00
Proxy & proxy_auth is not needed when used aiohttp_socks
This commit is contained in:
parent
d5290647c5
commit
e31e08a072
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue