SetPassportElement constructor

SetPassportElement(
  1. {required InputPassportElement element,
  2. required String password,
  3. int? extra,
  4. int? clientId}
)

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

Returns PassportElement

Implementation

SetPassportElement