Layer 220
AuthSentCodeTypeEmailCode
The code was sent via the previously configured login email
constructor
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;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| AppleSigninAllowed | flags.0?true | Whether authorization through Apple ID is allowed |
| GoogleSigninAllowed | flags.1?true | Whether authorization through Google ID is allowed |
| EmailPattern | string | Pattern of the email |
| Length | int | Length of the sent verification code |
| ResetAvailablePeriod | flags.3?int | Clients should wait for the specified amount of seconds before allowing the user to invoke auth. reset Login Email (will be 0 for Premium users). |
| ResetPendingDate | flags.4?int | An email reset was already requested, and will occur at the specified date. |
Returns
auth.SentCodeTypeGogram Example
// Creating AuthSentCodeTypeEmailCode constructor obj := &tg.AuthSentCodeTypeEmailCode{ EmailPattern: "...", Length: 0, // Optional fields: // AppleSigninAllowed: true, // GoogleSigninAllowed: true, // ResetAvailablePeriod: 0, // ResetPendingDate: 0, }