tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
Describes data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes. https://core.telegram.org/bots/api#encryptedcredentials. More...
#include <EncryptedCredentials.hpp>
Public Member Functions | |
EncryptedCredentials ()=default | |
EncryptedCredentials (const nl::json &json) | |
nl::json | toJson () const |
Serializes this object to JSON. More... | |
void | fromJson (const nl::json &json) |
Deserializes this object from JSON. More... | |
Public Attributes | |
std::string | data |
Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication. More... | |
std::string | hash |
Base64-encoded data hash for data authentication. More... | |
std::string | secret |
Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption. More... | |
Describes data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes. https://core.telegram.org/bots/api#encryptedcredentials.
Definition at line 8 of file EncryptedCredentials.hpp.
|
default |
|
inlineexplicit |
Definition at line 10 of file EncryptedCredentials.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 36 of file EncryptedCredentials.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 27 of file EncryptedCredentials.hpp.
std::string tgbotxx::EncryptedCredentials::data |
Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication.
Definition at line 16 of file EncryptedCredentials.hpp.
std::string tgbotxx::EncryptedCredentials::hash |
Base64-encoded data hash for data authentication.
Definition at line 19 of file EncryptedCredentials.hpp.
std::string tgbotxx::EncryptedCredentials::secret |
Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption.
Definition at line 22 of file EncryptedCredentials.hpp.