MadelineProtoDocs/docs/API_docs/constructors/auth.authorizationSignUpReq...

40 lines
1.3 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
2019-12-27 18:46:25 +01:00
redirect_from: /API_docs/constructors/auth_authorizationSignUpRequired.html
2019-08-15 20:25:16 +02:00
---
# 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 18:25:37 +01:00
|terms\_of\_service|[help.TermsOfService](../constructors/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
2019-12-27 18:25:37 +01:00
### Type: [auth.Authorization](../types/auth.Authorization.md)
2019-08-15 20:25:16 +02:00
### Example:
```php
2019-12-27 18:25:37 +01:00
$auth.authorizationSignUpRequired = ['_' => 'auth.authorizationSignUpRequired', 'terms_of_service' => help.TermsOfService];
2019-08-15 20:25:16 +02:00
```
Or, if you're into Lua:
```lua
2019-12-27 18:25:37 +01:00
auth.authorizationSignUpRequired={_='auth.authorizationSignUpRequired', terms_of_service=help.TermsOfService}
2019-08-15 20:25:16 +02:00
```