setPassportDataErrors
Report errors in a user's Telegram Passport elements to prevent resubmission until fixed. Returns success when the error notification is sent.
Instructions
Informs a user that some of the Telegram Passport elements they provided contain errors. The user will not be able to re-submit their Passport to you until the errors are fixed. Returns True on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | Yes | A JSON-serialized array describing the errors. Use the appropriate PassportElementError type based on the error source. | |
| user_id | Yes | Unique identifier of the target user. |