mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-01 23:05:15 +00:00
Fix proxy failing when omitting optional arguments
This commit is contained in:
@@ -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 = {}
|
||||
|
||||
|
Reference in New Issue
Block a user