account.sendVerifyEmailCode #

Send an email verification code.

Layer 223

account.sentEmailCode#811f854f email_pattern:string length:int = account.SentEmailCode;
---functions---
account.sendVerifyEmailCode#98e037bb purpose:EmailVerifyPurpose email:string = account.SentEmailCode;

Parameters #

NameTypeDescription
purposeEmailVerifyPurposeVerification purpose.
emailstringThe email where to send the code.

Result #

account.SentEmailCode

Only users can use this method #

This method can be invoked over an unauthenticated connection » #

Possible errors #

CodeTypeDescription
400EMAIL_INVALIDThe specified email is invalid.
400EMAIL_NOT_ALLOWEDThe specified email cannot be used to complete the operation.
400EMAIL_NOT_SETUPIn order to change the login email with emailVerifyPurposeLoginChange, an existing login email must already be set using emailVerifyPurposeLoginSetup.
400PHONE_CODE_EMPTYphone_code is missing.
400PHONE_HASH_EXPIREDAn invalid or expired phone_code_hash was provided.
400PHONE_NUMBER_INVALIDThe phone number is invalid.