--- 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| ### 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]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` {"_": "auth.sentCode", "phone_registered": Bool, "type": auth_SentCodeType, "phone_code_hash": "string", "next_type": auth_CodeType, "timeout": int} ``` 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} ```