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

Describes data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<EncryptedCredentials>

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

Describes data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.

Definition at line 3380 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 3381 of file Types.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 3387 of file Types.h.

◆ hash

std::string TgBot::EncryptedCredentials::hash { }

Base64-encoded data hash for data authentication.

Definition at line 3392 of file Types.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 3398 of file Types.h.


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