auth.SentCodeTypeEmailCode
- class pyrogram.raw.types.auth.SentCodeTypeEmailCode
The code was sent via the previously configured login email »
Constructor of
SentCodeType.- Details:
Layer:
223ID:
F450F59B
- Parameters:
email_pattern (
str) – Pattern of the emaillength (
int32-bit) – Length of the sent verification codeapple_signin_allowed (
bool, optional) – Whether authorization through Apple ID is allowedgoogle_signin_allowed (
bool, optional) – Whether authorization through Google ID is allowedreset_available_period (
int32-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 (
int32-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_allowed →
true (optional)├── google_signin_allowed →
true (optional)├── email_pattern →
string├── length →
int├── reset_available_period →
int (optional)└── reset_pending_date →
int (optional)Example
SentCodeTypeEmailCode(
email_pattern="text",
length=0,
)