MadelineProtoDocs/docs/API_docs/constructors/auth_authorizationSignUpRequired.md

39 lines
1.2 KiB
Markdown
Raw Normal View History

2019-08-15 20:25:16 +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-08-15 20:25:16 +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-08-15 20:30:02 +02:00
2019-08-15 20:25:16 +02:00
### Attributes:
2019-08-15 20:30:02 +02:00
| 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-08-15 20:25:16 +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}
```