mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Fix proxy failing when omitting optional arguments
This commit is contained in:
parent
2874be05ff
commit
83dc5f7a03
@ -895,7 +895,9 @@ class Client:
|
|||||||
)
|
)
|
||||||
|
|
||||||
if self.proxy:
|
if self.proxy:
|
||||||
pass
|
self.proxy["enabled"] = True
|
||||||
|
self.proxy["username"] = self.proxy.get("username", None)
|
||||||
|
self.proxy["password"] = self.proxy.get("password", None)
|
||||||
else:
|
else:
|
||||||
self.proxy = {}
|
self.proxy = {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user