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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user_id": "<user_id>",
"errors": "<errors>"
},
"name": "setPassportDataErrors"
}
}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. |