Module tdlight.api

Class TdApi.InputIdentityDocument

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.InputIdentityDocument
Enclosing class:
TdApi

public static final class TdApi.InputIdentityDocument extends TdApi.Object
An identity document to be saved to Telegram Passport.
  • Field Details

    • number

      public String number
      Document number; 1-24 characters.
    • expirationDate

      public TdApi.Date expirationDate
      Document expiration date; pass null if not applicable.
    • frontSide

      public TdApi.InputFile frontSide
      Front side of the document.
    • reverseSide

      public TdApi.InputFile reverseSide
      Reverse side of the document; only for driver license and identity card; pass null otherwise.
    • selfie

      public TdApi.InputFile selfie
      Selfie with the document; pass null if unavailable.
    • translation

      public TdApi.InputFile[] translation
      List of files containing a certified English translation of the document.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • InputIdentityDocument

      public InputIdentityDocument()
      An identity document to be saved to Telegram Passport.
    • InputIdentityDocument

      public InputIdentityDocument(String number, TdApi.Date expirationDate, TdApi.InputFile frontSide, TdApi.InputFile reverseSide, TdApi.InputFile selfie, TdApi.InputFile[] translation)
      An identity document to be saved to Telegram Passport.
      Parameters:
      number - Document number; 1-24 characters.
      expirationDate - Document expiration date; pass null if not applicable.
      frontSide - Front side of the document.
      reverseSide - Reverse side of the document; only for driver license and identity card; pass null otherwise.
      selfie - Selfie with the document; pass null if unavailable.
      translation - List of files containing a certified English translation of the document.
    • InputIdentityDocument

      public InputIdentityDocument(DataInput input) throws IOException
      An identity document to be saved to Telegram Passport.
      Parameters:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object