Skip to main content

SecureValueType

This is a boxed type (a TL class): the Go interface tg.SecureValueTypeClass, implemented by the constructors below. A value of this type is one of them — switch on the concrete type to handle it.

switch v := value.(type) {
case *tg.SecureValueTypeAddress: // secureValueTypeAddress
case *tg.SecureValueTypeBankStatement: // secureValueTypeBankStatement
case *tg.SecureValueTypeDriverLicense: // secureValueTypeDriverLicense
case *tg.SecureValueTypeEmail: // secureValueTypeEmail
case *tg.SecureValueTypeIdentityCard: // secureValueTypeIdentityCard
case *tg.SecureValueTypeInternalPassport: // secureValueTypeInternalPassport
case *tg.SecureValueTypePassport: // secureValueTypePassport
case *tg.SecureValueTypePassportRegistration: // secureValueTypePassportRegistration
case *tg.SecureValueTypePersonalDetails: // secureValueTypePersonalDetails
case *tg.SecureValueTypePhone: // secureValueTypePhone
case *tg.SecureValueTypeRentalAgreement: // secureValueTypeRentalAgreement
case *tg.SecureValueTypeTemporaryRegistration: // secureValueTypeTemporaryRegistration
case *tg.SecureValueTypeUtilityBill: // secureValueTypeUtilityBill
}

Constructors

ConstructorTL name
SecureValueTypeAddresssecureValueTypeAddress
SecureValueTypeBankStatementsecureValueTypeBankStatement
SecureValueTypeDriverLicensesecureValueTypeDriverLicense
SecureValueTypeEmailsecureValueTypeEmail
SecureValueTypeIdentityCardsecureValueTypeIdentityCard
SecureValueTypeInternalPassportsecureValueTypeInternalPassport
SecureValueTypePassportsecureValueTypePassport
SecureValueTypePassportRegistrationsecureValueTypePassportRegistration
SecureValueTypePersonalDetailssecureValueTypePersonalDetails
SecureValueTypePhonesecureValueTypePhone
SecureValueTypeRentalAgreementsecureValueTypeRentalAgreement
SecureValueTypeTemporaryRegistrationsecureValueTypeTemporaryRegistration
SecureValueTypeUtilityBillsecureValueTypeUtilityBill

References