mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 20:59:29 +00:00
Show a meaningful error and hint to read more when using cloud password
This commit is contained in:
parent
0371f4ce8b
commit
2101dfb8db
@ -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())
|
||||
#
|
||||
|
@ -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())
|
||||
#
|
||||
|
@ -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())
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user