Update docs

This commit is contained in:
Daniil Gentili 2020-03-06 12:24:14 +01:00
parent a587825695
commit 75d0676136
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
1495 changed files with 62728 additions and 256 deletions

View File

@ -1,40 +0,0 @@
---
title: accessPointRule
description: Access point rule
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: accessPointRule
[Back to constructors index](index.md)
Access point rule
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|phone\_prefix\_rules|[string](../types/string.md) | Yes|Phone prefix rules|
|dc\_id|[int](../types/int.md) | Yes|DC ID|
|ips|Array of [IpPort](../types/IpPort.md) | Yes|Ips|
### Type: [AccessPointRule](../types/AccessPointRule.md)
### Example:
```php
$accessPointRule = ['_' => 'accessPointRule', 'phone_prefix_rules' => 'string', 'dc_id' => int, 'ips' => [IpPort, IpPort]];
```
Or, if you're into Lua:
```lua
accessPointRule={_='accessPointRule', phone_prefix_rules='string', dc_id=int, ips={IpPort}}
```

View File

@ -0,0 +1,38 @@
---
title: account.contentSettings
description: account.contentSettings attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/account_contentSettings.html
---
# Constructor: account.contentSettings
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|sensitive\_enabled|[Bool](../types/Bool.md) | Optional|
|sensitive\_can\_change|[Bool](../types/Bool.md) | Optional|
### Type: [account.ContentSettings](../types/account.ContentSettings.md)
### Example:
```php
$account.contentSettings = ['_' => 'account.contentSettings', 'sensitive_enabled' => Bool, 'sensitive_can_change' => Bool];
```
Or, if you're into Lua:
```lua
account.contentSettings={_='account.contentSettings', sensitive_enabled=Bool, sensitive_can_change=Bool}
```

View File

@ -0,0 +1,38 @@
---
title: auth.loginToken
description: auth.loginToken attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/auth_loginToken.html
---
# Constructor: auth.loginToken
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|expires|[int](../types/int.md) | Yes|
|token|[bytes](../types/bytes.md) | Yes|
### Type: [auth.LoginToken](../types/auth.LoginToken.md)
### Example:
```php
$auth.loginToken = ['_' => 'auth.loginToken', 'expires' => int, 'token' => 'bytes'];
```
Or, if you're into Lua:
```lua
auth.loginToken={_='auth.loginToken', expires=int, token='bytes'}
```

View File

@ -0,0 +1,38 @@
---
title: auth.loginTokenMigrateTo
description: auth.loginTokenMigrateTo attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/auth_loginTokenMigrateTo.html
---
# Constructor: auth.loginTokenMigrateTo
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|dc\_id|[int](../types/int.md) | Yes|
|token|[bytes](../types/bytes.md) | Yes|
### Type: [auth.LoginToken](../types/auth.LoginToken.md)
### Example:
```php
$auth.loginTokenMigrateTo = ['_' => 'auth.loginTokenMigrateTo', 'dc_id' => int, 'token' => 'bytes'];
```
Or, if you're into Lua:
```lua
auth.loginTokenMigrateTo={_='auth.loginTokenMigrateTo', dc_id=int, token='bytes'}
```

View File

@ -0,0 +1,37 @@
---
title: auth.loginTokenSuccess
description: auth.loginTokenSuccess attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/auth_loginTokenSuccess.html
---
# Constructor: auth.loginTokenSuccess
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|authorization|[auth.Authorization](../constructors/auth.Authorization.md) | Yes|
### Type: [auth.LoginToken](../types/auth.LoginToken.md)
### Example:
```php
$auth.loginTokenSuccess = ['_' => 'auth.loginTokenSuccess', 'authorization' => auth.Authorization];
```
Or, if you're into Lua:
```lua
auth.loginTokenSuccess={_='auth.loginTokenSuccess', authorization=auth.Authorization}
```

View File

@ -21,6 +21,7 @@ Autodownload settings
|photo\_size\_max|[int](../types/int.md) | Yes|Maximum size of photos to preload|
|video\_size\_max|[int](../types/int.md) | Yes|Maximum size of videos to preload|
|file\_size\_max|[int](../types/int.md) | Yes|Maximum size of other files to preload|
|video\_upload\_maxbitrate|[int](../types/int.md) | Yes||
@ -30,14 +31,14 @@ Autodownload settings
### Example:
```php
$autoDownloadSettings = ['_' => 'autoDownloadSettings', 'disabled' => Bool, 'video_preload_large' => Bool, 'audio_preload_next' => Bool, 'phonecalls_less_data' => Bool, 'photo_size_max' => int, 'video_size_max' => int, 'file_size_max' => int];
$autoDownloadSettings = ['_' => 'autoDownloadSettings', 'disabled' => Bool, 'video_preload_large' => Bool, 'audio_preload_next' => Bool, 'phonecalls_less_data' => Bool, 'photo_size_max' => int, 'video_size_max' => int, 'file_size_max' => int, 'video_upload_maxbitrate' => int];
```
Or, if you're into Lua:
```lua
autoDownloadSettings={_='autoDownloadSettings', disabled=Bool, video_preload_large=Bool, audio_preload_next=Bool, phonecalls_less_data=Bool, photo_size_max=int, video_size_max=int, file_size_max=int}
autoDownloadSettings={_='autoDownloadSettings', disabled=Bool, video_preload_large=Bool, audio_preload_next=Bool, phonecalls_less_data=Bool, photo_size_max=int, video_size_max=int, file_size_max=int, video_upload_maxbitrate=int}
```

View File

@ -0,0 +1,31 @@
---
title: baseThemeArctic
description: baseThemeArctic attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: baseThemeArctic
[Back to constructors index](index.md)
### Type: [BaseTheme](../types/BaseTheme.md)
### Example:
```php
$baseThemeArctic = ['_' => 'baseThemeArctic'];
```
Or, if you're into Lua:
```lua
baseThemeArctic={_='baseThemeArctic'}
```

View File

@ -0,0 +1,31 @@
---
title: baseThemeClassic
description: baseThemeClassic attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: baseThemeClassic
[Back to constructors index](index.md)
### Type: [BaseTheme](../types/BaseTheme.md)
### Example:
```php
$baseThemeClassic = ['_' => 'baseThemeClassic'];
```
Or, if you're into Lua:
```lua
baseThemeClassic={_='baseThemeClassic'}
```

View File

@ -0,0 +1,31 @@
---
title: baseThemeDay
description: baseThemeDay attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: baseThemeDay
[Back to constructors index](index.md)
### Type: [BaseTheme](../types/BaseTheme.md)
### Example:
```php
$baseThemeDay = ['_' => 'baseThemeDay'];
```
Or, if you're into Lua:
```lua
baseThemeDay={_='baseThemeDay'}
```

View File

@ -0,0 +1,31 @@
---
title: baseThemeNight
description: baseThemeNight attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: baseThemeNight
[Back to constructors index](index.md)
### Type: [BaseTheme](../types/BaseTheme.md)
### Example:
```php
$baseThemeNight = ['_' => 'baseThemeNight'];
```
Or, if you're into Lua:
```lua
baseThemeNight={_='baseThemeNight'}
```

View File

@ -0,0 +1,31 @@
---
title: baseThemeTinted
description: baseThemeTinted attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: baseThemeTinted
[Back to constructors index](index.md)
### Type: [BaseTheme](../types/BaseTheme.md)
### Example:
```php
$baseThemeTinted = ['_' => 'baseThemeTinted'];
```
Or, if you're into Lua:
```lua
baseThemeTinted={_='baseThemeTinted'}
```

View File

@ -1,41 +0,0 @@
---
title: help.configSimple
description: Config simple
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/help_configSimple.html
---
# Constructor: help.configSimple
[Back to constructors index](index.md)
Config simple
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|date|[int](../types/int.md) | Yes|Date|
|expires|[int](../types/int.md) | Yes|Expires|
|rules|Array of [AccessPointRule](../types/AccessPointRule.md) | Yes|Rules|
### Type: [help.ConfigSimple](../types/help.ConfigSimple.md)
### Example:
```php
$help.configSimple = ['_' => 'help.configSimple', 'date' => int, 'expires' => int, 'rules' => [AccessPointRule, AccessPointRule]];
```
Or, if you're into Lua:
```lua
help.configSimple={_='help.configSimple', date=int, expires=int, rules={AccessPointRule}}
```

View File

@ -6,9 +6,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
# Constructors
[Back to API documentation index](..)
***
<br><br>[$accessPointRule](../constructors/accessPointRule.md) = \['phone_prefix_rules' => [string](../types/string.md), 'dc_id' => [int](../types/int.md), 'ips' => \[[IpPort](../types/IpPort.md)\], \];<a name="accessPointRule"></a>
***
<br><br>[$account.authorizationForm](../constructors/account.authorizationForm.md) = \['required_types' => \[[SecureRequiredType](../types/SecureRequiredType.md)\], 'values' => \[[SecureValue](../types/SecureValue.md)\], 'errors' => \[[SecureValueError](../types/SecureValueError.md)\], 'users' => \[[User](../types/User.md)\], 'privacy_policy_url' => [string](../types/string.md), \];<a name="account.authorizationForm"></a>
@ -18,6 +15,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$account.autoDownloadSettings](../constructors/account.autoDownloadSettings.md) = \['low' => [AutoDownloadSettings](../types/AutoDownloadSettings.md), 'medium' => [AutoDownloadSettings](../types/AutoDownloadSettings.md), 'high' => [AutoDownloadSettings](../types/AutoDownloadSettings.md), \];<a name="account.autoDownloadSettings"></a>
***
<br><br>[$account.contentSettings](../constructors/account.contentSettings.md) = \['sensitive_enabled' => [Bool](../types/Bool.md), 'sensitive_can_change' => [Bool](../types/Bool.md), \];<a name="account.contentSettings"></a>
***
<br><br>[$account.password](../constructors/account.password.md) = \['has_recovery' => [Bool](../types/Bool.md), 'has_secure_values' => [Bool](../types/Bool.md), 'has_password' => [Bool](../types/Bool.md), 'current_algo' => [PasswordKdfAlgo](../types/PasswordKdfAlgo.md), 'srp_B' => [bytes](../types/bytes.md), 'srp_id' => [long](../types/long.md), 'hint' => [string](../types/string.md), 'email_unconfirmed_pattern' => [string](../types/string.md), 'new_algo' => [PasswordKdfAlgo](../types/PasswordKdfAlgo.md), 'new_secure_algo' => [SecurePasswordKdfAlgo](../types/SecurePasswordKdfAlgo.md), 'secure_random' => [bytes](../types/bytes.md), \];<a name="account.password"></a>
@ -75,6 +75,15 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$auth.exportedAuthorization](../constructors/auth.exportedAuthorization.md) = \['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \];<a name="auth.exportedAuthorization"></a>
***
<br><br>[$auth.loginToken](../constructors/auth.loginToken.md) = \['expires' => [int](../types/int.md), 'token' => [bytes](../types/bytes.md), \];<a name="auth.loginToken"></a>
***
<br><br>[$auth.loginTokenMigrateTo](../constructors/auth.loginTokenMigrateTo.md) = \['dc_id' => [int](../types/int.md), 'token' => [bytes](../types/bytes.md), \];<a name="auth.loginTokenMigrateTo"></a>
***
<br><br>[$auth.loginTokenSuccess](../constructors/auth.loginTokenSuccess.md) = \['authorization' => [auth.Authorization](../types/auth.Authorization.md), \];<a name="auth.loginTokenSuccess"></a>
***
<br><br>[$auth.passwordRecovery](../constructors/auth.passwordRecovery.md) = \['email_pattern' => [string](../types/string.md), \];<a name="auth.passwordRecovery"></a>
@ -97,7 +106,22 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$authorization](../constructors/authorization.md) = \['current' => [Bool](../types/Bool.md), 'official_app' => [Bool](../types/Bool.md), 'password_pending' => [Bool](../types/Bool.md), 'hash' => [long](../types/long.md), 'device_model' => [string](../types/string.md), 'platform' => [string](../types/string.md), 'system_version' => [string](../types/string.md), 'api_id' => [int](../types/int.md), 'app_name' => [string](../types/string.md), 'app_version' => [string](../types/string.md), 'date_created' => [int](../types/int.md), 'date_active' => [int](../types/int.md), 'ip' => [string](../types/string.md), 'country' => [string](../types/string.md), 'region' => [string](../types/string.md), \];<a name="authorization"></a>
***
<br><br>[$autoDownloadSettings](../constructors/autoDownloadSettings.md) = \['disabled' => [Bool](../types/Bool.md), 'video_preload_large' => [Bool](../types/Bool.md), 'audio_preload_next' => [Bool](../types/Bool.md), 'phonecalls_less_data' => [Bool](../types/Bool.md), 'photo_size_max' => [int](../types/int.md), 'video_size_max' => [int](../types/int.md), 'file_size_max' => [int](../types/int.md), \];<a name="autoDownloadSettings"></a>
<br><br>[$autoDownloadSettings](../constructors/autoDownloadSettings.md) = \['disabled' => [Bool](../types/Bool.md), 'video_preload_large' => [Bool](../types/Bool.md), 'audio_preload_next' => [Bool](../types/Bool.md), 'phonecalls_less_data' => [Bool](../types/Bool.md), 'photo_size_max' => [int](../types/int.md), 'video_size_max' => [int](../types/int.md), 'file_size_max' => [int](../types/int.md), 'video_upload_maxbitrate' => [int](../types/int.md), \];<a name="autoDownloadSettings"></a>
***
<br><br>[$baseThemeArctic](../constructors/baseThemeArctic.md) = \[\];<a name="baseThemeArctic"></a>
***
<br><br>[$baseThemeClassic](../constructors/baseThemeClassic.md) = \[\];<a name="baseThemeClassic"></a>
***
<br><br>[$baseThemeDay](../constructors/baseThemeDay.md) = \[\];<a name="baseThemeDay"></a>
***
<br><br>[$baseThemeNight](../constructors/baseThemeNight.md) = \[\];<a name="baseThemeNight"></a>
***
<br><br>[$baseThemeTinted](../constructors/baseThemeTinted.md) = \[\];<a name="baseThemeTinted"></a>
***
<br><br>[$boolFalse](../constructors/boolFalse.md) = \[\];<a name="boolFalse"></a>
@ -591,9 +615,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$help.appUpdate](../constructors/help.appUpdate.md) = \['can_not_skip' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'version' => [string](../types/string.md), 'text' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'document' => [Document](../types/Document.md), 'url' => [string](../types/string.md), \];<a name="help.appUpdate"></a>
***
<br><br>[$help.configSimple](../constructors/help.configSimple.md) = \['date' => [int](../types/int.md), 'expires' => [int](../types/int.md), 'rules' => \[[AccessPointRule](../types/AccessPointRule.md)\], \];<a name="help.configSimple"></a>
***
<br><br>[$help.deepLinkInfo](../constructors/help.deepLinkInfo.md) = \['update_app' => [Bool](../types/Bool.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \];<a name="help.deepLinkInfo"></a>
@ -808,7 +829,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$inputMediaPhotoExternal](../constructors/inputMediaPhotoExternal.md) = \['url' => [string](../types/string.md), 'ttl_seconds' => [int](../types/int.md), \];<a name="inputMediaPhotoExternal"></a>
***
<br><br>[$inputMediaPoll](../constructors/inputMediaPoll.md) = \['poll' => [Poll](../types/Poll.md), \];<a name="inputMediaPoll"></a>
<br><br>[$inputMediaPoll](../constructors/inputMediaPoll.md) = \['poll' => [Poll](../types/Poll.md), 'correct_answers' => \[[bytes](../types/bytes.md)\], \];<a name="inputMediaPoll"></a>
***
<br><br>[$inputMediaUploadedDocument](../constructors/inputMediaUploadedDocument.md) = \['nosound_video' => [Bool](../types/Bool.md), 'file' => [InputFile](../types/InputFile.md), 'thumb' => [InputFile](../types/InputFile.md), 'mime_type' => [string](../types/string.md), 'attributes' => \[[DocumentAttribute](../types/DocumentAttribute.md)\], 'stickers' => \[[InputDocument](../types/InputDocument.md)\], 'ttl_seconds' => [int](../types/int.md), \];<a name="inputMediaUploadedDocument"></a>
@ -945,6 +966,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$inputPhotoFileLocation](../constructors/inputPhotoFileLocation.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'file_reference' => [bytes](../types/bytes.md), 'thumb_size' => [string](../types/string.md), \];<a name="inputPhotoFileLocation"></a>
***
<br><br>[$inputPhotoLegacyFileLocation](../constructors/inputPhotoLegacyFileLocation.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'file_reference' => [bytes](../types/bytes.md), 'volume_id' => [long](../types/long.md), 'local_id' => [int](../types/int.md), 'secret' => [long](../types/long.md), \];<a name="inputPhotoLegacyFileLocation"></a>
***
<br><br>[$inputPrivacyKeyAddedByPhone](../constructors/inputPrivacyKeyAddedByPhone.md) = \[\];<a name="inputPrivacyKeyAddedByPhone"></a>
@ -1059,6 +1083,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$inputTheme](../constructors/inputTheme.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), \];<a name="inputTheme"></a>
***
<br><br>[$inputThemeSettings](../constructors/inputThemeSettings.md) = \['base_theme' => [BaseTheme](../types/BaseTheme.md), 'accent_color' => [int](../types/int.md), 'message_top_color' => [int](../types/int.md), 'message_bottom_color' => [int](../types/int.md), 'wallpaper' => [InputWallPaper](../types/InputWallPaper.md), 'wallpaper_settings' => [WallPaperSettings](../types/WallPaperSettings.md), \];<a name="inputThemeSettings"></a>
***
<br><br>[$inputThemeSlug](../constructors/inputThemeSlug.md) = \['slug' => [string](../types/string.md), \];<a name="inputThemeSlug"></a>
@ -1077,6 +1104,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$inputWallPaper](../constructors/inputWallPaper.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), \];<a name="inputWallPaper"></a>
***
<br><br>[$inputWallPaperNoFile](../constructors/inputWallPaperNoFile.md) = \[\];<a name="inputWallPaperNoFile"></a>
***
<br><br>[$inputWallPaperSlug](../constructors/inputWallPaperSlug.md) = \['slug' => [string](../types/string.md), \];<a name="inputWallPaperSlug"></a>
@ -1092,12 +1122,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$invoice](../constructors/invoice.md) = \['test' => [Bool](../types/Bool.md), 'name_requested' => [Bool](../types/Bool.md), 'phone_requested' => [Bool](../types/Bool.md), 'email_requested' => [Bool](../types/Bool.md), 'shipping_address_requested' => [Bool](../types/Bool.md), 'flexible' => [Bool](../types/Bool.md), 'phone_to_provider' => [Bool](../types/Bool.md), 'email_to_provider' => [Bool](../types/Bool.md), 'currency' => [string](../types/string.md), 'prices' => \[[LabeledPrice](../types/LabeledPrice.md)\], \];<a name="invoice"></a>
***
<br><br>[$ipPort](../constructors/ipPort.md) = \['ipv4' => [int](../types/int.md), 'port' => [int](../types/int.md), \];<a name="ipPort"></a>
***
<br><br>[$ipPortSecret](../constructors/ipPortSecret.md) = \['ipv4' => [int](../types/int.md), 'port' => [int](../types/int.md), 'secret' => [bytes](../types/bytes.md), \];<a name="ipPortSecret"></a>
***
<br><br>[$jsonArray](../constructors/jsonArray.md) = \['value' => \[[JSONValue](../types/JSONValue.md)\], \];<a name="jsonArray"></a>
@ -1137,6 +1161,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$keyboardButtonRequestPhone](../constructors/keyboardButtonRequestPhone.md) = \['text' => [string](../types/string.md), \];<a name="keyboardButtonRequestPhone"></a>
***
<br><br>[$keyboardButtonRequestPoll](../constructors/keyboardButtonRequestPoll.md) = \['quiz' => [Bool](../types/Bool.md), 'text' => [string](../types/string.md), \];<a name="keyboardButtonRequestPoll"></a>
***
<br><br>[$keyboardButtonRow](../constructors/keyboardButtonRow.md) = \['buttons' => \[[KeyboardButton](../types/KeyboardButton.md)\], \];<a name="keyboardButtonRow"></a>
@ -1341,6 +1368,15 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$messageService](../constructors/messageService.md) = \['out' => [Bool](../types/Bool.md), 'mentioned' => [Bool](../types/Bool.md), 'media_unread' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'post' => [Bool](../types/Bool.md), 'legacy' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'from_id' => [int](../types/int.md), 'to_id' => [Peer](../types/Peer.md), 'reply_to_msg_id' => [int](../types/int.md), 'date' => [int](../types/int.md), 'action' => [MessageAction](../types/MessageAction.md), \];<a name="messageService"></a>
***
<br><br>[$messageUserVote](../constructors/messageUserVote.md) = \['user_id' => [int](../types/int.md), 'option' => [bytes](../types/bytes.md), 'date' => [int](../types/int.md), \];<a name="messageUserVote"></a>
***
<br><br>[$messageUserVoteInputOption](../constructors/messageUserVoteInputOption.md) = \['user_id' => [int](../types/int.md), 'date' => [int](../types/int.md), \];<a name="messageUserVoteInputOption"></a>
***
<br><br>[$messageUserVoteMultiple](../constructors/messageUserVoteMultiple.md) = \['user_id' => [int](../types/int.md), 'options' => \[[bytes](../types/bytes.md)\], 'date' => [int](../types/int.md), \];<a name="messageUserVoteMultiple"></a>
***
<br><br>[$messages.affectedHistory](../constructors/messages.affectedHistory.md) = \['pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), 'offset' => [int](../types/int.md), \];<a name="messages.affectedHistory"></a>
@ -1413,6 +1449,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$messages.highScores](../constructors/messages.highScores.md) = \['scores' => \[[HighScore](../types/HighScore.md)\], 'users' => \[[User](../types/User.md)\], \];<a name="messages.highScores"></a>
***
<br><br>[$messages.inactiveChats](../constructors/messages.inactiveChats.md) = \['dates' => \[[int](../types/int.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \];<a name="messages.inactiveChats"></a>
***
<br><br>[$messages.messageEditData](../constructors/messages.messageEditData.md) = \['caption' => [Bool](../types/Bool.md), \];<a name="messages.messageEditData"></a>
@ -1464,6 +1503,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$messages.stickersNotModified](../constructors/messages.stickersNotModified.md) = \[\];<a name="messages.stickersNotModified"></a>
***
<br><br>[$messages.votesList](../constructors/messages.votesList.md) = \['count' => [int](../types/int.md), 'votes' => \[[MessageUserVote](../types/MessageUserVote.md)\], 'users' => \[[User](../types/User.md)\], 'next_offset' => [string](../types/string.md), \];<a name="messages.votesList"></a>
***
<br><br>[$nearestDc](../constructors/nearestDc.md) = \['country' => [string](../types/string.md), 'this_dc' => [int](../types/int.md), 'nearest_dc' => [int](../types/int.md), \];<a name="nearestDc"></a>
@ -1714,16 +1756,16 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$photos.photosSlice](../constructors/photos.photosSlice.md) = \['count' => [int](../types/int.md), 'photos' => \[[Photo](../types/Photo.md)\], 'users' => \[[User](../types/User.md)\], \];<a name="photos.photosSlice"></a>
***
<br><br>[$poll](../constructors/poll.md) = \['id' => [long](../types/long.md), 'closed' => [Bool](../types/Bool.md), 'question' => [string](../types/string.md), 'answers' => \[[PollAnswer](../types/PollAnswer.md)\], \];<a name="poll"></a>
<br><br>[$poll](../constructors/poll.md) = \['id' => [long](../types/long.md), 'closed' => [Bool](../types/Bool.md), 'public_voters' => [Bool](../types/Bool.md), 'multiple_choice' => [Bool](../types/Bool.md), 'quiz' => [Bool](../types/Bool.md), 'question' => [string](../types/string.md), 'answers' => \[[PollAnswer](../types/PollAnswer.md)\], \];<a name="poll"></a>
***
<br><br>[$pollAnswer](../constructors/pollAnswer.md) = \['text' => [string](../types/string.md), 'option' => [bytes](../types/bytes.md), \];<a name="pollAnswer"></a>
***
<br><br>[$pollAnswerVoters](../constructors/pollAnswerVoters.md) = \['chosen' => [Bool](../types/Bool.md), 'option' => [bytes](../types/bytes.md), 'voters' => [int](../types/int.md), \];<a name="pollAnswerVoters"></a>
<br><br>[$pollAnswerVoters](../constructors/pollAnswerVoters.md) = \['chosen' => [Bool](../types/Bool.md), 'correct' => [Bool](../types/Bool.md), 'option' => [bytes](../types/bytes.md), 'voters' => [int](../types/int.md), \];<a name="pollAnswerVoters"></a>
***
<br><br>[$pollResults](../constructors/pollResults.md) = \['min' => [Bool](../types/Bool.md), 'results' => \[[PollAnswerVoters](../types/PollAnswerVoters.md)\], 'total_voters' => [int](../types/int.md), \];<a name="pollResults"></a>
<br><br>[$pollResults](../constructors/pollResults.md) = \['min' => [Bool](../types/Bool.md), 'results' => \[[PollAnswerVoters](../types/PollAnswerVoters.md)\], 'total_voters' => [int](../types/int.md), 'recent_voters' => \[[int](../types/int.md)\], \];<a name="pollResults"></a>
***
<br><br>[$popularContact](../constructors/popularContact.md) = \['client_id' => [long](../types/long.md), 'importers' => [int](../types/int.md), \];<a name="popularContact"></a>
@ -2062,10 +2104,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$textUrl](../constructors/textUrl.md) = \['text' => [RichText](../types/RichText.md), 'url' => [string](../types/string.md), 'webpage_id' => [long](../types/long.md), \];<a name="textUrl"></a>
***
<br><br>[$theme](../constructors/theme.md) = \['creator' => [Bool](../types/Bool.md), 'default' => [Bool](../types/Bool.md), 'id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'slug' => [string](../types/string.md), 'title' => [string](../types/string.md), 'document' => [Document](../types/Document.md), 'installs_count' => [int](../types/int.md), \];<a name="theme"></a>
<br><br>[$theme](../constructors/theme.md) = \['creator' => [Bool](../types/Bool.md), 'default' => [Bool](../types/Bool.md), 'id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'slug' => [string](../types/string.md), 'title' => [string](../types/string.md), 'document' => [Document](../types/Document.md), 'settings' => [ThemeSettings](../types/ThemeSettings.md), 'installs_count' => [int](../types/int.md), \];<a name="theme"></a>
***
<br><br>[$themeDocumentNotModified](../constructors/themeDocumentNotModified.md) = \[\];<a name="themeDocumentNotModified"></a>
<br><br>[$themeSettings](../constructors/themeSettings.md) = \['base_theme' => [BaseTheme](../types/BaseTheme.md), 'accent_color' => [int](../types/int.md), 'message_top_color' => [int](../types/int.md), 'message_bottom_color' => [int](../types/int.md), 'wallpaper' => [WallPaper](../types/WallPaper.md), \];<a name="themeSettings"></a>
***
<br><br>[$topPeer](../constructors/topPeer.md) = \['peer' => [Peer](../types/Peer.md), 'rating' => [double](../types/double.md), \];<a name="topPeer"></a>
@ -2211,6 +2253,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$updateFolderPeers](../constructors/updateFolderPeers.md) = \['folder_peers' => \[[FolderPeer](../types/FolderPeer.md)\], 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), \];<a name="updateFolderPeers"></a>
***
<br><br>[$updateGeoLiveViewed](../constructors/updateGeoLiveViewed.md) = \['peer' => [Peer](../types/Peer.md), 'msg_id' => [int](../types/int.md), \];<a name="updateGeoLiveViewed"></a>
***
<br><br>[$updateInlineBotCallbackQuery](../constructors/updateInlineBotCallbackQuery.md) = \['query_id' => [long](../types/long.md), 'user_id' => [int](../types/int.md), 'msg_id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'chat_instance' => [long](../types/long.md), 'data' => [bytes](../types/bytes.md), 'game_short_name' => [string](../types/string.md), \];<a name="updateInlineBotCallbackQuery"></a>
@ -2220,12 +2265,18 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$updateLangPackTooLong](../constructors/updateLangPackTooLong.md) = \['lang_code' => [string](../types/string.md), \];<a name="updateLangPackTooLong"></a>
***
<br><br>[$updateLoginToken](../constructors/updateLoginToken.md) = \[\];<a name="updateLoginToken"></a>
***
<br><br>[$updateMessageID](../constructors/updateMessageID.md) = \['id' => [int](../types/int.md), \];<a name="updateMessageID"></a>
***
<br><br>[$updateMessagePoll](../constructors/updateMessagePoll.md) = \['poll_id' => [long](../types/long.md), 'poll' => [Poll](../types/Poll.md), 'results' => [PollResults](../types/PollResults.md), \];<a name="updateMessagePoll"></a>
***
<br><br>[$updateMessagePollVote](../constructors/updateMessagePollVote.md) = \['poll_id' => [long](../types/long.md), 'user_id' => [int](../types/int.md), 'options' => \[[bytes](../types/bytes.md)\], \];<a name="updateMessagePollVote"></a>
***
<br><br>[$updateNewChannelMessage](../constructors/updateNewChannelMessage.md) = \['message' => [Message](../types/Message.md), 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), \];<a name="updateNewChannelMessage"></a>
@ -2428,7 +2479,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$wallPaper](../constructors/wallPaper.md) = \['id' => [long](../types/long.md), 'creator' => [Bool](../types/Bool.md), 'default' => [Bool](../types/Bool.md), 'pattern' => [Bool](../types/Bool.md), 'dark' => [Bool](../types/Bool.md), 'access_hash' => [long](../types/long.md), 'slug' => [string](../types/string.md), 'document' => [Document](../types/Document.md), 'settings' => [WallPaperSettings](../types/WallPaperSettings.md), \];<a name="wallPaper"></a>
***
<br><br>[$wallPaperSettings](../constructors/wallPaperSettings.md) = \['blur' => [Bool](../types/Bool.md), 'motion' => [Bool](../types/Bool.md), 'background_color' => [int](../types/int.md), 'intensity' => [int](../types/int.md), \];<a name="wallPaperSettings"></a>
<br><br>[$wallPaperNoFile](../constructors/wallPaperNoFile.md) = \['default' => [Bool](../types/Bool.md), 'dark' => [Bool](../types/Bool.md), 'settings' => [WallPaperSettings](../types/WallPaperSettings.md), \];<a name="wallPaperNoFile"></a>
***
<br><br>[$wallPaperSettings](../constructors/wallPaperSettings.md) = \['blur' => [Bool](../types/Bool.md), 'motion' => [Bool](../types/Bool.md), 'background_color' => [int](../types/int.md), 'second_background_color' => [int](../types/int.md), 'intensity' => [int](../types/int.md), 'rotation' => [int](../types/int.md), \];<a name="wallPaperSettings"></a>
***
<br><br>[$webAuthorization](../constructors/webAuthorization.md) = \['hash' => [long](../types/long.md), 'bot_id' => [int](../types/int.md), 'domain' => [string](../types/string.md), 'browser' => [string](../types/string.md), 'platform' => [string](../types/string.md), 'date_created' => [int](../types/int.md), 'date_active' => [int](../types/int.md), 'ip' => [string](../types/string.md), 'region' => [string](../types/string.md), \];<a name="webAuthorization"></a>
@ -2440,7 +2494,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$webDocumentNoProxy](../constructors/webDocumentNoProxy.md) = \['url' => [string](../types/string.md), 'size' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), 'attributes' => \[[DocumentAttribute](../types/DocumentAttribute.md)\], \];<a name="webDocumentNoProxy"></a>
***
<br><br>[$webPage](../constructors/webPage.md) = \['id' => [long](../types/long.md), 'url' => [string](../types/string.md), 'display_url' => [string](../types/string.md), 'hash' => [int](../types/int.md), 'type' => [string](../types/string.md), 'site_name' => [string](../types/string.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), 'photo' => [Photo](../types/Photo.md), 'embed_url' => [string](../types/string.md), 'embed_type' => [string](../types/string.md), 'embed_width' => [int](../types/int.md), 'embed_height' => [int](../types/int.md), 'duration' => [int](../types/int.md), 'author' => [string](../types/string.md), 'document' => [Document](../types/Document.md), 'documents' => \[[Document](../types/Document.md)\], 'cached_page' => [Page](../types/Page.md), \];<a name="webPage"></a>
<br><br>[$webPage](../constructors/webPage.md) = \['id' => [long](../types/long.md), 'url' => [string](../types/string.md), 'display_url' => [string](../types/string.md), 'hash' => [int](../types/int.md), 'type' => [string](../types/string.md), 'site_name' => [string](../types/string.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), 'photo' => [Photo](../types/Photo.md), 'embed_url' => [string](../types/string.md), 'embed_type' => [string](../types/string.md), 'embed_width' => [int](../types/int.md), 'embed_height' => [int](../types/int.md), 'duration' => [int](../types/int.md), 'author' => [string](../types/string.md), 'document' => [Document](../types/Document.md), 'cached_page' => [Page](../types/Page.md), 'attributes' => \[[WebPageAttribute](../types/WebPageAttribute.md)\], \];<a name="webPage"></a>
***
<br><br>[$webPageAttributeTheme](../constructors/webPageAttributeTheme.md) = \['documents' => \[[Document](../types/Document.md)\], 'settings' => [ThemeSettings](../types/ThemeSettings.md), \];<a name="webPageAttributeTheme"></a>
***
<br><br>[$webPageEmpty](../constructors/webPageEmpty.md) = \['id' => [long](../types/long.md), \];<a name="webPageEmpty"></a>

View File

@ -15,6 +15,7 @@ A poll
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|poll|[Poll](../types/Poll.md) | Yes|The poll to send|
|correct\_answers|Array of [bytes](../types/bytes.md) | Optional||
@ -24,14 +25,14 @@ A poll
### Example:
```php
$inputMediaPoll = ['_' => 'inputMediaPoll', 'poll' => Poll];
$inputMediaPoll = ['_' => 'inputMediaPoll', 'poll' => Poll, 'correct_answers' => ['bytes', 'bytes']];
```
Or, if you're into Lua:
```lua
inputMediaPoll={_='inputMediaPoll', poll=Poll}
inputMediaPoll={_='inputMediaPoll', poll=Poll, correct_answers={'bytes'}}
```

View File

@ -0,0 +1,43 @@
---
title: inputPhotoLegacyFileLocation
description: Legacy file location
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputPhotoLegacyFileLocation
[Back to constructors index](index.md)
Legacy file location
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|id|[long](../types/long.md) | Yes|Photo ID|
|access\_hash|[long](../types/long.md) | Yes|Access hash|
|file\_reference|[bytes](../types/bytes.md) | Yes|File reference|
|volume\_id|[long](../types/long.md) | Yes|Volume ID|
|local\_id|[int](../types/int.md) | Yes|Local ID|
|secret|[long](../types/long.md) | Yes|Secret|
### Type: [InputFileLocation](../types/InputFileLocation.md)
### Example:
```php
$inputPhotoLegacyFileLocation = ['_' => 'inputPhotoLegacyFileLocation', 'id' => long, 'access_hash' => long, 'file_reference' => 'bytes', 'volume_id' => long, 'local_id' => int, 'secret' => long];
```
Or, if you're into Lua:
```lua
inputPhotoLegacyFileLocation={_='inputPhotoLegacyFileLocation', id=long, access_hash=long, file_reference='bytes', volume_id=long, local_id=int, secret=long}
```

View File

@ -0,0 +1,41 @@
---
title: inputThemeSettings
description: inputThemeSettings attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputThemeSettings
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|base\_theme|[BaseTheme](../types/BaseTheme.md) | Yes|
|accent\_color|[int](../types/int.md) | Yes|
|message\_top\_color|[int](../types/int.md) | Optional|
|message\_bottom\_color|[int](../types/int.md) | Optional|
|wallpaper|[InputWallPaper](../types/InputWallPaper.md) | Optional|
|wallpaper\_settings|[WallPaperSettings](../types/WallPaperSettings.md) | Optional|
### Type: [InputThemeSettings](../types/InputThemeSettings.md)
### Example:
```php
$inputThemeSettings = ['_' => 'inputThemeSettings', 'base_theme' => BaseTheme, 'accent_color' => int, 'message_top_color' => int, 'message_bottom_color' => int, 'wallpaper' => InputWallPaper, 'wallpaper_settings' => WallPaperSettings];
```
Or, if you're into Lua:
```lua
inputThemeSettings={_='inputThemeSettings', base_theme=BaseTheme, accent_color=int, message_top_color=int, message_bottom_color=int, wallpaper=InputWallPaper, wallpaper_settings=WallPaperSettings}
```

View File

@ -0,0 +1,31 @@
---
title: inputWallPaperNoFile
description: inputWallPaperNoFile attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputWallPaperNoFile
[Back to constructors index](index.md)
### Type: [InputWallPaper](../types/InputWallPaper.md)
### Example:
```php
$inputWallPaperNoFile = ['_' => 'inputWallPaperNoFile'];
```
Or, if you're into Lua:
```lua
inputWallPaperNoFile={_='inputWallPaperNoFile'}
```

View File

@ -1,40 +0,0 @@
---
title: ipPortSecret
description: Ip port secret
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: ipPortSecret
[Back to constructors index](index.md)
Ip port secret
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|ipv4|[int](../types/int.md) | Yes|Ipv4|
|port|[int](../types/int.md) | Yes|Port|
|secret|[bytes](../types/bytes.md) | Yes|Secret|
### Type: [IpPort](../types/IpPort.md)
### Example:
```php
$ipPortSecret = ['_' => 'ipPortSecret', 'ipv4' => int, 'port' => int, 'secret' => 'bytes'];
```
Or, if you're into Lua:
```lua
ipPortSecret={_='ipPortSecret', ipv4=int, port=int, secret='bytes'}
```

View File

@ -0,0 +1,37 @@
---
title: keyboardButtonRequestPoll
description: keyboardButtonRequestPoll attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: keyboardButtonRequestPoll
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|quiz|[Bool](../types/Bool.md) | Optional|
|text|[string](../types/string.md) | Yes|
### Type: [KeyboardButton](../types/KeyboardButton.md)
### Example:
```php
$keyboardButtonRequestPoll = ['_' => 'keyboardButtonRequestPoll', 'quiz' => Bool, 'text' => 'string'];
```
Or, if you're into Lua:
```lua
keyboardButtonRequestPoll={_='keyboardButtonRequestPoll', quiz=Bool, text='string'}
```

View File

@ -0,0 +1,38 @@
---
title: messageUserVote
description: messageUserVote attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: messageUserVote
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|user\_id|[int](../types/int.md) | Yes|
|option|[bytes](../types/bytes.md) | Yes|
|date|[int](../types/int.md) | Yes|
### Type: [MessageUserVote](../types/MessageUserVote.md)
### Example:
```php
$messageUserVote = ['_' => 'messageUserVote', 'user_id' => int, 'option' => 'bytes', 'date' => int];
```
Or, if you're into Lua:
```lua
messageUserVote={_='messageUserVote', user_id=int, option='bytes', date=int}
```

View File

@ -0,0 +1,37 @@
---
title: messageUserVoteInputOption
description: messageUserVoteInputOption attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: messageUserVoteInputOption
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|user\_id|[int](../types/int.md) | Yes|
|date|[int](../types/int.md) | Yes|
### Type: [MessageUserVote](../types/MessageUserVote.md)
### Example:
```php
$messageUserVoteInputOption = ['_' => 'messageUserVoteInputOption', 'user_id' => int, 'date' => int];
```
Or, if you're into Lua:
```lua
messageUserVoteInputOption={_='messageUserVoteInputOption', user_id=int, date=int}
```

View File

@ -0,0 +1,38 @@
---
title: messageUserVoteMultiple
description: messageUserVoteMultiple attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: messageUserVoteMultiple
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|user\_id|[int](../types/int.md) | Yes|
|options|Array of [bytes](../types/bytes.md) | Yes|
|date|[int](../types/int.md) | Yes|
### Type: [MessageUserVote](../types/MessageUserVote.md)
### Example:
```php
$messageUserVoteMultiple = ['_' => 'messageUserVoteMultiple', 'user_id' => int, 'options' => ['bytes', 'bytes'], 'date' => int];
```
Or, if you're into Lua:
```lua
messageUserVoteMultiple={_='messageUserVoteMultiple', user_id=int, options={'bytes'}, date=int}
```

View File

@ -0,0 +1,39 @@
---
title: messages.inactiveChats
description: messages.inactiveChats attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/messages_inactiveChats.html
---
# Constructor: messages.inactiveChats
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|dates|Array of [int](../types/int.md) | Yes|
|chats|Array of [Chat](../types/Chat.md) | Yes|
|users|Array of [User](../types/User.md) | Yes|
### Type: [messages.InactiveChats](../types/messages.InactiveChats.md)
### Example:
```php
$messages.inactiveChats = ['_' => 'messages.inactiveChats', 'dates' => [int, int], 'chats' => [Chat, Chat], 'users' => [User, User]];
```
Or, if you're into Lua:
```lua
messages.inactiveChats={_='messages.inactiveChats', dates={int}, chats={Chat}, users={User}}
```

View File

@ -0,0 +1,40 @@
---
title: messages.votesList
description: messages.votesList attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/messages_votesList.html
---
# Constructor: messages.votesList
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|count|[int](../types/int.md) | Yes|
|votes|Array of [MessageUserVote](../types/MessageUserVote.md) | Yes|
|users|Array of [User](../types/User.md) | Yes|
|next\_offset|[string](../types/string.md) | Optional|
### Type: [messages.VotesList](../types/messages.VotesList.md)
### Example:
```php
$messages.votesList = ['_' => 'messages.votesList', 'count' => int, 'votes' => [MessageUserVote, MessageUserVote], 'users' => [User, User], 'next_offset' => 'string'];
```
Or, if you're into Lua:
```lua
messages.votesList={_='messages.votesList', count=int, votes={MessageUserVote}, users={User}, next_offset='string'}
```

View File

@ -16,6 +16,9 @@ Poll
|----------|---------------|----------|-------------|
|id|[long](../types/long.md) | Yes|ID of the poll|
|closed|[Bool](../types/Bool.md) | Optional|Whether the poll is closed and doesn't accept any more answers|
|public\_voters|[Bool](../types/Bool.md) | Optional||
|multiple\_choice|[Bool](../types/Bool.md) | Optional||
|quiz|[Bool](../types/Bool.md) | Optional||
|question|[string](../types/string.md) | Yes|The question of the poll|
|answers|Array of [PollAnswer](../types/PollAnswer.md) | Yes|Answers|
@ -27,14 +30,14 @@ Poll
### Example:
```php
$poll = ['_' => 'poll', 'id' => long, 'closed' => Bool, 'question' => 'string', 'answers' => [PollAnswer, PollAnswer]];
$poll = ['_' => 'poll', 'id' => long, 'closed' => Bool, 'public_voters' => Bool, 'multiple_choice' => Bool, 'quiz' => Bool, 'question' => 'string', 'answers' => [PollAnswer, PollAnswer]];
```
Or, if you're into Lua:
```lua
poll={_='poll', id=long, closed=Bool, question='string', answers={PollAnswer}}
poll={_='poll', id=long, closed=Bool, public_voters=Bool, multiple_choice=Bool, quiz=Bool, question='string', answers={PollAnswer}}
```

View File

@ -15,6 +15,7 @@ A poll answer, and how users voted on it
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|chosen|[Bool](../types/Bool.md) | Optional|Whether we have chosen this answer|
|correct|[Bool](../types/Bool.md) | Optional||
|option|[bytes](../types/bytes.md) | Yes|The param that has to be passed to [messages.sendVote](../methods/messages.sendVote.md).|
|voters|[int](../types/int.md) | Yes|How many users voted for this option|
@ -26,14 +27,14 @@ A poll answer, and how users voted on it
### Example:
```php
$pollAnswerVoters = ['_' => 'pollAnswerVoters', 'chosen' => Bool, 'option' => 'bytes', 'voters' => int];
$pollAnswerVoters = ['_' => 'pollAnswerVoters', 'chosen' => Bool, 'correct' => Bool, 'option' => 'bytes', 'voters' => int];
```
Or, if you're into Lua:
```lua
pollAnswerVoters={_='pollAnswerVoters', chosen=Bool, option='bytes', voters=int}
pollAnswerVoters={_='pollAnswerVoters', chosen=Bool, correct=Bool, option='bytes', voters=int}
```

View File

@ -17,6 +17,7 @@ Results of poll
|min|[Bool](../types/Bool.md) | Optional|Similar to [min](https://core.telegram.org/api/min) objects, used for poll constructors that are the same for all users so they don't have option chosen by the current user (you can use [messages.getPollResults](../methods/messages.getPollResults.md) to get the full poll results).|
|results|Array of [PollAnswerVoters](../types/PollAnswerVoters.md) | Optional|Results|
|total\_voters|[int](../types/int.md) | Optional|Total number of people that voted in the poll|
|recent\_voters|Array of [int](../types/int.md) | Optional||
@ -26,14 +27,14 @@ Results of poll
### Example:
```php
$pollResults = ['_' => 'pollResults', 'min' => Bool, 'results' => [PollAnswerVoters, PollAnswerVoters], 'total_voters' => int];
$pollResults = ['_' => 'pollResults', 'min' => Bool, 'results' => [PollAnswerVoters, PollAnswerVoters], 'total_voters' => int, 'recent_voters' => [int, int]];
```
Or, if you're into Lua:
```lua
pollResults={_='pollResults', min=Bool, results={PollAnswerVoters}, total_voters=int}
pollResults={_='pollResults', min=Bool, results={PollAnswerVoters}, total_voters=int, recent_voters={int}}
```

View File

@ -21,6 +21,7 @@ Theme
|slug|[string](../types/string.md) | Yes|Unique theme ID|
|title|[string](../types/string.md) | Yes|Theme name|
|document|[Document](../types/Document.md) | Optional|Theme|
|settings|[ThemeSettings](../types/ThemeSettings.md) | Optional||
|installs\_count|[int](../types/int.md) | Yes|Installation count|
@ -31,14 +32,14 @@ Theme
### Example:
```php
$theme = ['_' => 'theme', 'creator' => Bool, 'default' => Bool, 'id' => long, 'access_hash' => long, 'slug' => 'string', 'title' => 'string', 'document' => Document, 'installs_count' => int];
$theme = ['_' => 'theme', 'creator' => Bool, 'default' => Bool, 'id' => long, 'access_hash' => long, 'slug' => 'string', 'title' => 'string', 'document' => Document, 'settings' => ThemeSettings, 'installs_count' => int];
```
Or, if you're into Lua:
```lua
theme={_='theme', creator=Bool, default=Bool, id=long, access_hash=long, slug='string', title='string', document=Document, installs_count=int}
theme={_='theme', creator=Bool, default=Bool, id=long, access_hash=long, slug='string', title='string', document=Document, settings=ThemeSettings, installs_count=int}
```

View File

@ -1,33 +0,0 @@
---
title: themeDocumentNotModified
description: Theme background hasn't changed
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: themeDocumentNotModified
[Back to constructors index](index.md)
Theme background hasn't changed
### Type: [Theme](../types/Theme.md)
### Example:
```php
$themeDocumentNotModified = ['_' => 'themeDocumentNotModified'];
```
Or, if you're into Lua:
```lua
themeDocumentNotModified={_='themeDocumentNotModified'}
```

View File

@ -0,0 +1,40 @@
---
title: themeSettings
description: themeSettings attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: themeSettings
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|base\_theme|[BaseTheme](../types/BaseTheme.md) | Yes|
|accent\_color|[int](../types/int.md) | Yes|
|message\_top\_color|[int](../types/int.md) | Optional|
|message\_bottom\_color|[int](../types/int.md) | Optional|
|wallpaper|[WallPaper](../types/WallPaper.md) | Optional|
### Type: [ThemeSettings](../types/ThemeSettings.md)
### Example:
```php
$themeSettings = ['_' => 'themeSettings', 'base_theme' => BaseTheme, 'accent_color' => int, 'message_top_color' => int, 'message_bottom_color' => int, 'wallpaper' => WallPaper];
```
Or, if you're into Lua:
```lua
themeSettings={_='themeSettings', base_theme=BaseTheme, accent_color=int, message_top_color=int, message_bottom_color=int, wallpaper=WallPaper}
```

View File

@ -0,0 +1,37 @@
---
title: updateGeoLiveViewed
description: updateGeoLiveViewed attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: updateGeoLiveViewed
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|peer|[Peer](../types/Peer.md) | Yes|
|msg\_id|[int](../types/int.md) | Yes|
### Type: [Update](../types/Update.md)
### Example:
```php
$updateGeoLiveViewed = ['_' => 'updateGeoLiveViewed', 'peer' => Peer, 'msg_id' => int];
```
Or, if you're into Lua:
```lua
updateGeoLiveViewed={_='updateGeoLiveViewed', peer=Peer, msg_id=int}
```

View File

@ -0,0 +1,31 @@
---
title: updateLoginToken
description: updateLoginToken attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: updateLoginToken
[Back to constructors index](index.md)
### Type: [Update](../types/Update.md)
### Example:
```php
$updateLoginToken = ['_' => 'updateLoginToken'];
```
Or, if you're into Lua:
```lua
updateLoginToken={_='updateLoginToken'}
```

View File

@ -0,0 +1,38 @@
---
title: updateMessagePollVote
description: updateMessagePollVote attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: updateMessagePollVote
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|poll\_id|[long](../types/long.md) | Yes|
|user\_id|[int](../types/int.md) | Yes|
|options|Array of [bytes](../types/bytes.md) | Yes|
### Type: [Update](../types/Update.md)
### Example:
```php
$updateMessagePollVote = ['_' => 'updateMessagePollVote', 'poll_id' => long, 'user_id' => int, 'options' => ['bytes', 'bytes']];
```
Or, if you're into Lua:
```lua
updateMessagePollVote={_='updateMessagePollVote', poll_id=long, user_id=int, options={'bytes'}}
```

View File

@ -0,0 +1,38 @@
---
title: wallPaperNoFile
description: wallPaperNoFile attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: wallPaperNoFile
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|default|[Bool](../types/Bool.md) | Optional|
|dark|[Bool](../types/Bool.md) | Optional|
|settings|[WallPaperSettings](../types/WallPaperSettings.md) | Optional|
### Type: [WallPaper](../types/WallPaper.md)
### Example:
```php
$wallPaperNoFile = ['_' => 'wallPaperNoFile', 'default' => Bool, 'dark' => Bool, 'settings' => WallPaperSettings];
```
Or, if you're into Lua:
```lua
wallPaperNoFile={_='wallPaperNoFile', default=Bool, dark=Bool, settings=WallPaperSettings}
```

View File

@ -17,7 +17,9 @@ Wallpaper settings
|blur|[Bool](../types/Bool.md) | Optional|If set, the wallpaper must be downscaled to fit in 450x450 square and then box-blurred with radius 12|
|motion|[Bool](../types/Bool.md) | Optional|If set, the background needs to be slightly moved when device is rotated|
|background\_color|[int](../types/int.md) | Optional|If set, a PNG pattern is to be combined with the `color` chosen by the user: the main color of the background in RGB24 format|
|second\_background\_color|[int](../types/int.md) | Optional||
|intensity|[int](../types/int.md) | Optional|Intensity of the pattern when it is shown above the main background color, 0-100|
|rotation|[int](../types/int.md) | Optional||
@ -27,14 +29,14 @@ Wallpaper settings
### Example:
```php
$wallPaperSettings = ['_' => 'wallPaperSettings', 'blur' => Bool, 'motion' => Bool, 'background_color' => int, 'intensity' => int];
$wallPaperSettings = ['_' => 'wallPaperSettings', 'blur' => Bool, 'motion' => Bool, 'background_color' => int, 'second_background_color' => int, 'intensity' => int, 'rotation' => int];
```
Or, if you're into Lua:
```lua
wallPaperSettings={_='wallPaperSettings', blur=Bool, motion=Bool, background_color=int, intensity=int}
wallPaperSettings={_='wallPaperSettings', blur=Bool, motion=Bool, background_color=int, second_background_color=int, intensity=int, rotation=int}
```

View File

@ -30,8 +30,8 @@ Webpage preview
|duration|[int](../types/int.md) | Optional|Duration of the content, in seconds|
|author|[string](../types/string.md) | Optional|Author of the content|
|document|[Document](../types/Document.md) | Optional|Preview of the content as a media file|
|documents|Array of [Document](../types/Document.md) | Optional|Documents|
|cached\_page|[Page](../types/Page.md) | Optional|Page contents in [instant view](https://instantview.telegram.org) format|
|attributes|Array of [WebPageAttribute](../types/WebPageAttribute.md) | Optional||
@ -41,14 +41,14 @@ Webpage preview
### Example:
```php
$webPage = ['_' => 'webPage', 'id' => long, 'url' => 'string', 'display_url' => 'string', 'hash' => int, 'type' => 'string', 'site_name' => 'string', 'title' => 'string', 'description' => 'string', 'photo' => Photo, 'embed_url' => 'string', 'embed_type' => 'string', 'embed_width' => int, 'embed_height' => int, 'duration' => int, 'author' => 'string', 'document' => Document, 'documents' => [Document, Document], 'cached_page' => Page];
$webPage = ['_' => 'webPage', 'id' => long, 'url' => 'string', 'display_url' => 'string', 'hash' => int, 'type' => 'string', 'site_name' => 'string', 'title' => 'string', 'description' => 'string', 'photo' => Photo, 'embed_url' => 'string', 'embed_type' => 'string', 'embed_width' => int, 'embed_height' => int, 'duration' => int, 'author' => 'string', 'document' => Document, 'cached_page' => Page, 'attributes' => [WebPageAttribute, WebPageAttribute]];
```
Or, if you're into Lua:
```lua
webPage={_='webPage', id=long, url='string', display_url='string', hash=int, type='string', site_name='string', title='string', description='string', photo=Photo, embed_url='string', embed_type='string', embed_width=int, embed_height=int, duration=int, author='string', document=Document, documents={Document}, cached_page=Page}
webPage={_='webPage', id=long, url='string', display_url='string', hash=int, type='string', site_name='string', title='string', description='string', photo=Photo, embed_url='string', embed_type='string', embed_width=int, embed_height=int, duration=int, author='string', document=Document, cached_page=Page, attributes={WebPageAttribute}}
```

View File

@ -0,0 +1,37 @@
---
title: webPageAttributeTheme
description: webPageAttributeTheme attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: webPageAttributeTheme
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|documents|Array of [Document](../types/Document.md) | Optional|
|settings|[ThemeSettings](../types/ThemeSettings.md) | Optional|
### Type: [WebPageAttribute](../types/WebPageAttribute.md)
### Example:
```php
$webPageAttributeTheme = ['_' => 'webPageAttributeTheme', 'documents' => [Document, Document], 'settings' => ThemeSettings];
```
Or, if you're into Lua:
```lua
webPageAttributeTheme={_='webPageAttributeTheme', documents={Document}, settings=ThemeSettings}
```

View File

@ -1,9 +1,9 @@
---
title: MadelineProto API documentation (layer 105)
description: MadelineProto API documentation (layer 105)
title: MadelineProto API documentation (layer 109)
description: MadelineProto API documentation (layer 109)
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# MadelineProto API documentation (layer 105)
# MadelineProto API documentation (layer 109)
[Back to main documentation](..)

View File

@ -17,6 +17,7 @@ Create a theme
|slug|[string](../types/string.md) | Unique theme ID | Yes|
|title|[string](../types/string.md) | Theme name | Yes|
|document|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Theme file | Optional|
|settings|[InputThemeSettings](../types/InputThemeSettings.md) | | Optional|
### Return type: [Theme](../types/Theme.md)
@ -36,12 +37,12 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$Theme = $MadelineProto->account->createTheme(['slug' => 'string', 'title' => 'string', 'document' => InputDocument, ]);
$Theme = $MadelineProto->account->createTheme(['slug' => 'string', 'title' => 'string', 'document' => InputDocument, 'settings' => InputThemeSettings, ]);
```
Or, if you're into Lua:
```lua
Theme = account.createTheme({slug='string', title='string', document=InputDocument, })
Theme = account.createTheme({slug='string', title='string', document=InputDocument, settings=InputThemeSettings, })
```

View File

@ -0,0 +1,38 @@
---
title: account.getContentSettings
description: account.getContentSettings parameters, return type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/methods/account_getContentSettings.html
---
# Method: account.getContentSettings
[Back to methods index](index.md)
### Return type: [account.ContentSettings](../types/account.ContentSettings.md)
### Can bots use this method: **YES**
### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)):
```php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$account.ContentSettings = $MadelineProto->account->getContentSettings();
```
Or, if you're into Lua:
```lua
account.ContentSettings = account.getContentSettings({})
```

View File

@ -0,0 +1,43 @@
---
title: account.getMultiWallPapers
description: account.getMultiWallPapers parameters, return type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/methods/account_getMultiWallPapers.html
---
# Method: account.getMultiWallPapers
[Back to methods index](index.md)
### Parameters:
| Name | Type | Required |
|----------|---------------|----------|
|wallpapers|Array of [InputWallPaper](../types/InputWallPaper.md) | Yes|
### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md)
### Can bots use this method: **YES**
### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)):
```php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$Vector_of_WallPaper = $MadelineProto->account->getMultiWallPapers(['wallpapers' => [InputWallPaper, InputWallPaper], ]);
```
Or, if you're into Lua:
```lua
Vector_of_WallPaper = account.getMultiWallPapers({wallpapers={InputWallPaper}, })
```

View File

@ -0,0 +1,43 @@
---
title: account.setContentSettings
description: account.setContentSettings parameters, return type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/methods/account_setContentSettings.html
---
# Method: account.setContentSettings
[Back to methods index](index.md)
### Parameters:
| Name | Type | Required |
|----------|---------------|----------|
|sensitive\_enabled|[Bool](../types/Bool.md) | Optional|
### Return type: [Bool](../types/Bool.md)
### Can bots use this method: **YES**
### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)):
```php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$Bool = $MadelineProto->account->setContentSettings(['sensitive_enabled' => Bool, ]);
```
Or, if you're into Lua:
```lua
Bool = account.setContentSettings({sensitive_enabled=Bool, })
```

View File

@ -19,6 +19,7 @@ Update theme
|slug|[string](../types/string.md) | Unique theme ID | Optional|
|title|[string](../types/string.md) | Theme name | Optional|
|document|[MessageMedia, Update, Message or InputDocument](../types/InputDocument.md) | Theme file | Optional|
|settings|[InputThemeSettings](../types/InputThemeSettings.md) | | Optional|
### Return type: [Theme](../types/Theme.md)
@ -38,12 +39,12 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$Theme = $MadelineProto->account->updateTheme(['format' => 'string', 'theme' => InputTheme, 'slug' => 'string', 'title' => 'string', 'document' => InputDocument, ]);
$Theme = $MadelineProto->account->updateTheme(['format' => 'string', 'theme' => InputTheme, 'slug' => 'string', 'title' => 'string', 'document' => InputDocument, 'settings' => InputThemeSettings, ]);
```
Or, if you're into Lua:
```lua
Theme = account.updateTheme({format='string', theme=InputTheme, slug='string', title='string', document=InputDocument, })
Theme = account.updateTheme({format='string', theme=InputTheme, slug='string', title='string', document=InputDocument, settings=InputThemeSettings, })
```

View File

@ -60,7 +60,7 @@ $MadelineProto->[account->confirmPhone](account.confirmPhone.md)(\['phone_code_h
***
<br><br>
$MadelineProto->[account->createTheme](account.createTheme.md)(\['slug' => [string](../types/string.md), 'title' => [string](../types/string.md), 'document' => [InputDocument](../types/InputDocument.md), \]) === [$Theme](../types/Theme.md)<a name="account.createTheme"></a>
$MadelineProto->[account->createTheme](account.createTheme.md)(\['slug' => [string](../types/string.md), 'title' => [string](../types/string.md), 'document' => [InputDocument](../types/InputDocument.md), 'settings' => [InputThemeSettings](../types/InputThemeSettings.md), \]) === [$Theme](../types/Theme.md)<a name="account.createTheme"></a>
***
<br><br>
@ -98,6 +98,14 @@ $MadelineProto->[account->getAutoDownloadSettings](account.getAutoDownloadSettin
<br><br>
$MadelineProto->[account->getContactSignUpNotification](account.getContactSignUpNotification.md)(\[\]) === [$Bool](../types/Bool.md)<a name="account.getContactSignUpNotification"></a>
***
<br><br>
$MadelineProto->[account->getContentSettings](account.getContentSettings.md)(\[\]) === [$account.ContentSettings](../types/account.ContentSettings.md)<a name="account.getContentSettings"></a>
***
<br><br>
$MadelineProto->[account->getMultiWallPapers](account.getMultiWallPapers.md)(\['wallpapers' => \[[InputWallPaper](../types/InputWallPaper.md)\], \]) === [$Vector\_of\_WallPaper](../types/WallPaper.md)<a name="account.getMultiWallPapers"></a>
***
<br><br>
$MadelineProto->[account->getNotifyExceptions](account.getNotifyExceptions.md)(\['compare_sound' => [Bool](../types/Bool.md), 'peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$Updates](../types/Updates.md)<a name="account.getNotifyExceptions"></a>
@ -230,6 +238,10 @@ $MadelineProto->[account->setAccountTTL](account.setAccountTTL.md)(\['ttl' => [A
<br><br>
$MadelineProto->[account->setContactSignUpNotification](account.setContactSignUpNotification.md)(\['silent' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)<a name="account.setContactSignUpNotification"></a>
***
<br><br>
$MadelineProto->[account->setContentSettings](account.setContentSettings.md)(\['sensitive_enabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)<a name="account.setContentSettings"></a>
***
<br><br>
$MadelineProto->[account->setPrivacy](account.setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account.PrivacyRules](../types/account.PrivacyRules.md)<a name="account.setPrivacy"></a>
@ -260,7 +272,7 @@ $MadelineProto->[account->updateStatus](account.updateStatus.md)(\['offline' =>
***
<br><br>
$MadelineProto->[account->updateTheme](account.updateTheme.md)(\['format' => [string](../types/string.md), 'theme' => [InputTheme](../types/InputTheme.md), 'slug' => [string](../types/string.md), 'title' => [string](../types/string.md), 'document' => [InputDocument](../types/InputDocument.md), \]) === [$Theme](../types/Theme.md)<a name="account.updateTheme"></a>
$MadelineProto->[account->updateTheme](account.updateTheme.md)(\['format' => [string](../types/string.md), 'theme' => [InputTheme](../types/InputTheme.md), 'slug' => [string](../types/string.md), 'title' => [string](../types/string.md), 'document' => [InputDocument](../types/InputDocument.md), 'settings' => [InputThemeSettings](../types/InputThemeSettings.md), \]) === [$Theme](../types/Theme.md)<a name="account.updateTheme"></a>
***
<br><br>
@ -282,6 +294,10 @@ $MadelineProto->[account->verifyEmail](account.verifyEmail.md)(\['email' => [str
<br><br>
$MadelineProto->[account->verifyPhone](account.verifyPhone.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="account.verifyPhone"></a>
***
<br><br>
$MadelineProto->[auth->acceptLoginToken](auth.acceptLoginToken.md)(\['token' => [bytes](../types/bytes.md), \]) === [$Authorization](../types/Authorization.md)<a name="auth.acceptLoginToken"></a>
***
<br><br>
$MadelineProto->[auth->bindTempAuthKey](auth.bindTempAuthKey.md)(\['perm_auth_key_id' => [long](../types/long.md), 'nonce' => [long](../types/long.md), 'expires_at' => [int](../types/int.md), 'encrypted_message' => [bytes](../types/bytes.md), \]) === [$Bool](../types/Bool.md)<a name="auth.bindTempAuthKey"></a>
@ -302,6 +318,10 @@ $MadelineProto->[auth->dropTempAuthKeys](auth.dropTempAuthKeys.md)(\['except_aut
<br><br>
$MadelineProto->[auth->exportAuthorization](auth.exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth.ExportedAuthorization](../types/auth.ExportedAuthorization.md)<a name="auth.exportAuthorization"></a>
***
<br><br>
$MadelineProto->[auth->exportLoginToken](auth.exportLoginToken.md)(\['api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), 'except_ids' => \[[int](../types/int.md)\], \]) === [$auth.LoginToken](../types/auth.LoginToken.md)<a name="auth.exportLoginToken"></a>
***
<br><br>
$MadelineProto->[auth->importAuthorization](auth.importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth.Authorization](../types/auth.Authorization.md)<a name="auth.importAuthorization"></a>
@ -310,6 +330,10 @@ $MadelineProto->[auth->importAuthorization](auth.importAuthorization.md)(\['id'
<br><br>
$MadelineProto->[auth->importBotAuthorization](auth.importBotAuthorization.md)(\['api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), 'bot_auth_token' => [string](../types/string.md), \]) === [$auth.Authorization](../types/auth.Authorization.md)<a name="auth.importBotAuthorization"></a>
***
<br><br>
$MadelineProto->[auth->importLoginToken](auth.importLoginToken.md)(\['token' => [bytes](../types/bytes.md), \]) === [$auth.LoginToken](../types/auth.LoginToken.md)<a name="auth.importLoginToken"></a>
***
<br><br>
$MadelineProto->[auth->logOut](auth.logOut.md)(\[\]) === [$Bool](../types/Bool.md)<a name="auth.logOut"></a>
@ -422,6 +446,10 @@ $MadelineProto->[channels->getFullChannel](channels.getFullChannel.md)(\['channe
<br><br>
$MadelineProto->[channels->getGroupsForDiscussion](channels.getGroupsForDiscussion.md)(\[\]) === [$messages.Chats](../types/messages.Chats.md)<a name="channels.getGroupsForDiscussion"></a>
***
<br><br>
$MadelineProto->[channels->getInactiveChannels](channels.getInactiveChannels.md)(\[\]) === [$messages.InactiveChats](../types/messages.InactiveChats.md)<a name="channels.getInactiveChannels"></a>
***
<br><br>
$MadelineProto->[channels->getLeftChannels](channels.getLeftChannels.md)(\['offset' => [int](../types/int.md), \]) === [$messages.Chats](../types/messages.Chats.md)<a name="channels.getLeftChannels"></a>
@ -910,6 +938,10 @@ $MadelineProto->[messages->getPinnedDialogs](messages.getPinnedDialogs.md)(\['fo
<br><br>
$MadelineProto->[messages->getPollResults](messages.getPollResults.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)<a name="messages.getPollResults"></a>
***
<br><br>
$MadelineProto->[messages->getPollVotes](messages.getPollVotes.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'option' => [bytes](../types/bytes.md), 'offset' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$messages.VotesList](../types/messages.VotesList.md)<a name="messages.getPollVotes"></a>
***
<br><br>
$MadelineProto->[messages->getRecentLocations](messages.getRecentLocations.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$messages.Messages](../types/messages.Messages.md)<a name="messages.getRecentLocations"></a>
@ -1272,7 +1304,7 @@ $MadelineProto->[upload->getCdnFileHashes](upload.getCdnFileHashes.md)(\['file_t
***
<br><br>
$MadelineProto->[upload->getFile](upload.getFile.md)(\['precise' => [Bool](../types/Bool.md), 'location' => [InputFileLocation](../types/InputFileLocation.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload.File](../types/upload.File.md)<a name="upload.getFile"></a>
$MadelineProto->[upload->getFile](upload.getFile.md)(\['precise' => [Bool](../types/Bool.md), 'cdn_supported' => [Bool](../types/Bool.md), 'location' => [InputFileLocation](../types/InputFileLocation.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload.File](../types/upload.File.md)<a name="upload.getFile"></a>
***
<br><br>

View File

@ -0,0 +1,43 @@
---
title: auth.acceptLoginToken
description: auth.acceptLoginToken parameters, return type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/methods/auth_acceptLoginToken.html
---
# Method: auth.acceptLoginToken
[Back to methods index](index.md)
### Parameters:
| Name | Type | Required |
|----------|---------------|----------|
|token|[bytes](../types/bytes.md) | Yes|
### Return type: [Authorization](../types/Authorization.md)
### Can bots use this method: **YES**
### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)):
```php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$Authorization = $MadelineProto->auth->acceptLoginToken(['token' => 'bytes', ]);
```
Or, if you're into Lua:
```lua
Authorization = auth.acceptLoginToken({token='bytes', })
```

View File

@ -0,0 +1,45 @@
---
title: auth.exportLoginToken
description: auth.exportLoginToken parameters, return type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/methods/auth_exportLoginToken.html
---
# Method: auth.exportLoginToken
[Back to methods index](index.md)
### Parameters:
| Name | Type | Required |
|----------|---------------|----------|
|api\_id|[int](../types/int.md) | Yes|
|api\_hash|[string](../types/string.md) | Yes|
|except\_ids|Array of [int](../types/int.md) | Yes|
### Return type: [auth.LoginToken](../types/auth.LoginToken.md)
### Can bots use this method: **YES**
### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)):
```php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$auth.LoginToken = $MadelineProto->auth->exportLoginToken(['api_id' => int, 'api_hash' => 'string', 'except_ids' => [int, int], ]);
```
Or, if you're into Lua:
```lua
auth.LoginToken = auth.exportLoginToken({api_id=int, api_hash='string', except_ids={int}, })
```

View File

@ -0,0 +1,43 @@
---
title: auth.importLoginToken
description: auth.importLoginToken parameters, return type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/methods/auth_importLoginToken.html
---
# Method: auth.importLoginToken
[Back to methods index](index.md)
### Parameters:
| Name | Type | Required |
|----------|---------------|----------|
|token|[bytes](../types/bytes.md) | Yes|
### Return type: [auth.LoginToken](../types/auth.LoginToken.md)
### Can bots use this method: **YES**
### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)):
```php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$auth.LoginToken = $MadelineProto->auth->importLoginToken(['token' => 'bytes', ]);
```
Or, if you're into Lua:
```lua
auth.LoginToken = auth.importLoginToken({token='bytes', })
```

View File

@ -0,0 +1,38 @@
---
title: channels.getInactiveChannels
description: channels.getInactiveChannels parameters, return type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/methods/channels_getInactiveChannels.html
---
# Method: channels.getInactiveChannels
[Back to methods index](index.md)
### Return type: [messages.InactiveChats](../types/messages.InactiveChats.md)
### Can bots use this method: **YES**
### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)):
```php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages.InactiveChats = $MadelineProto->channels->getInactiveChannels();
```
Or, if you're into Lua:
```lua
messages.InactiveChats = channels.getInactiveChannels({})
```

View File

@ -0,0 +1,47 @@
---
title: messages.getPollVotes
description: messages.getPollVotes parameters, return type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/methods/messages_getPollVotes.html
---
# Method: messages.getPollVotes
[Back to methods index](index.md)
### Parameters:
| Name | Type | Required |
|----------|---------------|----------|
|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|
|id|[int](../types/int.md) | Yes|
|option|[bytes](../types/bytes.md) | Optional|
|offset|[string](../types/string.md) | Optional|
|limit|[int](../types/int.md) | Yes|
### Return type: [messages.VotesList](../types/messages.VotesList.md)
### Can bots use this method: **YES**
### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)):
```php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages.VotesList = $MadelineProto->messages->getPollVotes(['peer' => InputPeer, 'id' => int, 'option' => 'bytes', 'offset' => 'string', 'limit' => int, ]);
```
Or, if you're into Lua:
```lua
messages.VotesList = messages.getPollVotes({peer=InputPeer, id=int, option='bytes', offset='string', limit=int, })
```

View File

@ -15,6 +15,7 @@ You cannot use this method directly, use the upload, downloadToStream, downloadT
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|precise|[Bool](../types/Bool.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Optional|
|cdn\_supported|[Bool](../types/Bool.md) | | Optional|
|location|[InputFileLocation](../types/InputFileLocation.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes|
|offset|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes|
|limit|[int](../types/int.md) | You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info | Yes|
@ -37,13 +38,13 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$upload.File = $MadelineProto->upload->getFile(['precise' => Bool, 'location' => InputFileLocation, 'offset' => int, 'limit' => int, ]);
$upload.File = $MadelineProto->upload->getFile(['precise' => Bool, 'cdn_supported' => Bool, 'location' => InputFileLocation, 'offset' => int, 'limit' => int, ]);
```
Or, if you're into Lua:
```lua
upload.File = upload.getFile({precise=Bool, location=InputFileLocation, offset=int, limit=int, })
upload.File = upload.getFile({precise=Bool, cdn_supported=Bool, location=InputFileLocation, offset=int, limit=int, })
```
### Errors

View File

@ -16,5 +16,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
### Methods that return an object of this type (methods):
[$MadelineProto->auth->acceptLoginToken](../methods/auth.acceptLoginToken.md)

View File

@ -0,0 +1,28 @@
---
title: BaseTheme
description: constructors and methods of type BaseTheme
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Type: BaseTheme
[Back to types index](index.md)
### Possible values (constructors):
[baseThemeClassic](../constructors/baseThemeClassic.md)
[baseThemeDay](../constructors/baseThemeDay.md)
[baseThemeNight](../constructors/baseThemeNight.md)
[baseThemeTinted](../constructors/baseThemeTinted.md)
[baseThemeArctic](../constructors/baseThemeArctic.md)
### Methods that return an object of this type (methods):

View File

@ -22,6 +22,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[inputPhotoFileLocation](../constructors/inputPhotoFileLocation.md)
[inputPhotoLegacyFileLocation](../constructors/inputPhotoLegacyFileLocation.md)
[inputPeerPhotoFileLocation](../constructors/inputPeerPhotoFileLocation.md)
[inputStickerSetThumb](../constructors/inputStickerSetThumb.md)

View File

@ -0,0 +1,20 @@
---
title: InputThemeSettings
description: constructors and methods of type InputThemeSettings
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Type: InputThemeSettings
[Back to types index](index.md)
### Possible values (constructors):
[inputThemeSettings](../constructors/inputThemeSettings.md)
### Methods that return an object of this type (methods):

View File

@ -14,6 +14,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[inputWallPaperSlug](../constructors/inputWallPaperSlug.md)
[inputWallPaperNoFile](../constructors/inputWallPaperNoFile.md)
### Methods that return an object of this type (methods):

View File

@ -51,6 +51,8 @@ You can also access the properties of the constructor as a normal array, for exa
[inputKeyboardButtonUrlAuth](../constructors/inputKeyboardButtonUrlAuth.md)
[keyboardButtonRequestPoll](../constructors/keyboardButtonRequestPoll.md)
### Methods that return an object of this type (methods):

View File

@ -0,0 +1,24 @@
---
title: MessageUserVote
description: constructors and methods of type MessageUserVote
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Type: MessageUserVote
[Back to types index](index.md)
### Possible values (constructors):
[messageUserVote](../constructors/messageUserVote.md)
[messageUserVoteInputOption](../constructors/messageUserVoteInputOption.md)
[messageUserVoteMultiple](../constructors/messageUserVoteMultiple.md)
### Methods that return an object of this type (methods):

View File

@ -10,8 +10,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
### Possible values (constructors):
[themeDocumentNotModified](../constructors/themeDocumentNotModified.md)
[theme](../constructors/theme.md)

View File

@ -1,16 +1,16 @@
---
title: AccessPointRule
description: constructors and methods of type AccessPointRule
title: ThemeSettings
description: constructors and methods of type ThemeSettings
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Type: AccessPointRule
# Type: ThemeSettings
[Back to types index](index.md)
### Possible values (constructors):
[accessPointRule](../constructors/accessPointRule.md)
[themeSettings](../constructors/themeSettings.md)

View File

@ -158,6 +158,12 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[updateTheme](../constructors/updateTheme.md)
[updateGeoLiveViewed](../constructors/updateGeoLiveViewed.md)
[updateLoginToken](../constructors/updateLoginToken.md)
[updateMessagePollVote](../constructors/updateMessagePollVote.md)
### Methods that return an object of this type (methods):

View File

@ -12,6 +12,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[wallPaper](../constructors/wallPaper.md)
[wallPaperNoFile](../constructors/wallPaperNoFile.md)
### Methods that return an object of this type (methods):
@ -20,5 +22,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[$MadelineProto->account->uploadWallPaper](../methods/account.uploadWallPaper.md)
[$MadelineProto->account->getMultiWallPapers](../methods/account.getMultiWallPapers.md)

View File

@ -0,0 +1,20 @@
---
title: WebPageAttribute
description: constructors and methods of type WebPageAttribute
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Type: WebPageAttribute
[Back to types index](index.md)
### Possible values (constructors):
[webPageAttributeTheme](../constructors/webPageAttributeTheme.md)
### Methods that return an object of this type (methods):

View File

@ -0,0 +1,23 @@
---
title: account.ContentSettings
description: constructors and methods of type account.ContentSettings
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/types/account_ContentSettings.html
---
# Type: account.ContentSettings
[Back to types index](index.md)
### Possible values (constructors):
[account.contentSettings](../constructors/account.contentSettings.md)
### Methods that return an object of this type (methods):
[$MadelineProto->account->getContentSettings](../methods/account.getContentSettings.md)

View File

@ -0,0 +1,29 @@
---
title: auth.LoginToken
description: constructors and methods of type auth.LoginToken
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/types/auth_LoginToken.html
---
# Type: auth.LoginToken
[Back to types index](index.md)
### Possible values (constructors):
[auth.loginToken](../constructors/auth.loginToken.md)
[auth.loginTokenMigrateTo](../constructors/auth.loginTokenMigrateTo.md)
[auth.loginTokenSuccess](../constructors/auth.loginTokenSuccess.md)
### Methods that return an object of this type (methods):
[$MadelineProto->auth->exportLoginToken](../methods/auth.exportLoginToken.md)
[$MadelineProto->auth->importLoginToken](../methods/auth.importLoginToken.md)

View File

@ -1,21 +0,0 @@
---
title: help.ConfigSimple
description: constructors and methods of type help.ConfigSimple
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/types/help_ConfigSimple.html
---
# Type: help.ConfigSimple
[Back to types index](index.md)
### Possible values (constructors):
[help.configSimple](../constructors/help.configSimple.md)
### Methods that return an object of this type (methods):

View File

@ -7,14 +7,14 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[Back to API documentation index](..)
[AccessPointRule](AccessPointRule.md)<a name="AccessPointRule"></a>
[AccountDaysTTL](AccountDaysTTL.md)<a name="AccountDaysTTL"></a>
[Authorization](Authorization.md)<a name="Authorization"></a>
[AutoDownloadSettings](AutoDownloadSettings.md)<a name="AutoDownloadSettings"></a>
[BaseTheme](BaseTheme.md)<a name="BaseTheme"></a>
[Bool](Bool.md)<a name="Bool"></a>
[BotCommand](BotCommand.md)<a name="BotCommand"></a>
@ -205,6 +205,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[InputTheme](InputTheme.md)<a name="InputTheme"></a>
[InputThemeSettings](InputThemeSettings.md)<a name="InputThemeSettings"></a>
[InputUser](InputUser.md)<a name="InputUser"></a>
[InputWallPaper](InputWallPaper.md)<a name="InputWallPaper"></a>
@ -215,8 +217,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[Invoice](Invoice.md)<a name="Invoice"></a>
[IpPort](IpPort.md)<a name="IpPort"></a>
[JSONObjectValue](JSONObjectValue.md)<a name="JSONObjectValue"></a>
[JSONValue](JSONValue.md)<a name="JSONValue"></a>
@ -247,6 +247,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[MessageRange](MessageRange.md)<a name="MessageRange"></a>
[MessageUserVote](MessageUserVote.md)<a name="MessageUserVote"></a>
[MessagesFilter](MessagesFilter.md)<a name="MessagesFilter"></a>
[NearestDc](NearestDc.md)<a name="NearestDc"></a>
@ -365,6 +367,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[Theme](Theme.md)<a name="Theme"></a>
[ThemeSettings](ThemeSettings.md)<a name="ThemeSettings"></a>
[TopPeer](TopPeer.md)<a name="TopPeer"></a>
[TopPeerCategory](TopPeerCategory.md)<a name="TopPeerCategory"></a>
@ -397,6 +401,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[WebPage](WebPage.md)<a name="WebPage"></a>
[WebPageAttribute](WebPageAttribute.md)<a name="WebPageAttribute"></a>
[X](X.md)<a name="X"></a>
[account.AuthorizationForm](account.AuthorizationForm.md)<a name="account.AuthorizationForm"></a>
@ -405,6 +411,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[account.AutoDownloadSettings](account.AutoDownloadSettings.md)<a name="account.AutoDownloadSettings"></a>
[account.ContentSettings](account.ContentSettings.md)<a name="account.ContentSettings"></a>
[account.Password](account.Password.md)<a name="account.Password"></a>
[account.PasswordInputSettings](account.PasswordInputSettings.md)<a name="account.PasswordInputSettings"></a>
@ -431,6 +439,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[auth.ExportedAuthorization](auth.ExportedAuthorization.md)<a name="auth.ExportedAuthorization"></a>
[auth.LoginToken](auth.LoginToken.md)<a name="auth.LoginToken"></a>
[auth.PasswordRecovery](auth.PasswordRecovery.md)<a name="auth.PasswordRecovery"></a>
[auth.SentCode](auth.SentCode.md)<a name="auth.SentCode"></a>
@ -457,8 +467,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[help.AppUpdate](help.AppUpdate.md)<a name="help.AppUpdate"></a>
[help.ConfigSimple](help.ConfigSimple.md)<a name="help.ConfigSimple"></a>
[help.DeepLinkInfo](help.DeepLinkInfo.md)<a name="help.DeepLinkInfo"></a>
[help.InviteText](help.InviteText.md)<a name="help.InviteText"></a>
@ -513,6 +521,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[messages.HighScores](messages.HighScores.md)<a name="messages.HighScores"></a>
[messages.InactiveChats](messages.InactiveChats.md)<a name="messages.InactiveChats"></a>
[messages.MessageEditData](messages.MessageEditData.md)<a name="messages.MessageEditData"></a>
[messages.Messages](messages.Messages.md)<a name="messages.Messages"></a>
@ -533,6 +543,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[messages.Stickers](messages.Stickers.md)<a name="messages.Stickers"></a>
[messages.VotesList](messages.VotesList.md)<a name="messages.VotesList"></a>
[payments.PaymentForm](payments.PaymentForm.md)<a name="payments.PaymentForm"></a>
[payments.PaymentReceipt](payments.PaymentReceipt.md)<a name="payments.PaymentReceipt"></a>

View File

@ -0,0 +1,23 @@
---
title: messages.InactiveChats
description: constructors and methods of type messages.InactiveChats
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/types/messages_InactiveChats.html
---
# Type: messages.InactiveChats
[Back to types index](index.md)
### Possible values (constructors):
[messages.inactiveChats](../constructors/messages.inactiveChats.md)
### Methods that return an object of this type (methods):
[$MadelineProto->channels->getInactiveChannels](../methods/channels.getInactiveChannels.md)

View File

@ -0,0 +1,23 @@
---
title: messages.VotesList
description: constructors and methods of type messages.VotesList
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/types/messages_VotesList.html
---
# Type: messages.VotesList
[Back to types index](index.md)
### Possible values (constructors):
[messages.votesList](../constructors/messages.votesList.md)
### Methods that return an object of this type (methods):
[$MadelineProto->messages->getPollVotes](../methods/messages.getPollVotes.md)

View File

@ -542,4 +542,4 @@ if (!isset($result['file_name'])) {
* `$result['file_size']` - File size
* `$result['file_name']` - File name
<a href="https://docs.madelineproto.xyz/docs/CHAT_INFO.html">Next section</a>
<a href="https://docs.madelineproto.xyz/docs/CHAT_INFO.html">Next section</a>

View File

@ -84,4 +84,4 @@ Simply require the package:
composer require danog/madelineproto
```
<a href="https://docs.madelineproto.xyz/docs/UPDATES.html">Next section</a>
<a href="https://docs.madelineproto.xyz/docs/UPDATES.html">Next section</a>

View File

@ -210,4 +210,4 @@ You can use the `resetUpdateState` method to reset the update state and fetch al
$MadelineProto->resetUpdateState();
```
<a href="https://docs.madelineproto.xyz/docs/SETTINGS.html">Next section</a>
<a href="https://docs.madelineproto.xyz/docs/SETTINGS.html">Next section</a>

View File

@ -7,7 +7,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
There are simplifications for many, if not all of, these methods.
A list of all of the methods that can be called with MadelineProto can be found here: [here (layer 100)](https://docs.madelineproto.xyz/API_docs/).
A list of all of the methods that can be called with MadelineProto can be found here: [here (layer 109)](https://docs.madelineproto.xyz/API_docs/).
[Now fully async!](https://docs.madelineproto.xyz/docs/ASYNC.html)

View File

@ -0,0 +1,15 @@
---
title: MadelineProto API documentation (layer v109)
description: MadelineProto API documentation (layer v109)
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# MadelineProto API documentation (layer v109)
[Back to main documentation](..)
[Methods](methods/)
[Constructors](constructors/)
[Types](types/)

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,43 @@
---
title: account.authorizationForm
description: [Telegram Passport](https://core.telegram.org/passport) authorization form
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/account_authorizationForm.html
---
# Constructor: account.authorizationForm
[Back to constructors index](index.md)
[Telegram Passport](https://core.telegram.org/passport) authorization form
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|required\_types|Array of [SecureRequiredType](../types/SecureRequiredType.md) | Yes|Required types|
|values|Array of [SecureValue](../types/SecureValue.md) | Yes|Values|
|errors|Array of [SecureValueError](../types/SecureValueError.md) | Yes|Errors|
|users|Array of [User](../types/User.md) | Yes|Users|
|privacy\_policy\_url|[string](../types/string.md) | Optional|URL of the service's privacy policy|
### Type: [account.AuthorizationForm](../types/account.AuthorizationForm.md)
### Example:
```php
$account.authorizationForm = ['_' => 'account.authorizationForm', 'required_types' => [SecureRequiredType, SecureRequiredType], 'values' => [SecureValue, SecureValue], 'errors' => [SecureValueError, SecureValueError], 'users' => [User, User], 'privacy_policy_url' => 'string'];
```
Or, if you're into Lua:
```lua
account.authorizationForm={_='account.authorizationForm', required_types={SecureRequiredType}, values={SecureValue}, errors={SecureValueError}, users={User}, privacy_policy_url='string'}
```

View File

@ -0,0 +1,39 @@
---
title: account.authorizations
description: Logged-in sessions
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/account_authorizations.html
---
# Constructor: account.authorizations
[Back to constructors index](index.md)
Logged-in sessions
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|authorizations|Array of [Authorization](../types/Authorization.md) | Yes|Authorizations|
### Type: [account.Authorizations](../types/account.Authorizations.md)
### Example:
```php
$account.authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]];
```
Or, if you're into Lua:
```lua
account.authorizations={_='account.authorizations', authorizations={Authorization}}
```

View File

@ -0,0 +1,41 @@
---
title: account.autoDownloadSettings
description: Media autodownload settings
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/account_autoDownloadSettings.html
---
# Constructor: account.autoDownloadSettings
[Back to constructors index](index.md)
Media autodownload settings
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|low|[AutoDownloadSettings](../types/AutoDownloadSettings.md) | Yes|Low data usage preset|
|medium|[AutoDownloadSettings](../types/AutoDownloadSettings.md) | Yes|Medium data usage preset|
|high|[AutoDownloadSettings](../types/AutoDownloadSettings.md) | Yes|High data usage preset|
### Type: [account.AutoDownloadSettings](../types/account.AutoDownloadSettings.md)
### Example:
```php
$account.autoDownloadSettings = ['_' => 'account.autoDownloadSettings', 'low' => AutoDownloadSettings, 'medium' => AutoDownloadSettings, 'high' => AutoDownloadSettings];
```
Or, if you're into Lua:
```lua
account.autoDownloadSettings={_='account.autoDownloadSettings', low=AutoDownloadSettings, medium=AutoDownloadSettings, high=AutoDownloadSettings}
```

View File

@ -0,0 +1,38 @@
---
title: account.contentSettings
description: account.contentSettings attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/account_contentSettings.html
---
# Constructor: account.contentSettings
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|sensitive\_enabled|[Bool](../types/Bool.md) | Optional|
|sensitive\_can\_change|[Bool](../types/Bool.md) | Optional|
### Type: [account.ContentSettings](../types/account.ContentSettings.md)
### Example:
```php
$account.contentSettings = ['_' => 'account.contentSettings', 'sensitive_enabled' => Bool, 'sensitive_can_change' => Bool];
```
Or, if you're into Lua:
```lua
account.contentSettings={_='account.contentSettings', sensitive_enabled=Bool, sensitive_can_change=Bool}
```

View File

@ -0,0 +1,49 @@
---
title: account.password
description: Configuration for two-factor authorization
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/account_password.html
---
# Constructor: account.password
[Back to constructors index](index.md)
Configuration for two-factor authorization
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|has\_recovery|[Bool](../types/Bool.md) | Optional|Whether the user has a recovery method configured|
|has\_secure\_values|[Bool](../types/Bool.md) | Optional|Whether telegram [passport](https://core.telegram.org/passport) is enabled|
|has\_password|[Bool](../types/Bool.md) | Optional|Whether the user has a password|
|current\_algo|[PasswordKdfAlgo](../types/PasswordKdfAlgo.md) | Optional|The [KDF algorithm for SRP two-factor authentication](https://core.telegram.org/api/srp) of the current password|
|srp\_B|[bytes](../types/bytes.md) | Optional|Srp B param for [SRP authorization](https://core.telegram.org/api/srp)|
|srp\_id|[long](../types/long.md) | Optional|Srp ID param for [SRP authorization](https://core.telegram.org/api/srp)|
|hint|[string](../types/string.md) | Optional|Text hint for the password|
|email\_unconfirmed\_pattern|[string](../types/string.md) | Optional|A [password recovery email](https://core.telegram.org/api/srp#email-verification) with the specified [pattern](https://core.telegram.org/api/pattern) is still awaiting verification|
|new\_algo|[PasswordKdfAlgo](../types/PasswordKdfAlgo.md) | Yes|The [KDF algorithm for SRP two-factor authentication](https://core.telegram.org/api/srp) to use when creating new passwords|
|new\_secure\_algo|[SecurePasswordKdfAlgo](../types/SecurePasswordKdfAlgo.md) | Yes|The KDF algorithm for telegram [passport](https://core.telegram.org/passport)|
|secure\_random|[bytes](../types/bytes.md) | Yes|Secure random string|
### Type: [account.Password](../types/account.Password.md)
### Example:
```php
$account.password = ['_' => 'account.password', 'has_recovery' => Bool, 'has_secure_values' => Bool, 'has_password' => Bool, 'current_algo' => PasswordKdfAlgo, 'srp_B' => 'bytes', 'srp_id' => long, 'hint' => 'string', 'email_unconfirmed_pattern' => 'string', 'new_algo' => PasswordKdfAlgo, 'new_secure_algo' => SecurePasswordKdfAlgo, 'secure_random' => 'bytes'];
```
Or, if you're into Lua:
```lua
account.password={_='account.password', has_recovery=Bool, has_secure_values=Bool, has_password=Bool, current_algo=PasswordKdfAlgo, srp_B='bytes', srp_id=long, hint='string', email_unconfirmed_pattern='string', new_algo=PasswordKdfAlgo, new_secure_algo=SecurePasswordKdfAlgo, secure_random='bytes'}
```

View File

@ -0,0 +1,43 @@
---
title: account.passwordInputSettings
description: Settings for setting up a new password
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/account_passwordInputSettings.html
---
# Constructor: account.passwordInputSettings
[Back to constructors index](index.md)
Settings for setting up a new password
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|new\_algo|[PasswordKdfAlgo](../types/PasswordKdfAlgo.md) | Optional|The [SRP algorithm](https://core.telegram.org/api/srp) to use|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|The [computed password hash](https://core.telegram.org/api/srp)|
|hint|[string](../types/string.md) | Optional|Text hint for the password|
|email|[string](../types/string.md) | Optional|Password recovery email|
|new\_secure\_settings|[SecureSecretSettings](../types/SecureSecretSettings.md) | Optional|Telegram [passport](https://core.telegram.org/passport) settings|
### Type: [account.PasswordInputSettings](../types/account.PasswordInputSettings.md)
### Example:
```php
$account.passwordInputSettings = ['_' => 'account.passwordInputSettings', 'new_algo' => PasswordKdfAlgo, 'new_password_hash' => 'bytes', 'hint' => 'string', 'email' => 'string', 'new_secure_settings' => SecureSecretSettings];
```
Or, if you're into Lua:
```lua
account.passwordInputSettings={_='account.passwordInputSettings', new_algo=PasswordKdfAlgo, new_password_hash='bytes', hint='string', email='string', new_secure_settings=SecureSecretSettings}
```

View File

@ -0,0 +1,40 @@
---
title: account.passwordSettings
description: Private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on)
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/account_passwordSettings.html
---
# Constructor: account.passwordSettings
[Back to constructors index](index.md)
Private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport) info & so on)
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|email|[string](../types/string.md) | Optional|[2FA Recovery email](https://core.telegram.org/api/srp#email-verification)|
|secure\_settings|[SecureSecretSettings](../types/SecureSecretSettings.md) | Optional|Telegram [passport](https://core.telegram.org/passport) settings|
### Type: [account.PasswordSettings](../types/account.PasswordSettings.md)
### Example:
```php
$account.passwordSettings = ['_' => 'account.passwordSettings', 'email' => 'string', 'secure_settings' => SecureSecretSettings];
```
Or, if you're into Lua:
```lua
account.passwordSettings={_='account.passwordSettings', email='string', secure_settings=SecureSecretSettings}
```

View File

@ -0,0 +1,41 @@
---
title: account.privacyRules
description: Privacy rules
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/account_privacyRules.html
---
# Constructor: account.privacyRules
[Back to constructors index](index.md)
Privacy rules
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|rules|Array of [PrivacyRule](../types/PrivacyRule.md) | Yes|Rules|
|chats|Array of [Chat](../types/Chat.md) | Yes|Chats allowed?|
|users|Array of [User](../types/User.md) | Yes|Users|
### Type: [account.PrivacyRules](../types/account.PrivacyRules.md)
### Example:
```php
$account.privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'chats' => [Chat, Chat], 'users' => [User, User]];
```
Or, if you're into Lua:
```lua
account.privacyRules={_='account.privacyRules', rules={PrivacyRule}, chats={Chat}, users={User}}
```

View File

@ -0,0 +1,40 @@
---
title: account.sentEmailCode
description: The sent email code
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/account_sentEmailCode.html
---
# Constructor: account.sentEmailCode
[Back to constructors index](index.md)
The sent email code
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|email\_pattern|[string](../types/string.md) | Yes|The email (to which the code was sent) must match this [pattern](https://core.telegram.org/api/pattern)|
|length|[int](../types/int.md) | Yes|The length of the verification code|
### Type: [account.SentEmailCode](../types/account.SentEmailCode.md)
### Example:
```php
$account.sentEmailCode = ['_' => 'account.sentEmailCode', 'email_pattern' => 'string', 'length' => int];
```
Or, if you're into Lua:
```lua
account.sentEmailCode={_='account.sentEmailCode', email_pattern='string', length=int}
```

View File

@ -0,0 +1,39 @@
---
title: account.takeout
description: Takout info
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/account_takeout.html
---
# Constructor: account.takeout
[Back to constructors index](index.md)
Takout info
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|id|[long](../types/long.md) | Yes|Takeout ID|
### Type: [account.Takeout](../types/account.Takeout.md)
### Example:
```php
$account.takeout = ['_' => 'account.takeout', 'id' => long];
```
Or, if you're into Lua:
```lua
account.takeout={_='account.takeout', id=long}
```

View File

@ -0,0 +1,40 @@
---
title: account.themes
description: Installed themes
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/account_themes.html
---
# Constructor: account.themes
[Back to constructors index](index.md)
Installed themes
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|hash|[int](../types/int.md) | Yes|[Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation)|
|themes|Array of [Theme](../types/Theme.md) | Yes|Themes|
### Type: [account.Themes](../types/account.Themes.md)
### Example:
```php
$account.themes = ['_' => 'account.themes', 'hash' => int, 'themes' => [Theme, Theme]];
```
Or, if you're into Lua:
```lua
account.themes={_='account.themes', hash=int, themes={Theme}}
```

View File

@ -0,0 +1,34 @@
---
title: account.themesNotModified
description: No new themes were installed
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/account_themesNotModified.html
---
# Constructor: account.themesNotModified
[Back to constructors index](index.md)
No new themes were installed
### Type: [account.Themes](../types/account.Themes.md)
### Example:
```php
$account.themesNotModified = ['_' => 'account.themesNotModified'];
```
Or, if you're into Lua:
```lua
account.themesNotModified={_='account.themesNotModified'}
```

View File

@ -0,0 +1,40 @@
---
title: account.tmpPassword
description: Temporary payment password
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/account_tmpPassword.html
---
# Constructor: account.tmpPassword
[Back to constructors index](index.md)
Temporary payment password
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|tmp\_password|[bytes](../types/bytes.md) | Yes|Temporary password|
|valid\_until|[int](../types/int.md) | Yes|Validity period|
### Type: [account.TmpPassword](../types/account.TmpPassword.md)
### Example:
```php
$account.tmpPassword = ['_' => 'account.tmpPassword', 'tmp_password' => 'bytes', 'valid_until' => int];
```
Or, if you're into Lua:
```lua
account.tmpPassword={_='account.tmpPassword', tmp_password='bytes', valid_until=int}
```

View File

@ -0,0 +1,40 @@
---
title: account.wallPapers
description: Installed wallpapers
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/account_wallPapers.html
---
# Constructor: account.wallPapers
[Back to constructors index](index.md)
Installed wallpapers
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|hash|[int](../types/int.md) | Yes|[Hash for pagination, for more info click here](https://core.telegram.org/api/offsets#hash-generation)|
|wallpapers|Array of [WallPaper](../types/WallPaper.md) | Yes|Wallpapers|
### Type: [account.WallPapers](../types/account.WallPapers.md)
### Example:
```php
$account.wallPapers = ['_' => 'account.wallPapers', 'hash' => int, 'wallpapers' => [WallPaper, WallPaper]];
```
Or, if you're into Lua:
```lua
account.wallPapers={_='account.wallPapers', hash=int, wallpapers={WallPaper}}
```

View File

@ -0,0 +1,34 @@
---
title: account.wallPapersNotModified
description: No new wallpapers were found
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/account_wallPapersNotModified.html
---
# Constructor: account.wallPapersNotModified
[Back to constructors index](index.md)
No new wallpapers were found
### Type: [account.WallPapers](../types/account.WallPapers.md)
### Example:
```php
$account.wallPapersNotModified = ['_' => 'account.wallPapersNotModified'];
```
Or, if you're into Lua:
```lua
account.wallPapersNotModified={_='account.wallPapersNotModified'}
```

View File

@ -0,0 +1,40 @@
---
title: account.webAuthorizations
description: Web authorizations
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/account_webAuthorizations.html
---
# Constructor: account.webAuthorizations
[Back to constructors index](index.md)
Web authorizations
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|authorizations|Array of [WebAuthorization](../types/WebAuthorization.md) | Yes|Authorizations|
|users|Array of [User](../types/User.md) | Yes|Users|
### Type: [account.WebAuthorizations](../types/account.WebAuthorizations.md)
### Example:
```php
$account.webAuthorizations = ['_' => 'account.webAuthorizations', 'authorizations' => [WebAuthorization, WebAuthorization], 'users' => [User, User]];
```
Or, if you're into Lua:
```lua
account.webAuthorizations={_='account.webAuthorizations', authorizations={WebAuthorization}, users={User}}
```

View File

@ -0,0 +1,38 @@
---
title: accountDaysTTL
description: Time to live in days of the current account
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: accountDaysTTL
[Back to constructors index](index.md)
Time to live in days of the current account
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|days|[int](../types/int.md) | Yes|This account will self-destruct in the specified number of days|
### Type: [AccountDaysTTL](../types/AccountDaysTTL.md)
### Example:
```php
$accountDaysTTL = ['_' => 'accountDaysTTL', 'days' => int];
```
Or, if you're into Lua:
```lua
accountDaysTTL={_='accountDaysTTL', days=int}
```

View File

@ -0,0 +1,40 @@
---
title: auth.authorization
description: Contains user authorization info.
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/auth_authorization.html
---
# Constructor: auth.authorization
[Back to constructors index](index.md)
Contains user authorization info.
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|tmp\_sessions|[int](../types/int.md) | Optional|Temporary [passport](https://core.telegram.org/passport) sessions|
|user|[User](../types/User.md) | Optional|Info on authorized user|
### Type: [auth.Authorization](../types/auth.Authorization.md)
### Example:
```php
$auth.authorization = ['_' => 'auth.authorization', 'tmp_sessions' => int, 'user' => User];
```
Or, if you're into Lua:
```lua
auth.authorization={_='auth.authorization', tmp_sessions=int, user=User}
```

View File

@ -0,0 +1,39 @@
---
title: auth.authorizationSignUpRequired
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)
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/auth_authorizationSignUpRequired.html
---
# Constructor: auth.authorizationSignUpRequired
[Back to constructors index](index.md)
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)
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|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|
### 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}
```

View File

@ -0,0 +1,34 @@
---
title: auth.codeTypeCall
description: Type of verification code that will be sent next if you call the resendCode method: SMS code
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/auth_codeTypeCall.html
---
# Constructor: auth.codeTypeCall
[Back to constructors index](index.md)
Type of verification code that will be sent next if you call the resendCode method: SMS code
### Type: [auth.CodeType](../types/auth.CodeType.md)
### Example:
```php
$auth.codeTypeCall = ['_' => 'auth.codeTypeCall'];
```
Or, if you're into Lua:
```lua
auth.codeTypeCall={_='auth.codeTypeCall'}
```

View File

@ -0,0 +1,34 @@
---
title: auth.codeTypeFlashCall
description: Type of verification code that will be sent next if you call the resendCode method: SMS code
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/auth_codeTypeFlashCall.html
---
# Constructor: auth.codeTypeFlashCall
[Back to constructors index](index.md)
Type of verification code that will be sent next if you call the resendCode method: SMS code
### Type: [auth.CodeType](../types/auth.CodeType.md)
### Example:
```php
$auth.codeTypeFlashCall = ['_' => 'auth.codeTypeFlashCall'];
```
Or, if you're into Lua:
```lua
auth.codeTypeFlashCall={_='auth.codeTypeFlashCall'}
```

View File

@ -0,0 +1,34 @@
---
title: auth.codeTypeSms
description: Type of verification code that will be sent next if you call the resendCode method: SMS code
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/auth_codeTypeSms.html
---
# Constructor: auth.codeTypeSms
[Back to constructors index](index.md)
Type of verification code that will be sent next if you call the resendCode method: SMS code
### Type: [auth.CodeType](../types/auth.CodeType.md)
### Example:
```php
$auth.codeTypeSms = ['_' => 'auth.codeTypeSms'];
```
Or, if you're into Lua:
```lua
auth.codeTypeSms={_='auth.codeTypeSms'}
```

View File

@ -0,0 +1,40 @@
---
title: auth.exportedAuthorization
description: Data for copying of authorization between data centres.
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/auth_exportedAuthorization.html
---
# Constructor: auth.exportedAuthorization
[Back to constructors index](index.md)
Data for copying of authorization between data centres.
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|id|[int](../types/int.md) | Yes|Current user identifier|
|bytes|[bytes](../types/bytes.md) | Yes|Authorizes key|
### Type: [auth.ExportedAuthorization](../types/auth.ExportedAuthorization.md)
### Example:
```php
$auth.exportedAuthorization = ['_' => 'auth.exportedAuthorization', 'id' => int, 'bytes' => 'bytes'];
```
Or, if you're into Lua:
```lua
auth.exportedAuthorization={_='auth.exportedAuthorization', id=int, bytes='bytes'}
```

View File

@ -0,0 +1,38 @@
---
title: auth.loginToken
description: auth.loginToken attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/auth_loginToken.html
---
# Constructor: auth.loginToken
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|expires|[int](../types/int.md) | Yes|
|token|[bytes](../types/bytes.md) | Yes|
### Type: [auth.LoginToken](../types/auth.LoginToken.md)
### Example:
```php
$auth.loginToken = ['_' => 'auth.loginToken', 'expires' => int, 'token' => 'bytes'];
```
Or, if you're into Lua:
```lua
auth.loginToken={_='auth.loginToken', expires=int, token='bytes'}
```

View File

@ -0,0 +1,38 @@
---
title: auth.loginTokenMigrateTo
description: auth.loginTokenMigrateTo attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/auth_loginTokenMigrateTo.html
---
# Constructor: auth.loginTokenMigrateTo
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|dc\_id|[int](../types/int.md) | Yes|
|token|[bytes](../types/bytes.md) | Yes|
### Type: [auth.LoginToken](../types/auth.LoginToken.md)
### Example:
```php
$auth.loginTokenMigrateTo = ['_' => 'auth.loginTokenMigrateTo', 'dc_id' => int, 'token' => 'bytes'];
```
Or, if you're into Lua:
```lua
auth.loginTokenMigrateTo={_='auth.loginTokenMigrateTo', dc_id=int, token='bytes'}
```

View File

@ -0,0 +1,37 @@
---
title: auth.loginTokenSuccess
description: auth.loginTokenSuccess attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/auth_loginTokenSuccess.html
---
# Constructor: auth.loginTokenSuccess
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|authorization|[auth.Authorization](../constructors/auth.Authorization.md) | Yes|
### Type: [auth.LoginToken](../types/auth.LoginToken.md)
### Example:
```php
$auth.loginTokenSuccess = ['_' => 'auth.loginTokenSuccess', 'authorization' => auth.Authorization];
```
Or, if you're into Lua:
```lua
auth.loginTokenSuccess={_='auth.loginTokenSuccess', authorization=auth.Authorization}
```

Some files were not shown because too many files have changed in this diff Show More