SetPassword

public struct SetPassword : Codable, Equatable, TDFunction

Changes the password for 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

  • Undocumented

    Declaration

    Swift

    public typealias Result = PasswordState
  • Previous password of the user

    Declaration

    Swift

    public let oldPassword: String
  • New password of the user; may be empty to remove the password

    Declaration

    Swift

    public let newPassword: String
  • New password hint; may be empty

    Declaration

    Swift

    public let newHint: String
  • Pass true if the recovery email address should be changed

    Declaration

    Swift

    public let setRecoveryEmailAddress: Bool
  • New recovery email address; may be empty

    Declaration

    Swift

    public let newRecoveryEmailAddress: String
  • Changes the password for 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

    Declaration

    Swift

    public init(oldPassword: String, newPassword: String, newHint: String, setRecoveryEmailAddress: Bool, newRecoveryEmailAddress: String)

    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 should be changed

    newRecoveryEmailAddress

    New recovery email address; may be empty