Layer 220
constructor
secureValueErrorData#e8a40bd9 type:SecureValueType data_hash:bytes field:string text:string = SecureValueError;

Parameters

Name Type Description
Type SecureValueType The section of the user's Telegram Passport which has the error, one of secure Value Type Personal Details, secure Value Type Passport, secure Value Type Driver License, secure Value Type Identity Card, secure Value Type Internal Passport, secure Value Type Address
DataHash bytes Data hash
Field string Name of the data field which has the error
Text string Error message

Gogram Example

// Creating SecureValueErrorData constructor
obj := &tg.SecureValueErrorData{
    Type: &tg.SecureValueType{},
    DataHash: []byte{},
    Field: "...",
    Text: "...",
}