tgbot-cpp
|
Contains data required for decrypting and authenticating EncryptedPassportElement. See https://core.telegram.org/passport#receiving-information for a complete description of the data decryption and authentication. More...
#include <EncryptedCredentials.h>
Public Types | |
typedef std::shared_ptr< EncryptedCredentials > | Ptr |
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. | |
std::string | hash |
Base64-encoded data hash for data authentication. | |
std::string | secret |
Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption. | |
Contains data required for decrypting and authenticating EncryptedPassportElement. See https://core.telegram.org/passport#receiving-information for a complete description of the data decryption and authentication.
Definition at line 15 of file EncryptedCredentials.h.
typedef std::shared_ptr<EncryptedCredentials> TgBot::EncryptedCredentials::Ptr |
Definition at line 18 of file EncryptedCredentials.h.
std::string TgBot::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 23 of file EncryptedCredentials.h.
std::string TgBot::EncryptedCredentials::hash |
Base64-encoded data hash for data authentication.
Definition at line 28 of file EncryptedCredentials.h.
std::string TgBot::EncryptedCredentials::secret |
Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption.
Definition at line 33 of file EncryptedCredentials.h.