2018-06-29 13:59:08 +02:00
|
|
|
---
|
|
|
|
title: account.authorizationForm
|
2019-12-27 17:48:04 +01:00
|
|
|
description: [Telegram Passport](https://core.telegram.org/passport) authorization form
|
2018-06-29 13:59:08 +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/account_authorizationForm.html
|
2018-06-29 13:59:08 +02:00
|
|
|
---
|
|
|
|
# Constructor: account.authorizationForm
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-27 17:48:04 +01:00
|
|
|
[Telegram Passport](https://core.telegram.org/passport) authorization form
|
2018-12-26 02:56:50 +01:00
|
|
|
|
2018-06-29 13:59:08 +02:00
|
|
|
### Attributes:
|
|
|
|
|
2018-12-26 02:56:50 +01:00
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|---------------|----------|-------------|
|
2020-06-16 17:50:25 +02:00
|
|
|
|required\_types|Array of [SecureRequiredType](../types/SecureRequiredType.md) | Yes|Required [Telegram Passport](https://core.telegram.org/passport) documents|
|
|
|
|
|values|Array of [SecureValue](../types/SecureValue.md) | Yes|Already submitted [Telegram Passport](https://core.telegram.org/passport) documents|
|
|
|
|
|errors|Array of [SecureValueError](../types/SecureValueError.md) | Yes|[Telegram Passport](https://core.telegram.org/passport) errors|
|
|
|
|
|users|Array of [User](../types/User.md) | Yes|Info about the bot to which the form will be submitted|
|
2019-12-27 17:48:04 +01:00
|
|
|
|privacy\_policy\_url|[string](../types/string.md) | Optional|URL of the service's privacy policy|
|
2018-06-29 13:59:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-27 18:25:37 +01:00
|
|
|
### Type: [account.AuthorizationForm](../types/account.AuthorizationForm.md)
|
2018-06-29 13:59:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
2018-10-17 17:10:50 +02:00
|
|
|
```php
|
2019-12-27 18:25:37 +01:00
|
|
|
$account.authorizationForm = ['_' => 'account.authorizationForm', 'required_types' => [SecureRequiredType, SecureRequiredType], 'values' => [SecureValue, SecureValue], 'errors' => [SecureValueError, SecureValueError], 'users' => [User, User], 'privacy_policy_url' => 'string'];
|
2018-06-29 13:59:08 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
|
2018-10-17 17:10:50 +02:00
|
|
|
Or, if you're into Lua:
|
2018-06-29 13:59:08 +02:00
|
|
|
|
2018-10-17 17:10:50 +02:00
|
|
|
```lua
|
2019-12-27 18:25:37 +01:00
|
|
|
account.authorizationForm={_='account.authorizationForm', required_types={SecureRequiredType}, values={SecureValue}, errors={SecureValueError}, users={User}, privacy_policy_url='string'}
|
2018-06-29 13:59:08 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|