2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 13:27:47 +00:00

Fix config values not being available when not using config.ini file

This commit is contained in:
Dan 2018-09-19 17:30:23 +02:00
parent 08f6d0b865
commit 3a858e6a57

View File

@ -916,6 +916,8 @@ class Client(Methods, BaseClient):
option, option,
fallback=getattr(Client, option.upper()) fallback=getattr(Client, option.upper())
)) ))
else:
setattr(self, option, getattr(Client, option.upper()))
if self._proxy: if self._proxy:
self._proxy["enabled"] = True self._proxy["enabled"] = True