Module tdlight.api

Class TdApi.SetRecoveryEmailAddress

Enclosing class:
TdApi

public static final class TdApi.SetRecoveryEmailAddress extends TdApi.Function<TdApi.PasswordState>
Changes the 2-step verification recovery email address of the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed. If newRecoveryEmailAddress is the same as the email address that is currently set up, this call succeeds immediately and aborts all other requests waiting for an email confirmation. Returns PasswordState
  • Field Details

    • password

      public String password
      The 2-step verification password of the current user.
    • newRecoveryEmailAddress

      public String newRecoveryEmailAddress
      New recovery email address.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • SetRecoveryEmailAddress

      public SetRecoveryEmailAddress()
      Changes the 2-step verification recovery email address of the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed. If newRecoveryEmailAddress is the same as the email address that is currently set up, this call succeeds immediately and aborts all other requests waiting for an email confirmation. Returns PasswordState
    • SetRecoveryEmailAddress

      public SetRecoveryEmailAddress(String password, String newRecoveryEmailAddress)
      Changes the 2-step verification recovery email address of the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed. If newRecoveryEmailAddress is the same as the email address that is currently set up, this call succeeds immediately and aborts all other requests waiting for an email confirmation. Returns PasswordState
      Parameters:
      password - String The 2-step verification password of the current user.
      newRecoveryEmailAddress - String New recovery email address.
    • SetRecoveryEmailAddress

      public SetRecoveryEmailAddress(DataInput input) throws IOException
      Changes the 2-step verification recovery email address of the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed. If newRecoveryEmailAddress is the same as the email address that is currently set up, this call succeeds immediately and aborts all other requests waiting for an email confirmation. Returns PasswordState
      Throws:
      IOException
  • Method Details