Layer 220
UsersSetSecureValueErrors
Notify the user that the sent passport data contains some errors The user will not be able to re-submit their Passport data to you until the errors are fixed (the contents of the field for which you returned the error must change).
method
Bots
users.setSecureValueErrors#90c894b5 id:InputUser errors:Vector<SecureValueError> = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Id | InputUser | The user |
| Errors | Vector<SecureValueError> | Errors |
Returns
BoolPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | DATA_HASH_SIZE_INVALID | The size of the specified secure Value Error Data. data_hash is invalid. |
| 400 | HASH_SIZE_INVALID | The size of the specified secure Value Error. hash is invalid. |
| 400 | USER_BOT_REQUIRED | This method can only be called by a bot. |
| 400 | USER_ID_INVALID | The provided user ID is invalid. |
Gogram Example
// UsersSetSecureValueErrors - positional arguments result, err := client.UsersSetSecureValueErrors(&tg.InputUserSelf{}, []tg.SecureValueError{&tg.SecureValueError{}}) if err != nil { // handle error } // result is *tg.Bool