EncryptedCredentials

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

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

Parameters

data

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

hash

Base64-encoded data hash for data authentication

secret

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

Constructors

EncryptedCredentials
Link copied to clipboard
common
fun EncryptedCredentials(data: String, hash: String, secret: String)
Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication

Functions

component1
Link copied to clipboard
common
operator fun component1(): String
component2
Link copied to clipboard
common
operator fun component2(): String
component3
Link copied to clipboard
common
operator fun component3(): String
copy
Link copied to clipboard
common
fun copy(data: String, hash: String, secret: String): EncryptedCredentials
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

data
Link copied to clipboard
common
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
common
val hash: String
Base64-encoded data hash for data authentication
secret
Link copied to clipboard
common
val secret: String
Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption