Show a meaningful error and hint to read more when using cloud password

This commit is contained in:
Dan 2018-12-23 01:09:20 +01:00
parent 0371f4ce8b
commit 2101dfb8db
3 changed files with 12 additions and 3 deletions

View File

@ -42,7 +42,10 @@ class ChangeCloudPassword(BaseClient):
Raises:
:class:`Error <pyrogram.Error>` in case of a Telegram RPC error.
"""
raise NotImplementedError
raise NotImplementedError(
"Cloud password methods are currently not available. "
"See https://github.com/pyrogram/pyrogram/issues/178"
)
# r = self.send(functions.account.GetPassword())
#

View File

@ -44,7 +44,10 @@ class EnableCloudPassword(BaseClient):
Raises:
:class:`Error <pyrogram.Error>` in case of a Telegram RPC error.
"""
raise NotImplementedError
raise NotImplementedError(
"Cloud password methods are currently not available. "
"See https://github.com/pyrogram/pyrogram/issues/178"
)
# r = self.send(functions.account.GetPassword())
#

View File

@ -34,7 +34,10 @@ class RemoveCloudPassword(BaseClient):
Raises:
:class:`Error <pyrogram.Error>` in case of a Telegram RPC error.
"""
raise NotImplementedError
raise NotImplementedError(
"Cloud password methods are currently not available. "
"See https://github.com/pyrogram/pyrogram/issues/178"
)
# r = self.send(functions.account.GetPassword())
#