teleproto - v1.234.0
    Preparing search index...

    Function updateTwoFaSettings

    • Changes the 2FA settings of the logged in user. May be slow: SRP math over large primes. Throws if both currentPassword and newPassword are missing.

      Parameters

      Returns Promise<void>

      PASSWORD_HASH_INVALID on a wrong password, EMAIL_INVALID on a bad email, EMAIL_HASH_EXPIRED if the email was not confirmed in time.