SetRecoveryEmailAddress

public struct SetRecoveryEmailAddress : Codable, Equatable, TDFunction

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 new_recovery_email_address 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

  • Undocumented

    Declaration

    Swift

    public typealias Result = PasswordState
  • Password of the current user

    Declaration

    Swift

    public let password: String
  • New recovery email address

    Declaration

    Swift

    public let newRecoveryEmailAddress: String
  • 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 new_recovery_email_address 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

    Declaration

    Swift

    public init(password: String, newRecoveryEmailAddress: String)

    Parameters

    password

    Password of the current user

    newRecoveryEmailAddress

    New recovery email address