Layer 220
method Users
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
SecureSecretId long Passport secret hash, for more info see the passport docs

Returns

SecureValue

Possible Errors

Code Type Description
400 PASSWORD_REQUIRED A 2 FA password must be configured to use Telegram Passport.
400 SECURE_SECRET_REQUIRED A secure secret is required.

Gogram Example

// AccountSaveSecureValue - positional arguments
result, err := client.AccountSaveSecureValue(&tg.InputSecureValue{}, int64(0))
if err != nil {
    // handle error
}
// result is *tg.SecureValue