Skip to main content

users.setSecureValueErrors

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). Use this if the data submitted by the user doesn't satisfy the standards your service requires for any reason. For example, if a birthday date seems invalid, a submitted document is blurry, a scan shows evidence of tampering, etc. Supply some details in the error message to make sure the user knows how to correct the issues.

func (c *Client) UsersSetSecureValueErrors(ctx context.Context, request *UsersSetSecureValueErrorsRequest) (bool, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.UsersSetSecureValueErrors(ctx, &tg.UsersSetSecureValueErrorsRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters

NameTypeRequiredDescription
IDInputUserClassyesThe user
Errors[]SecureValueErrorClassyesErrors

Returns

bool

Possible errors

CodeTypeDescription
400DATA_HASH_SIZE_INVALIDThe size of the specified secureValueErrorData.data_hash is invalid.
400HASH_SIZE_INVALIDThe size of the specified secureValueError.hash is invalid.
400USER_BOT_REQUIREDThis method can only be called by a bot.
400USER_ID_INVALIDThe provided user ID is invalid.

References