teleproto - v1.229.0
    Preparing search index...

    Function updateTwoFaSettings

    • Changes the 2FA settings of the logged in user. Note that this method may be incredibly slow depending on the prime numbers that must be used during the process to make sure that everything is safe.

      Has no effect if both current and new password are omitted.

      Parameters

      Returns Promise<void>

      Promise

      this method can throw: "PASSWORD_HASH_INVALID" if you entered a wrong password (or set it to undefined). "EMAIL_INVALID" if the entered email is wrong "EMAIL_HASH_EXPIRED" if the user took too long to verify their email