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.
currentPassword
newPassword
The telegram client instance
see TwoFaParams
PASSWORD_HASH_INVALID on a wrong password, EMAIL_INVALID on a bad email, EMAIL_HASH_EXPIRED if the email was not confirmed in time.
PASSWORD_HASH_INVALID
EMAIL_INVALID
EMAIL_HASH_EXPIRED
Changes the 2FA settings of the logged in user. May be slow: SRP math over large primes. Throws if both
currentPasswordandnewPasswordare missing.