java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.EncryptedPassportElement
- Enclosing class:
- TdApi
Contains information about an encrypted Telegram Passport element;
for bots only.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.byte[]
Encrypted JSON-encoded data about the user.List of attached files.The front side of an identity document.Hash of the entire element.The reverse side of an identity document; may be null.Selfie with the document; may be null.List of files containing a certified English translation of the document.Type of Telegram Passport element.Unencrypted data, phone number or email address. -
Constructor Summary
ConstructorDescriptionContains 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.Contains information about an encrypted Telegram Passport element; for bots only. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns an identifier uniquely determining type of the object.int
hashCode()
void
serialize
(DataOutput output) Serialize the TDLib classMethods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
type
Type of Telegram Passport element. -
data
public byte[] dataEncrypted 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. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
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.
-
EncryptedPassportElement
Contains information about an encrypted Telegram Passport element; for bots only.- 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 classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-
serialize
Serialize the TDLib class- Specified by:
serialize
in classTdApi.Object
- Parameters:
output
- output data stream- Throws:
IOException
- the serialization failed
-
equals
-
hashCode
public int hashCode()
-