mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 21:07:59 +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:
|
Raises:
|
||||||
:class:`Error <pyrogram.Error>` in case of a Telegram RPC error.
|
: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())
|
# r = self.send(functions.account.GetPassword())
|
||||||
#
|
#
|
||||||
|
@ -44,7 +44,10 @@ class EnableCloudPassword(BaseClient):
|
|||||||
Raises:
|
Raises:
|
||||||
:class:`Error <pyrogram.Error>` in case of a Telegram RPC error.
|
: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())
|
# r = self.send(functions.account.GetPassword())
|
||||||
#
|
#
|
||||||
|
@ -34,7 +34,10 @@ class RemoveCloudPassword(BaseClient):
|
|||||||
Raises:
|
Raises:
|
||||||
:class:`Error <pyrogram.Error>` in case of a Telegram RPC error.
|
: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())
|
# r = self.send(functions.account.GetPassword())
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user