pub async fn set_passport_element(
    element: InputPassportElement,
    password: String,
    client_id: i32
) -> Result<PassportElement, Error>
Expand description

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

Arguments

  • element - Input Telegram Passport element
  • password - The 2-step verification password of the current user
  • client_id - The client id to send the request to