mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 21:07:59 +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:
|
||||
pass
|
||||
self.proxy["enabled"] = True
|
||||
self.proxy["username"] = self.proxy.get("username", None)
|
||||
self.proxy["password"] = self.proxy.get("password", None)
|
||||
else:
|
||||
self.proxy = {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user