account.saveSecureValue

Securely save Telegram Passport document, for more info see the passport docs »

 Method schema is available as of layer 81. Switch »

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

SecureValue

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

Telegram Passport Manual

Two-factor authentication

How to login to a user's account if they have enabled 2FA, how to change password.