class EncryptedCredentials

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

Methods

__construct(string $data, string $hash, string $secret)

No description

string
getData()

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

string
getHash()

Base64-encoded data hash for data authentication.

string
getSecret()

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

Details

at line 15
__construct(string $data, string $hash, string $secret)

No description

Parameters

string $data
string $hash
string $secret

at line 25
string getData()

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

Return Value

string

at line 33
string getHash()

Base64-encoded data hash for data authentication.

Return Value

string

at line 41
string getSecret()

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

Return Value

string