encrypted_credentials_t

struct banana::api::encrypted_credentials_t

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

string_t data

Base64-encoded encrypted JSON-serialized data with unique user’s payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication

string_t hash

Base64-encoded data hash for data authentication

string_t secret

Base64-encoded secret, encrypted with the bot’s public RSA key, required for data decryption