Layer 220
constructor
inputSecureValue#db21d0a7 flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?InputSecureFile reverse_side:flags.2?InputSecureFile selfie:flags.3?InputSecureFile translation:flags.6?Vector<InputSecureFile> files:flags.4?Vector<InputSecureFile> plain_data:flags.5?SecurePlainData = InputSecureValue;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Type SecureValueType Secure passport value type
Data flags.0?SecureData Encrypted Telegram Passport element data
FrontSide flags.1?InputSecureFile Encrypted passport file with the front side of the document
ReverseSide flags.2?InputSecureFile Encrypted passport file with the reverse side of the document
Selfie flags.3?InputSecureFile Encrypted passport file with a selfie of the user holding the document
Translation Vector<InputSecureFile> Array of encrypted passport files with translated versions of the provided documents
Files Vector<InputSecureFile> Array of encrypted passport files with photos the of the documents
PlainData flags.5?SecurePlainData Plaintext verified passport data

Gogram Example

// Creating InputSecureValue constructor
obj := &tg.InputSecureValue{
    Type: &tg.SecureValueType{},

    // Optional fields:
    // Data: &tg.SecureData{},
    // FrontSide: &tg.InputSecureFileUploaded{},
    // ReverseSide: &tg.InputSecureFileUploaded{},
    // Selfie: &tg.InputSecureFileUploaded{},
    // ... more optional fields
}