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
hasPasswordTrue, if a 2-step verification password is set
passwordHintHint for the password; may be empty
hasRecoveryEmailAddressTrue, if a recovery email is set
hasPassportDataTrue, if some Telegram Passport elements were saved
recoveryEmailAddressCodeInfoInformation about the recovery email address to which the confirmation email was sent; may be null
View on GitHub
Install in Dash
PasswordState Structure Reference