tgbot-cpp
Loading...
Searching...
No Matches
EncryptedCredentials.h
Go to the documentation of this file.
1#ifndef TGBOT_CPP_ENCRYPTEDCREDENTIALS_H
2#define TGBOT_CPP_ENCRYPTEDCREDENTIALS_H
3
4#include <memory>
5#include <string>
6
7namespace TgBot {
8
16
17public:
18 typedef std::shared_ptr<EncryptedCredentials> Ptr;
19
23 std::string data;
24
28 std::string hash;
29
33 std::string secret;
34};
35}
36
37#endif //TGBOT_CPP_ENCRYPTEDCREDENTIALS_H
Contains data required for decrypting and authenticating EncryptedPassportElement....
std::string data
Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets req...
std::string hash
Base64-encoded data hash for data authentication.
std::shared_ptr< EncryptedCredentials > Ptr
std::string secret
Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption.
Definition Api.h:39