setPassportElementErrors - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.coroutines / setPassportElementErrors

setPassportElementErrors

suspend fun TelegramFlow.setPassportElementErrors(userId: Int, errors: Array<InputPassportElementError>?): Unit

Suspend function, which informs the user that some of the elements in their Telegram Passport contain errors; for bots only. The user will not be able to resend the elements, until the errors are fixed.

Parameters

userId - User identifier.

errors - The errors.