account.saveSecureValue #
Securely save Telegram Passport document, for more info see the passport docs »¶
Layer 223
secureValue#187fa0ca flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?SecureFile reverse_side:flags.2?SecureFile selfie:flags.3?SecureFile translation:flags.6?Vector<SecureFile> files:flags.4?Vector<SecureFile> plain_data:flags.5?SecurePlainData hash:bytes = SecureValue;
---functions---
account.saveSecureValue#899fe31d value:InputSecureValue secure_secret_id:long = SecureValue; Parameters #
| Name | Type | Description |
|---|---|---|
| value | InputSecureValue | Secure value, for more info see the passport docs » |
| secure_secret_id | long | Passport secret hash, for more info see the passport docs » |
Result #
Only users can use this method #
Possible errors #
| Code | Type | Description |
|---|---|---|
| 400 | PASSWORD_REQUIRED | A 2FA password must be configured to use Telegram Passport. |
| 400 | SECURE_SECRET_REQUIRED | A secure secret is required. |
Related pages #
Telegram Passport Encryption Details #
How Telegram Passport data is stored and encrypted end-to-end.¶
Telegram Passport Manual #
Telegram Passport, a unified authorization method for services that require personal identification.¶
Two-factor authentication #
How to login to a user's account if they have enabled 2FA, how to change password.¶