set_passport_element


Description:

public async PassportElement set_passport_element (InputPassportElement element, string password) throws TDLibError

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

The 2-step verification password of the current user