Skip to content

setLoginEmailAddress

Function · TDLib 1.8.67 · d1085f9c

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, or the user received suggestedActionSetLoginEmailAddress and isLoginEmailAddressRequired succeeds. The change will not be applied until the new login email address is confirmed with checkLoginEmailAddressCode. To use Apple ID/Google ID instead of an email address, call checkLoginEmailAddressCode directly

setLoginEmailAddress(
  new_login_email_address: string
) → EmailAddressAuthenticationCodeInfo

new_login_email_address

string

New login email address