telegram api method · layer 229 · #032da4cf

account.verifyEmail

usable by users

Verify an email address.

definition

account.verifyEmail#32da4cf purpose:EmailVerifyPurpose verification:EmailVerification = account.EmailVerified;

parameters

nametypedescription
purposeEmailVerifyPurposeVerification purpose
verificationEmailVerificationEmail verification code or token

returns

account.EmailVerified

errors (7)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400CODE_INVALIDCode invalid.
400EMAIL_INVALIDThe specified email is invalid.
400EMAIL_NOT_ALLOWEDThe specified email cannot be used to complete the operation.
400EMAIL_VERIFY_EXPIREDThe verification email has expired.
400PHONE_CODE_EXPIREDThe phone code you provided has expired.
400PHONE_NUMBER_INVALIDThe phone number is invalid.

history

present in layers 80–229 · constructor id changed 1×

idlayers
#ecba39db80–144
#032da4cf145–229