auth.SentCodeTypeEmailCode

class pyrogram.raw.types.auth.SentCodeTypeEmailCode

The code was sent via the previously configured login email »

Constructor of SentCodeType.

Details:
  • Layer: 223

  • ID: F450F59B

Parameters:
  • email_pattern (str) – Pattern of the email

  • length (int 32-bit) – Length of the sent verification code

  • apple_signin_allowed (bool, optional) – Whether authorization through Apple ID is allowed

  • google_signin_allowed (bool, optional) – Whether authorization through Google ID is allowed

  • reset_available_period (int 32-bit, optional) – Clients should wait for the specified amount of seconds before allowing the user to invoke auth.resetLoginEmail (will be 0 for Premium users).

  • reset_pending_date (int 32-bit, optional) – An email reset was already requested, and will occur at the specified date.

TL Schema

auth.sentCodeTypeEmailCode#f450f59b
flags:#
apple_signin_allowed:flags.0?true
google_signin_allowed:flags.1?true
email_pattern:string
length:int
reset_available_period:flags.3?int
reset_pending_date:flags.4?int

= auth.SentCodeType

Parameter Tree

SentCodeTypeEmailCode
├── apple_signin_allowedtrue (optional)
├── google_signin_allowedtrue (optional)
├── email_patternstring
├── lengthint
├── reset_available_periodint (optional)
└── reset_pending_dateint (optional)

Example

SentCodeTypeEmailCode(
    email_pattern="text",
    length=0,
)