OptionalcurrentOptionalemailRecovery email. Requires emailCodeCallback and onEmailCodeError.
OptionalemailGets the code length, returns the code sent to email. Called again until the code is accepted.
OptionalhintHint shown when Telegram asks for the password.
OptionalisOnly verify currentPassword, change nothing.
OptionalnewNew password. Empty removes 2FA.
OptionalonCalled when a code from emailCodeCallback is rejected.
Current password. Required while 2FA is on; passed alone, removes 2FA.