account.VerifyEmail

class pyrogram.raw.functions.account.VerifyEmail

Verify an email address.

Details:
  • Layer: 223

  • ID: 32DA4CF

Parameters:
Returns:

account.EmailVerified

TL Schema

account.verifyEmail#32da4cf
purpose:EmailVerifyPurpose
verification:EmailVerification

= account.EmailVerified

Parameter Tree

VerifyEmail
├── purposeEmailVerifyPurpose
│ │ ├── phone_numberstring
│ │ └── phone_code_hashstring
└── verificationEmailVerification
│ └── codestring
│ └── tokenstring
└── tokenstring

Example

await app.invoke(
    VerifyEmail(
        purpose=EmailVerifyPurposeLoginSetup(
            phone_number="text",
            phone_code_hash="text"
        ),
        verification=EmailVerificationCode(code="text"),
    )
)