Layer 224
SecureCredentialsEncryptedObj
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 SecureCredentialsEncryptedObj constructor obj := &tg.SecureCredentialsEncryptedObj{ Data: []byte{0x01, 0x02, 0x03}, Hash: []byte{0x01, 0x02, 0x03}, Secret: []byte{0x01, 0x02, 0x03}, }