Class TdApi.SetPassword

Enclosing class:
TdApi

public static class TdApi.SetPassword
extends TdApi.Function<TdApi.PasswordState>
Changes the password for the current user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed.

Returns PasswordState

  • Field Details

    • oldPassword

      public String oldPassword
      Previous password of the user.
    • newPassword

      public String newPassword
      New password of the user; may be empty to remove the password.
    • newHint

      public String newHint
      New password hint; may be empty.
    • setRecoveryEmailAddress

      public boolean setRecoveryEmailAddress
      Pass true if the recovery email address must be changed.
    • newRecoveryEmailAddress

      public String newRecoveryEmailAddress
      New recovery email address; may be empty.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
      Constant Field Values
  • Constructor Details

    • SetPassword

      public SetPassword()
      Changes the password for the current user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed.

      Returns PasswordState

    • SetPassword

      public SetPassword​(String oldPassword, String newPassword, String newHint, boolean setRecoveryEmailAddress, String newRecoveryEmailAddress)
      Changes the password for the current user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed.

      Returns PasswordState

      Parameters:
      oldPassword - String Previous password of the user.
      newPassword - String New password of the user; may be empty to remove the password.
      newHint - String New password hint; may be empty.
      setRecoveryEmailAddress - boolean Pass true if the recovery email address must be changed.
      newRecoveryEmailAddress - String New recovery email address; may be empty.
    • SetPassword

      public SetPassword​(DataInput input) throws IOException
      Throws:
      IOException
  • Method Details