set_passport_data_errors#

template<class Connector>
api_result<boolean_t, Connector&&> set_passport_data_errors(Connector &&connector, set_passport_data_errors_args_t args)#
template<class Connector>
api_result<boolean_t, Connector&&> call(Connector &&connector, set_passport_data_errors_args_t args)#

connector is any object satisfying connector concept.

Informs a user that some of the Telegram Passport elements they provided contains errors. The user will not be able to re-submit their Passport to you until the errors are fixed (the contents of the field for which you returned the error must change). Returns True on success.

struct set_passport_data_errors_args_t#

Arguments that should be passed to set_passport_data_errors().

integer_t user_id#

User identifier

array_t<passport_element_error_t> errors#

A JSON-serialized array describing the errors