List of all members | Public Fields | Public Instance Methods | Static Public Attributes
encryptedPassportElement Class Referencefinal

Inherits Object.

Description

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

Public Fields

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

Public Instance Methods

 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 Instance Methods inherited from TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ encryptedPassportElement() [1/2]

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.

Method 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: