change_cloud_password()¶
- Client.change_cloud_password()
Change your Two-Step Verification password (Cloud Password) with a new one.
Usable by Users Bots
- Parameters:
current_password (
str) – Your current password.new_password (
str) – Your new password.new_hint (
str, optional) – A new password hint.
- Returns:
bool– True on success.- Raises:
raises ValueError: In case there is no cloud password to change.
Example
await app.change_cloud_password("current_password", "new_password") await app.change_cloud_password("current_password", "new_password", new_hint="hint")