set_secure_value_errors()

async Client.set_secure_value_errors()

Notify the user that the sent passport data contains some errors.

Usable by Users Bots
Parameters:
  • user_id (int | str) – Unique identifier (int) or username (str) of the target user.

  • errors (List of SecureValueError) – Errors in passport data.

Returns:

bool – True on success.

Example

await app.set_secure_value_errors(user_id, errors)