Class TdApi.SetPassword

  • Enclosing class:
    TdApi

    public static class TdApi.SetPassword
    extends TdApi.Function
    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 Detail

      • 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
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SetPassword

        public SetPassword()
        Default constructor for a function, which 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)
        Creates a function, which 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 - Previous password of the user.
        newPassword - New password of the user; may be empty to remove the password.
        newHint - New password hint; may be empty.
        setRecoveryEmailAddress - Pass true if the recovery email address must be changed.
        newRecoveryEmailAddress - New recovery email address; may be empty.