Skip to content

Commit 2101dfb

Browse files
committed
Show a meaningful error and hint to read more when using cloud password
1 parent 0371f4c commit 2101dfb

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

pyrogram/client/methods/password/change_cloud_password.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ def change_cloud_password(self,
4242
Raises:
4343
:class:`Error <pyrogram.Error>` in case of a Telegram RPC error.
4444
"""
45-
raise NotImplementedError
45+
raise NotImplementedError(
46+
"Cloud password methods are currently not available. "
47+
"See https://github.com/pyrogram/pyrogram/issues/178"
48+
)
4649

4750
# r = self.send(functions.account.GetPassword())
4851
#

pyrogram/client/methods/password/enable_cloud_password.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ def enable_cloud_password(self,
4444
Raises:
4545
:class:`Error <pyrogram.Error>` in case of a Telegram RPC error.
4646
"""
47-
raise NotImplementedError
47+
raise NotImplementedError(
48+
"Cloud password methods are currently not available. "
49+
"See https://github.com/pyrogram/pyrogram/issues/178"
50+
)
4851

4952
# r = self.send(functions.account.GetPassword())
5053
#

pyrogram/client/methods/password/remove_cloud_password.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ def remove_cloud_password(self,
3434
Raises:
3535
:class:`Error <pyrogram.Error>` in case of a Telegram RPC error.
3636
"""
37-
raise NotImplementedError
37+
raise NotImplementedError(
38+
"Cloud password methods are currently not available. "
39+
"See https://github.com/pyrogram/pyrogram/issues/178"
40+
)
3841

3942
# r = self.send(functions.account.GetPassword())
4043
#

0 commit comments

Comments
 (0)