Skip to content

Commit ecaba45

Browse files
committed
Keep only lang_code
1 parent 27020ca commit ecaba45

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

pyrogram/client/client.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,6 @@ class Client(Methods, BaseClient):
8686
Operating System version. Defaults to *platform.system() + " " + platform.release()*
8787
This is an alternative way to set it if you don't want to use the *config.ini* file.
8888
89-
system_lang_code (``str``, *optional*):
90-
Code of the language used on the system, in ISO 639-1 standard. Defaults to "en".
91-
This is an alternative way to set it if you don't want to use the *config.ini* file.
92-
9389
lang_code (``str``, *optional*):
9490
Code of the language used on the client, in ISO 639-1 standard. Defaults to "en".
9591
This is an alternative way to set it if you don't want to use the *config.ini* file.
@@ -149,7 +145,6 @@ def __init__(self,
149145
app_version: str = None,
150146
device_model: str = None,
151147
system_version: str = None,
152-
system_lang_code: str = None,
153148
lang_code: str = None,
154149
proxy: dict = None,
155150
test_mode: bool = False,
@@ -170,7 +165,6 @@ def __init__(self,
170165
self.app_version = app_version
171166
self.device_model = device_model
172167
self.system_version = system_version
173-
self.system_lang_code = system_lang_code
174168
self.lang_code = lang_code
175169
# TODO: Make code consistent, use underscore for private/protected fields
176170
self._proxy = proxy
@@ -889,7 +883,7 @@ def load_config(self):
889883
"More info: https://docs.pyrogram.ml/start/ProjectSetup#configuration"
890884
)
891885

892-
for option in {"app_version", "device_model", "system_version", "system_lang_code", "lang_code"}:
886+
for option in {"app_version", "device_model", "system_version", "lang_code"}:
893887
if getattr(self, option):
894888
pass
895889
else:

pyrogram/session/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def start(self):
145145
app_version=self.client.app_version,
146146
device_model=self.client.device_model,
147147
system_version=self.client.system_version,
148-
system_lang_code=self.client.system_lang_code,
148+
system_lang_code=self.client.lang_code,
149149
lang_code=self.client.lang_code,
150150
lang_pack="",
151151
query=functions.help.GetConfig(),

0 commit comments

Comments
 (0)