TDLib
Loading...
Searching...
No Matches
encryptedPassportElement Class Referencefinal

Inherits Object.

Description

Contains information about an encrypted Telegram Passport element; for bots only.

Public Member Functions

 encryptedPassportElement ()
 encryptedPassportElement (object_ptr< PassportElementType > &&type_, bytes const &data_, object_ptr< datedFile > &&front_side_, object_ptr< datedFile > &&reverse_side_, object_ptr< datedFile > &&selfie_, array< object_ptr< datedFile > > &&translation_, array< object_ptr< datedFile > > &&files_, string const &value_, string const &hash_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

bytes data_
 Encrypted JSON-encoded data about the user.
array< object_ptr< datedFile > > files_
 List of attached files.
object_ptr< datedFile > front_side_
 The front side of an identity document.
string hash_
 Hash of the entire element.
object_ptr< datedFile > reverse_side_
 The reverse side of an identity document; may be null.
object_ptr< datedFile > selfie_
 Selfie with the document; may be null.
array< object_ptr< datedFile > > translation_
 List of files containing a certified English translation of the document.
object_ptr< PassportElementType > type_
 Type of Telegram Passport element.
string value_
 Unencrypted data, phone number or email address.

Static Public Attributes

static const std::int32_t ID = 2002386193
 Identifier uniquely determining a type of the object.

Constructor & Destructor Documentation

◆ encryptedPassportElement() [1/2]

encryptedPassportElement ( )

Contains information about an encrypted Telegram Passport element; for bots only.

◆ encryptedPassportElement() [2/2]

encryptedPassportElement ( object_ptr< PassportElementType > && type_,
bytes const & data_,
object_ptr< datedFile > && front_side_,
object_ptr< datedFile > && reverse_side_,
object_ptr< datedFile > && selfie_,
array< object_ptr< datedFile > > && translation_,
array< object_ptr< datedFile > > && files_,
string const & value_,
string const & hash_ )

Contains information about an encrypted Telegram Passport element; for bots only.

Parameters
[in]type_Type of Telegram Passport element.
[in]data_Encrypted JSON-encoded data about the user.
[in]front_side_The front side of an identity document.
[in]reverse_side_The reverse side of an identity document; may be null.
[in]selfie_Selfie with the document; may be null.
[in]translation_List of files containing a certified English translation of the document.
[in]files_List of attached files.
[in]value_Unencrypted data, phone number or email address.
[in]hash_Hash of the entire element.

Member Function Documentation

◆ store()

void store ( TlStorerToString & s,
const char * field_name ) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: