EncryptedCredentials

@Serializable
data class EncryptedCredentials(val data: String, val hash: String, val secret: String)

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

Api reference

Constructors

Link copied to clipboard
constructor(data: String, hash: String, secret: String)

Properties

Link copied to clipboard

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

Link copied to clipboard

Base64-encoded data hash for data authentication

Link copied to clipboard

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