View Source ExTDLib.Method.SetLoginEmailAddress (ExTDLib v0.0.4)

Changes the login email address of the user. The email address can be changed only if the current user already has login email and passwordState.login_email_address_pattern is non-empty. The change will not be applied until the new login email address is confirmed with checkLoginEmailAddressCode. To use Apple ID/Google ID instead of a email address, call checkLoginEmailAddressCode directly. Returns object_ptr<EmailAddressAuthenticationCodeInfo>.

NameTypeDescription
new_login_email_addressstringNew login email address.

More details on telegram's documentation.