PasswordState
public struct PasswordState : Codable, Equatable, FunctionResult
Represents the current state of 2-step verification
-
True, if a 2-step verification password is set
Declaration
Swift
public let hasPassword: Bool
-
Hint for the password; may be empty
Declaration
Swift
public let passwordHint: String
-
True, if a recovery email is set
Declaration
Swift
public let hasRecoveryEmailAddress: Bool
-
True, if some Telegram Passport elements were saved
Declaration
Swift
public let hasPassportData: Bool
-
Information about the recovery email address to which the confirmation email was sent; may be null
Declaration
Swift
public let recoveryEmailAddressCodeInfo: EmailAddressAuthenticationCodeInfo?
-
init(hasPassword:passwordHint:hasRecoveryEmailAddress:hasPassportData:recoveryEmailAddressCodeInfo:)
Represents the current state of 2-step verification
Declaration
Swift
public init(hasPassword: Bool, passwordHint: String, hasRecoveryEmailAddress: Bool, hasPassportData: Bool, recoveryEmailAddressCodeInfo: EmailAddressAuthenticationCodeInfo?)
Parameters
hasPassword
True, if a 2-step verification password is set
passwordHint
Hint for the password; may be empty
hasRecoveryEmailAddress
True, if a recovery email is set
hasPassportData
True, if some Telegram Passport elements were saved
recoveryEmailAddressCodeInfo
Information about the recovery email address to which the confirmation email was sent; may be null