account.SendVerifyEmailCode

class pyrogram.raw.functions.account.SendVerifyEmailCode

Send an email verification code.

Details:
  • Layer: 223

  • ID: 98E037BB

Parameters:
  • purpose (EmailVerifyPurpose) – Verification purpose.

  • email (str) – The email where to send the code.

Returns:

account.SentEmailCode

TL Schema

account.sendVerifyEmailCode#98e037bb
purpose:EmailVerifyPurpose
email:string

= account.SentEmailCode

Parameter Tree

SendVerifyEmailCode
├── purposeEmailVerifyPurpose
│ │ ├── phone_numberstring
│ │ └── phone_code_hashstring
└── emailstring

Example

await app.invoke(
    SendVerifyEmailCode(
        purpose=EmailVerifyPurposeLoginSetup(
            phone_number="text",
            phone_code_hash="text"
        ),
        email="text",
    )
)