Module telegram-bot-lua.methods.passport
passport API methods.
Functions
| api.set_passport_data_errors(user_id, errors) | inform a user that some of the telegram passport elements they provided contain errors. |
Functions
- api.set_passport_data_errors(user_id, errors)
-
inform a user that some of the telegram passport elements they provided contain errors.
Parameters:
- user_id number identifier of the user
- errors string|table JSON-serialised array of PassportElementError or a table thereof
Returns:
- table|false true on success, or false on failure
- string|table the HTTP status or error details