tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::PassportElementErrorTranslationFiles Struct Reference

Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation change. https://core.telegram.org/bots/api#passportelementerrortranslationfiles. More...

#include <PassportElementError.hpp>

Inheritance diagram for tgbotxx::PassportElementErrorTranslationFiles:
tgbotxx::PassportElementError

Public Member Functions

 PassportElementErrorTranslationFiles ()
 
 PassportElementErrorTranslationFiles (const nl::json &json)
 
nl::json toJson () const override
 Serializes this object to JSON. More...
 
void fromJson (const nl::json &json) override
 Deserializes this object from JSON. More...
 
- Public Member Functions inherited from tgbotxx::PassportElementError
 PassportElementError ()=default
 
 PassportElementError (const nl::json &json)
 

Public Attributes

std::vector< std::string > fileHashes
 List of base64-encoded file hashes. More...
 
std::string message
 Error message. More...
 
- Public Attributes inherited from tgbotxx::PassportElementError
std::string source
 Error source. More...
 
std::string type
 The section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport” More...
 

Detailed Description

Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation change. https://core.telegram.org/bots/api#passportelementerrortranslationfiles.

Definition at line 277 of file PassportElementError.hpp.

Constructor & Destructor Documentation

◆ PassportElementErrorTranslationFiles() [1/2]

tgbotxx::PassportElementErrorTranslationFiles::PassportElementErrorTranslationFiles ( )
inline

Definition at line 278 of file PassportElementError.hpp.

◆ PassportElementErrorTranslationFiles() [2/2]

tgbotxx::PassportElementErrorTranslationFiles::PassportElementErrorTranslationFiles ( const nl::json &  json)
inlineexplicit

Definition at line 281 of file PassportElementError.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::PassportElementErrorTranslationFiles::fromJson ( const nl::json &  json)
inlineoverridevirtual

Deserializes this object from JSON.

Reimplemented from tgbotxx::PassportElementError.

Definition at line 298 of file PassportElementError.hpp.

◆ toJson()

nl::json tgbotxx::PassportElementErrorTranslationFiles::toJson ( ) const
inlineoverridevirtual

Serializes this object to JSON.

Returns
JSON representation of this object

Reimplemented from tgbotxx::PassportElementError.

Definition at line 292 of file PassportElementError.hpp.

Member Data Documentation

◆ fileHashes

std::vector<std::string> tgbotxx::PassportElementErrorTranslationFiles::fileHashes

List of base64-encoded file hashes.

Definition at line 287 of file PassportElementError.hpp.

◆ message

std::string tgbotxx::PassportElementErrorTranslationFiles::message

Error message.

Definition at line 290 of file PassportElementError.hpp.


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