Layer 220
SecureValue
Secure value
constructor
secureValue#187fa0ca flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?SecureFile reverse_side:flags.2?SecureFile selfie:flags.3?SecureFile translation:flags.6?Vector<SecureFile> files:flags.4?Vector<SecureFile> plain_data:flags.5?SecurePlainData hash:bytes = SecureValue;
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?SecureFile | Encrypted passport file with the front side of the document |
| ReverseSide | flags.2?SecureFile | Encrypted passport file with the reverse side of the document |
| Selfie | flags.3?SecureFile | Encrypted passport file with a selfie of the user holding the document |
| Translation | Vector<SecureFile> | Array of encrypted passport files with translated versions of the provided documents |
| Files | Vector<SecureFile> | Array of encrypted passport files with photos the of the documents |
| PlainData | flags.5?SecurePlainData | Plaintext verified passport data |
| Hash | bytes | Data hash |
Returns
SecureValueGogram Example
// Creating SecureValue constructor obj := &tg.SecureValue{ Type: &tg.SecureValueType{}, Hash: []byte{}, // Optional fields: // Data: &tg.SecureData{}, // FrontSide: &tg.SecureFile{}, // ReverseSide: &tg.SecureFile{}, // Selfie: &tg.SecureFile{}, // ... more optional fields }