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:

ValueError – In case there is no cloud password to change.:

Example

# Change password only
await app.change_cloud_password("current_password", "new_password")

# Change password and hint
await app.change_cloud_password("current_password", "new_password", new_hint="hint")