MadelineProtoDocs/old_docs/API_docs_v105/constructors/auth_authorizationSignUpRequired.md

39 lines
1.2 KiB
Markdown
Raw Normal View History

2019-09-13 17:13:55 +02:00
---
title: auth.authorizationSignUpRequired
2019-12-27 17:48:04 +01:00
description: An account with this phone number doesn't exist on telegram: the user has to [enter basic information and sign up](https://core.telegram.org/api/auth)
2019-09-13 17:13:55 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: auth.authorizationSignUpRequired
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
An account with this phone number doesn't exist on telegram: the user has to [enter basic information and sign up](https://core.telegram.org/api/auth)
2019-09-13 17:13:55 +02:00
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
2019-12-27 17:48:04 +01:00
|terms\_of\_service|[help\_TermsOfService](../types/help_TermsOfService.md) | Optional|Telegram's terms of service: the user must read and accept the terms of service before signing up to telegram|
2019-09-13 17:13:55 +02:00
### Type: [auth\_Authorization](../types/auth_Authorization.md)
### Example:
```php
$auth_authorizationSignUpRequired = ['_' => 'auth.authorizationSignUpRequired', 'terms_of_service' => help_TermsOfService];
```
Or, if you're into Lua:
```lua
auth_authorizationSignUpRequired={_='auth.authorizationSignUpRequired', terms_of_service=help_TermsOfService}
```