From 83dc5f7a03f91a5a1be61501f43bd411d53ed53c Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 27 Apr 2018 12:46:46 +0200 Subject: [PATCH] Fix proxy failing when omitting optional arguments --- pyrogram/client/client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 = {}