diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index d6be121f..07679545 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -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 = {}