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:

  1. table|false true on success, or false on failure
  2. string|table the HTTP status or error details
generated by LDoc 1.5.0 Last updated 2026-04-07 21:37:15