Package org.drinkless.tdlib
Class TdApi.EncryptedPassportElement
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.EncryptedPassportElement
-
- Enclosing class:
- TdApi
public static class TdApi.EncryptedPassportElement extends TdApi.Object
Contains information about an encrypted Telegram Passport element; for bots only.
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.byte[]dataEncrypted JSON-encoded data about the user.TdApi.DatedFile[]filesList of attached files.TdApi.DatedFilefrontSideThe front side of an identity document.StringhashHash of the entire element.TdApi.DatedFilereverseSideThe reverse side of an identity document; may be null.TdApi.DatedFileselfieSelfie with the document; may be null.TdApi.DatedFile[]translationList of files containing a certified English translation of the document.TdApi.PassportElementTypetypeType of Telegram Passport element.StringvalueUnencrypted data, phone number or email address.
-
Constructor Summary
Constructors Constructor Description EncryptedPassportElement()Contains information about an encrypted Telegram Passport element; for bots only.EncryptedPassportElement(TdApi.PassportElementType type, byte[] data, TdApi.DatedFile frontSide, TdApi.DatedFile reverseSide, TdApi.DatedFile selfie, TdApi.DatedFile[] translation, TdApi.DatedFile[] files, String value, String hash)Contains information about an encrypted Telegram Passport element; for bots only.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
type
public TdApi.PassportElementType type
Type of Telegram Passport element.
-
data
public byte[] data
Encrypted JSON-encoded data about the user.
-
frontSide
public TdApi.DatedFile frontSide
The front side of an identity document.
-
reverseSide
public TdApi.DatedFile reverseSide
The reverse side of an identity document; may be null.
-
selfie
public TdApi.DatedFile selfie
Selfie with the document; may be null.
-
translation
public TdApi.DatedFile[] translation
List of files containing a certified English translation of the document.
-
files
public TdApi.DatedFile[] files
List of attached files.
-
value
public String value
Unencrypted data, phone number or email address.
-
hash
public String hash
Hash of the entire element.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EncryptedPassportElement
public EncryptedPassportElement()
Contains information about an encrypted Telegram Passport element; for bots only.
-
EncryptedPassportElement
public EncryptedPassportElement(TdApi.PassportElementType type, byte[] data, TdApi.DatedFile frontSide, TdApi.DatedFile reverseSide, TdApi.DatedFile selfie, TdApi.DatedFile[] translation, TdApi.DatedFile[] files, String value, String hash)
Contains information about an encrypted Telegram Passport element; for bots only.- Parameters:
type- Type of Telegram Passport element.data- Encrypted JSON-encoded data about the user.frontSide- The front side of an identity document.reverseSide- The reverse side of an identity document; may be null.selfie- Selfie with the document; may be null.translation- List of files containing a certified English translation of the document.files- List of attached files.value- Unencrypted data, phone number or email address.hash- Hash of the entire element.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-