MadelineProtoDocs/old_docs/API_docs_v91/constructors/auth_sentCode.md

44 lines
1.3 KiB
Markdown
Raw Normal View History

2019-03-08 13:49:23 +01:00
---
title: auth.sentCode
description: Sent code
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: auth.sentCode
[Back to constructors index](index.md)
Sent code
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|phone\_registered|[Bool](../types/Bool.md) | Optional|Phone registered?|
|type|[auth\_SentCodeType](../types/auth_SentCodeType.md) | Yes|Type|
|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash|
|next\_type|[auth\_CodeType](../types/auth_CodeType.md) | Optional|Next type|
|timeout|[int](../types/int.md) | Optional|Timeout|
|terms\_of\_service|[help\_TermsOfService](../types/help_TermsOfService.md) | Optional|Terms of service|
### Type: [auth\_SentCode](../types/auth_SentCode.md)
### Example:
```php
$auth_sentCode = ['_' => 'auth.sentCode', 'phone_registered' => Bool, 'type' => auth_SentCodeType, 'phone_code_hash' => 'string', 'next_type' => auth_CodeType, 'timeout' => int, 'terms_of_service' => help_TermsOfService];
```
Or, if you're into Lua:
```lua
auth_sentCode={_='auth.sentCode', phone_registered=Bool, type=auth_SentCodeType, phone_code_hash='string', next_type=auth_CodeType, timeout=int, terms_of_service=help_TermsOfService}
```