libtd-ktx / kotlinx.telegram.coroutines / setPassportElement
setPassportElement
suspend fun TelegramFlow.setPassportElement(element: InputPassportElement?, password: String?): PassportElement
Suspend function, which adds an element to the user’s Telegram Passport. May return an error with a message "PHONE_VERIFICATION_NEEDED" or "EMAIL_VERIFICATION_NEEDED" if the chosen phone number or the chosen email address must be verified first.
Parameters
element - Input Telegram Passport element.
password - Password of the current user.
Return PassportElement This class is an abstract base class.