class

Tourmaline::EncryptedCredentials

Inherits JSON::Serializable / Reference / Object

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

Constructors

new(data : String, hash : String, secret : String)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

data

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

Source
data=(data : String)

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

Source
hash

Base64-encoded data hash for data authentication

Source
hash=(hash : String)

Base64-encoded data hash for data authentication

Source
secret

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

Source
secret=(secret : String)

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

Source