tgbot-cpp
Loading...
Searching...
No Matches
TgBot::EncryptedCredentials Class Reference

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< EncryptedCredentialsPtr
 

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.
 

Detailed Description

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.

Member Typedef Documentation

◆ Ptr

Definition at line 18 of file EncryptedCredentials.h.

Member Data Documentation

◆ data

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.

◆ hash

std::string TgBot::EncryptedCredentials::hash

Base64-encoded data hash for data authentication.

Definition at line 28 of file EncryptedCredentials.h.

◆ secret

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.


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