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 #

NameTypeDescription
valueInputSecureValueSecure value, for more info see the passport docs »
secure_secret_idlongPassport secret hash, for more info see the passport docs »

Result #

SecureValue

Only users can use this method #

Possible errors #

CodeTypeDescription
400PASSWORD_REQUIREDA 2FA password must be configured to use Telegram Passport.
400SECURE_SECRET_REQUIREDA secure secret is required.

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.