Layer 220
SecureValueErrorData
Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes.
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 |
Returns
SecureValueErrorGogram Example
// Creating SecureValueErrorData constructor obj := &tg.SecureValueErrorData{ Type: &tg.SecureValueType{}, DataHash: []byte{}, Field: "...", Text: "...", }