EncryptedCredentials

data class EncryptedCredentials(data: String, hash: String, secret: String) : TelegramModel

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

Constructors

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

Properties

data
Link copied to clipboard
val data: String
Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication
hash
Link copied to clipboard
val hash: String
Base64-encoded data hash for data authentication
secret
Link copied to clipboard
val secret: String
Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption