Layer 220
SecureCredentialsEncrypted
Encrypted credentials required to decrypt telegram passport data.
constructor
secureCredentialsEncrypted#33f0ea47 data:bytes hash:bytes secret:bytes = SecureCredentialsEncrypted;
Parameters
| Name | Type | Description |
|---|---|---|
| Data | bytes | Encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for Encrypted Passport Element decryption and authentication, as described in decrypting data |
| Hash | bytes | Data hash for data authentication as described in decrypting data |
| Secret | bytes | Secret, encrypted with the bot's public RSA key, required for data decryption as described in decrypting data |
Returns
SecureCredentialsEncryptedGogram Example
// Creating SecureCredentialsEncrypted constructor obj := &tg.SecureCredentialsEncrypted{ Data: []byte{}, Hash: []byte{}, Secret: []byte{}, }