Module tdlight.api

Class TdApi.SetPassportElement

Enclosing class:
TdApi

public static final class TdApi.SetPassportElement extends TdApi.Function<TdApi.PassportElement>
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

  • Field Details

  • Constructor Details

    • SetPassportElement

      public SetPassportElement()
      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

    • SetPassportElement

      public SetPassportElement(TdApi.InputPassportElement element, String password)
      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

      Parameters:
      element - InputPassportElement Input Telegram Passport element.
      password - String Password of the current user.
    • SetPassportElement

      public SetPassportElement(DataInput input) throws IOException
      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

      Throws:
      IOException
  • Method Details