account.VerifyEmail

class pyrogram.raw.functions.account.VerifyEmail

Verify an email address.

Details:
  • Layer: 227

  • ID: 32DA4CF

Parameters:
Returns:

account.EmailVerified

TL Schema

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

= account.EmailVerified

Parameter Tree

VerifyEmail
├── purpose → EmailVerifyPurpose
│ │ ├── phone_number → string
│ │ └── phone_code_hash → string
└── verification → EmailVerification
│ └── code → string
│ └── token → string
└── token → string

Example

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