Skip to content

setPassportElement

Function · TDLib 1.8.67 · d1085f9c

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

setPassportElement(
  element: InputPassportElement,
  password: string
) → PassportElement

element

InputPassportElement

Input Telegram Passport element

password

string

The 2-step verification password of the current user