Improved documentation generation

This commit is contained in:
danogentili 2016-12-19 19:48:27 +03:00
parent f88c9ab529
commit 7094200f40
636 changed files with 1095 additions and 1683 deletions

View File

@ -85,7 +85,9 @@ foreach ($TL->methods->method as $key => $method) {
'); ');
$params = ''; $params = '';
$table = '| Name | Type | Required | $table = empty($TL->methods->params[$key]) ? '' : '### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
'; ';
foreach ($TL->methods->params[$key] as $param) { foreach ($TL->methods->params[$key] as $param) {
@ -124,8 +126,6 @@ $'.$type.' = $MadelineProto->'.str_replace('.', '->', $method).'(['.$params.']);
```'); ```');
$header = str_replace('_', '\_', '## Method: '.$method.' $header = str_replace('_', '\_', '## Method: '.$method.'
### Parameters:
'.$table.' '.$table.'
### Return type: ['.$type.'](../types/'.$real_type.'.md) ### Return type: ['.$type.'](../types/'.$real_type.'.md)
@ -186,8 +186,8 @@ foreach ($TL->constructors->predicate as $key => $constructor) {
$params .= "'".$param['name']."' => "; $params .= "'".$param['name']."' => ";
$params .= (isset($param['subtype']) ? '[' : '').'['.$ptype.'](../'.$link_type.'/'.$ptype.'.md)'.(isset($param['subtype']) ? ']' : '').', '; $params .= (isset($param['subtype']) ? '[' : '').'['.$ptype.'](../'.$link_type.'/'.$ptype.'.md)'.(isset($param['subtype']) ? ']' : '').', ';
} }
$params = "\[".$params.'\]';
$constructors[$constructor] = str_replace(['_', '\[\]'], ['\_', ''], '[$'.$real_type.'](../types/'.$real_type.'.md)\[\'['.str_replace('.', '->', $constructor).']('.$constructor.'.md)\'\] = \['.$params.'\] $constructors[$constructor] = str_replace(['_'], ['\_'], '[$'.$real_type.'](../types/'.$real_type.'.md) = '.$params.';
'); ');
@ -197,11 +197,12 @@ foreach ($TL->constructors->predicate as $key => $constructor) {
if (!in_array($key, $types[$real_type])) { if (!in_array($key, $types[$real_type])) {
$types[$real_type][] = $key; $types[$real_type][] = $key;
} }
$table = empty($TL->constructors->params[$key]) ? '' : '### Attributes:
$params = ''; | Name | Type | Required |
$table = '| Name | Type | Required |
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
'; ';
$params = '';
foreach ($TL->constructors->params[$key] as $param) { foreach ($TL->constructors->params[$key] as $param) {
if ($param['name'] == 'flags') { if ($param['name'] == 'flags') {
continue; continue;
@ -223,15 +224,15 @@ foreach ($TL->constructors->predicate as $key => $constructor) {
'; ';
$params .= "'".$param['name']."' => "; $params .= "'".$param['name']."' => ";
$params .= (isset($param['subtype']) ? '['.$ptype.']' : $ptype).', '; $params .= (isset($param['subtype']) ? '['.$param['type'].']' : $param['type']).', ';
} }
$example = str_replace('[]', '', ' $params = "['_' => ".$constructor."', ".$params.']';
```
$'.$constructor.' = ['.$params.'];
```');
$header = str_replace('_', '\_', '## Constructor: '.$constructor.'
### Attributes: $example = '
```
$'.$constructor.' = '.$params.';
```';
$header = str_replace('_', '\_', '## Constructor: '.$constructor.'
'.$table.' '.$table.'
@ -277,7 +278,7 @@ foreach ($types as $type => $keys) {
} }
$header = str_replace('_', '\_', '## Type: '.$type.' $header = str_replace('_', '\_', '## Type: '.$type.'
### Constructors: ### Possible values (constructors):
'.$constructors); '.$constructors);
file_put_contents('types/'.$type.'.md', $header); file_put_contents('types/'.$type.'.md', $header);
@ -319,4 +320,13 @@ file_put_contents('types/index.md', '# Types
'.$index); '.$index);
file_put_contents('constructors/boolFalse.md', '# boolFalse
Represents boolean with value equal to `false`.');
file_put_contents('constructors/boolTrue.md', '# boolTrue
Represents boolean with value equal to `true`.');
\danog\MadelineProto\Logger::log('Done!'); \danog\MadelineProto\Logger::log('Done!');

View File

@ -13,5 +13,5 @@
``` ```
$accountDaysTTL = ['days' => int, ]; $accountDaysTTL = ['_' => accountDaysTTL', 'days' => int, ];
``` ```

View File

@ -13,5 +13,5 @@
``` ```
$account_authorizations = ['authorizations' => [Authorization], ]; $account_authorizations = ['_' => account_authorizations', 'authorizations' => [Vector t], ];
``` ```

View File

@ -14,5 +14,5 @@
``` ```
$account_noPassword = ['new_salt' => bytes, 'email_unconfirmed_pattern' => string, ]; $account_noPassword = ['_' => account_noPassword', 'new_salt' => bytes, 'email_unconfirmed_pattern' => string, ];
``` ```

View File

@ -17,5 +17,5 @@
``` ```
$account_password = ['current_salt' => bytes, 'new_salt' => bytes, 'hint' => string, 'has_recovery' => Bool, 'email_unconfirmed_pattern' => string, ]; $account_password = ['_' => account_password', 'current_salt' => bytes, 'new_salt' => bytes, 'hint' => string, 'has_recovery' => Bool, 'email_unconfirmed_pattern' => string, ];
``` ```

View File

@ -16,5 +16,5 @@
``` ```
$account_passwordInputSettings = ['new_salt' => bytes, 'new_password_hash' => bytes, 'hint' => string, 'email' => string, ]; $account_passwordInputSettings = ['_' => account_passwordInputSettings', 'new_salt' => bytes, 'new_password_hash' => bytes, 'hint' => string, 'email' => string, ];
``` ```

View File

@ -13,5 +13,5 @@
``` ```
$account_passwordSettings = ['email' => string, ]; $account_passwordSettings = ['_' => account_passwordSettings', 'email' => string, ];
``` ```

View File

@ -14,5 +14,5 @@
``` ```
$account_privacyRules = ['rules' => [PrivacyRule], 'users' => [User], ]; $account_privacyRules = ['_' => account_privacyRules', 'rules' => [Vector t], 'users' => [Vector t], ];
``` ```

View File

@ -14,5 +14,5 @@
``` ```
$auth_authorization = ['tmp_sessions' => int, 'user' => User, ]; $auth_authorization = ['_' => auth_authorization', 'tmp_sessions' => int, 'user' => User, ];
``` ```

View File

@ -13,5 +13,5 @@
``` ```
$auth_checkedPhone = ['phone_registered' => Bool, ]; $auth_checkedPhone = ['_' => auth_checkedPhone', 'phone_registered' => Bool, ];
``` ```

View File

@ -1,9 +1,5 @@
## Constructor: auth\_codeTypeCall ## Constructor: auth\_codeTypeCall
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
### Type: [auth\_CodeType](../types/auth\_CodeType.md) ### Type: [auth\_CodeType](../types/auth\_CodeType.md)
@ -12,5 +8,5 @@
``` ```
$auth_codeTypeCall = ; $auth_codeTypeCall = ['_' => auth_codeTypeCall', ];
``` ```

View File

@ -1,9 +1,5 @@
## Constructor: auth\_codeTypeFlashCall ## Constructor: auth\_codeTypeFlashCall
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
### Type: [auth\_CodeType](../types/auth\_CodeType.md) ### Type: [auth\_CodeType](../types/auth\_CodeType.md)
@ -12,5 +8,5 @@
``` ```
$auth_codeTypeFlashCall = ; $auth_codeTypeFlashCall = ['_' => auth_codeTypeFlashCall', ];
``` ```

View File

@ -1,9 +1,5 @@
## Constructor: auth\_codeTypeSms ## Constructor: auth\_codeTypeSms
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
### Type: [auth\_CodeType](../types/auth\_CodeType.md) ### Type: [auth\_CodeType](../types/auth\_CodeType.md)
@ -12,5 +8,5 @@
``` ```
$auth_codeTypeSms = ; $auth_codeTypeSms = ['_' => auth_codeTypeSms', ];
``` ```

View File

@ -14,5 +14,5 @@
``` ```
$auth_exportedAuthorization = ['id' => int, 'bytes' => bytes, ]; $auth_exportedAuthorization = ['_' => auth_exportedAuthorization', 'id' => int, 'bytes' => bytes, ];
``` ```

View File

@ -13,5 +13,5 @@
``` ```
$auth_passwordRecovery = ['email_pattern' => string, ]; $auth_passwordRecovery = ['_' => auth_passwordRecovery', 'email_pattern' => string, ];
``` ```

View File

@ -17,5 +17,5 @@
``` ```
$auth_sentCode = ['phone_registered' => Bool, 'type' => auth_SentCodeType, 'phone_code_hash' => string, 'next_type' => auth_CodeType, 'timeout' => int, ]; $auth_sentCode = ['_' => auth_sentCode', 'phone_registered' => true, 'type' => auth.SentCodeType, 'phone_code_hash' => string, 'next_type' => auth.CodeType, 'timeout' => int, ];
``` ```

View File

@ -13,5 +13,5 @@
``` ```
$auth_sentCodeTypeApp = ['length' => int, ]; $auth_sentCodeTypeApp = ['_' => auth_sentCodeTypeApp', 'length' => int, ];
``` ```

View File

@ -13,5 +13,5 @@
``` ```
$auth_sentCodeTypeCall = ['length' => int, ]; $auth_sentCodeTypeCall = ['_' => auth_sentCodeTypeCall', 'length' => int, ];
``` ```

View File

@ -13,5 +13,5 @@
``` ```
$auth_sentCodeTypeFlashCall = ['pattern' => string, ]; $auth_sentCodeTypeFlashCall = ['_' => auth_sentCodeTypeFlashCall', 'pattern' => string, ];
``` ```

View File

@ -13,5 +13,5 @@
``` ```
$auth_sentCodeTypeSms = ['length' => int, ]; $auth_sentCodeTypeSms = ['_' => auth_sentCodeTypeSms', 'length' => int, ];
``` ```

View File

@ -24,5 +24,5 @@
``` ```
$authorization = ['hash' => long, 'device_model' => string, 'platform' => string, 'system_version' => string, 'api_id' => int, 'app_name' => string, 'app_version' => string, 'date_created' => int, 'date_active' => int, 'ip' => string, 'country' => string, 'region' => string, ]; $authorization = ['_' => authorization', 'hash' => long, 'device_model' => string, 'platform' => string, 'system_version' => string, 'api_id' => int, 'app_name' => string, 'app_version' => string, 'date_created' => int, 'date_active' => int, 'ip' => string, 'country' => string, 'region' => string, ];
``` ```

View File

@ -1,16 +1,3 @@
## Constructor: boolFalse # boolFalse
### Attributes: Represents boolean with value equal to `false`.
| Name | Type | Required |
|----------|:-------------:|---------:|
### Type: [Bool](../types/Bool.md)
### Example:
```
$boolFalse = ;
```

View File

@ -1,16 +1,3 @@
## Constructor: boolTrue # boolTrue
### Attributes: Represents boolean with value equal to `true`.
| Name | Type | Required |
|----------|:-------------:|---------:|
### Type: [Bool](../types/Bool.md)
### Example:
```
$boolTrue = ;
```

View File

@ -14,5 +14,5 @@
``` ```
$botCommand = ['command' => string, 'description' => string, ]; $botCommand = ['_' => botCommand', 'command' => string, 'description' => string, ];
``` ```

View File

@ -15,5 +15,5 @@
``` ```
$botInfo = ['user_id' => int, 'description' => string, 'commands' => [BotCommand], ]; $botInfo = ['_' => botInfo', 'user_id' => int, 'description' => string, 'commands' => [Vector t], ];
``` ```

View File

@ -19,5 +19,5 @@
``` ```
$botInlineMediaResult = ['id' => string, 'type' => string, 'photo' => Photo, 'document' => Document, 'title' => string, 'description' => string, 'send_message' => BotInlineMessage, ]; $botInlineMediaResult = ['_' => botInlineMediaResult', 'id' => string, 'type' => string, 'photo' => Photo, 'document' => Document, 'title' => string, 'description' => string, 'send_message' => BotInlineMessage, ];
``` ```

View File

@ -14,5 +14,5 @@
``` ```
$botInlineMessageMediaAuto = ['caption' => string, 'reply_markup' => ReplyMarkup, ]; $botInlineMessageMediaAuto = ['_' => botInlineMessageMediaAuto', 'caption' => string, 'reply_markup' => ReplyMarkup, ];
``` ```

View File

@ -16,5 +16,5 @@
``` ```
$botInlineMessageMediaContact = ['phone_number' => string, 'first_name' => string, 'last_name' => string, 'reply_markup' => ReplyMarkup, ]; $botInlineMessageMediaContact = ['_' => botInlineMessageMediaContact', 'phone_number' => string, 'first_name' => string, 'last_name' => string, 'reply_markup' => ReplyMarkup, ];
``` ```

View File

@ -14,5 +14,5 @@
``` ```
$botInlineMessageMediaGeo = ['geo' => GeoPoint, 'reply_markup' => ReplyMarkup, ]; $botInlineMessageMediaGeo = ['_' => botInlineMessageMediaGeo', 'geo' => GeoPoint, 'reply_markup' => ReplyMarkup, ];
``` ```

View File

@ -18,5 +18,5 @@
``` ```
$botInlineMessageMediaVenue = ['geo' => GeoPoint, 'title' => string, 'address' => string, 'provider' => string, 'venue_id' => string, 'reply_markup' => ReplyMarkup, ]; $botInlineMessageMediaVenue = ['_' => botInlineMessageMediaVenue', 'geo' => GeoPoint, 'title' => string, 'address' => string, 'provider' => string, 'venue_id' => string, 'reply_markup' => ReplyMarkup, ];
``` ```

View File

@ -16,5 +16,5 @@
``` ```
$botInlineMessageText = ['no_webpage' => Bool, 'message' => string, 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup, ]; $botInlineMessageText = ['_' => botInlineMessageText', 'no_webpage' => true, 'message' => string, 'entities' => [Vector t], 'reply_markup' => ReplyMarkup, ];
``` ```

View File

@ -24,5 +24,5 @@
``` ```
$botInlineResult = ['id' => string, 'type' => string, 'title' => string, 'description' => string, 'url' => string, 'thumb_url' => string, 'content_url' => string, 'content_type' => string, 'w' => int, 'h' => int, 'duration' => int, 'send_message' => BotInlineMessage, ]; $botInlineResult = ['_' => botInlineResult', 'id' => string, 'type' => string, 'title' => string, 'description' => string, 'url' => string, 'thumb_url' => string, 'content_url' => string, 'content_type' => string, 'w' => int, 'h' => int, 'duration' => int, 'send_message' => BotInlineMessage, ];
``` ```

View File

@ -32,5 +32,5 @@
``` ```
$channel = ['creator' => Bool, 'kicked' => Bool, 'left' => Bool, 'editor' => Bool, 'moderator' => Bool, 'broadcast' => Bool, 'verified' => Bool, 'megagroup' => Bool, 'restricted' => Bool, 'democracy' => Bool, 'signatures' => Bool, 'min' => Bool, 'id' => int, 'access_hash' => long, 'title' => string, 'username' => string, 'photo' => ChatPhoto, 'date' => int, 'version' => int, 'restriction_reason' => string, ]; $channel = ['_' => channel', 'creator' => true, 'kicked' => true, 'left' => true, 'editor' => true, 'moderator' => true, 'broadcast' => true, 'verified' => true, 'megagroup' => true, 'restricted' => true, 'democracy' => true, 'signatures' => true, 'min' => true, 'id' => int, 'access_hash' => long, 'title' => string, 'username' => string, 'photo' => ChatPhoto, 'date' => int, 'version' => int, 'restriction_reason' => string, ];
``` ```

View File

@ -17,5 +17,5 @@
``` ```
$channelForbidden = ['broadcast' => Bool, 'megagroup' => Bool, 'id' => int, 'access_hash' => long, 'title' => string, ]; $channelForbidden = ['_' => channelForbidden', 'broadcast' => true, 'megagroup' => true, 'id' => int, 'access_hash' => long, 'title' => string, ];
``` ```

View File

@ -29,5 +29,5 @@
``` ```
$channelFull = ['can_view_participants' => Bool, 'can_set_username' => Bool, 'id' => int, 'about' => string, 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo], 'migrated_from_chat_id' => int, 'migrated_from_max_id' => int, 'pinned_msg_id' => int, ]; $channelFull = ['_' => channelFull', 'can_view_participants' => true, 'can_set_username' => true, 'id' => int, 'about' => string, 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [Vector t], 'migrated_from_chat_id' => int, 'migrated_from_max_id' => int, 'pinned_msg_id' => int, ];
``` ```

View File

@ -14,5 +14,5 @@
``` ```
$channelMessagesFilter = ['exclude_new_messages' => Bool, 'ranges' => [MessageRange], ]; $channelMessagesFilter = ['_' => channelMessagesFilter', 'exclude_new_messages' => true, 'ranges' => [Vector t], ];
``` ```

View File

@ -1,9 +1,5 @@
## Constructor: channelMessagesFilterEmpty ## Constructor: channelMessagesFilterEmpty
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
### Type: [ChannelMessagesFilter](../types/ChannelMessagesFilter.md) ### Type: [ChannelMessagesFilter](../types/ChannelMessagesFilter.md)
@ -12,5 +8,5 @@
``` ```
$channelMessagesFilterEmpty = ; $channelMessagesFilterEmpty = ['_' => channelMessagesFilterEmpty', ];
``` ```

View File

@ -14,5 +14,5 @@
``` ```
$channelParticipant = ['user_id' => int, 'date' => int, ]; $channelParticipant = ['_' => channelParticipant', 'user_id' => int, 'date' => int, ];
``` ```

View File

@ -13,5 +13,5 @@
``` ```
$channelParticipantCreator = ['user_id' => int, ]; $channelParticipantCreator = ['_' => channelParticipantCreator', 'user_id' => int, ];
``` ```

View File

@ -15,5 +15,5 @@
``` ```
$channelParticipantEditor = ['user_id' => int, 'inviter_id' => int, 'date' => int, ]; $channelParticipantEditor = ['_' => channelParticipantEditor', 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
``` ```

View File

@ -15,5 +15,5 @@
``` ```
$channelParticipantKicked = ['user_id' => int, 'kicked_by' => int, 'date' => int, ]; $channelParticipantKicked = ['_' => channelParticipantKicked', 'user_id' => int, 'kicked_by' => int, 'date' => int, ];
``` ```

View File

@ -15,5 +15,5 @@
``` ```
$channelParticipantModerator = ['user_id' => int, 'inviter_id' => int, 'date' => int, ]; $channelParticipantModerator = ['_' => channelParticipantModerator', 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
``` ```

View File

@ -15,5 +15,5 @@
``` ```
$channelParticipantSelf = ['user_id' => int, 'inviter_id' => int, 'date' => int, ]; $channelParticipantSelf = ['_' => channelParticipantSelf', 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
``` ```

View File

@ -1,9 +1,5 @@
## Constructor: channelParticipantsAdmins ## Constructor: channelParticipantsAdmins
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
### Type: [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) ### Type: [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md)
@ -12,5 +8,5 @@
``` ```
$channelParticipantsAdmins = ; $channelParticipantsAdmins = ['_' => channelParticipantsAdmins', ];
``` ```

View File

@ -1,9 +1,5 @@
## Constructor: channelParticipantsBots ## Constructor: channelParticipantsBots
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
### Type: [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) ### Type: [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md)
@ -12,5 +8,5 @@
``` ```
$channelParticipantsBots = ; $channelParticipantsBots = ['_' => channelParticipantsBots', ];
``` ```

View File

@ -1,9 +1,5 @@
## Constructor: channelParticipantsKicked ## Constructor: channelParticipantsKicked
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
### Type: [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) ### Type: [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md)
@ -12,5 +8,5 @@
``` ```
$channelParticipantsKicked = ; $channelParticipantsKicked = ['_' => channelParticipantsKicked', ];
``` ```

View File

@ -1,9 +1,5 @@
## Constructor: channelParticipantsRecent ## Constructor: channelParticipantsRecent
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
### Type: [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md) ### Type: [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md)
@ -12,5 +8,5 @@
``` ```
$channelParticipantsRecent = ; $channelParticipantsRecent = ['_' => channelParticipantsRecent', ];
``` ```

View File

@ -1,9 +1,5 @@
## Constructor: channelRoleEditor ## Constructor: channelRoleEditor
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
### Type: [ChannelParticipantRole](../types/ChannelParticipantRole.md) ### Type: [ChannelParticipantRole](../types/ChannelParticipantRole.md)
@ -12,5 +8,5 @@
``` ```
$channelRoleEditor = ; $channelRoleEditor = ['_' => channelRoleEditor', ];
``` ```

View File

@ -1,9 +1,5 @@
## Constructor: channelRoleEmpty ## Constructor: channelRoleEmpty
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
### Type: [ChannelParticipantRole](../types/ChannelParticipantRole.md) ### Type: [ChannelParticipantRole](../types/ChannelParticipantRole.md)
@ -12,5 +8,5 @@
``` ```
$channelRoleEmpty = ; $channelRoleEmpty = ['_' => channelRoleEmpty', ];
``` ```

View File

@ -1,9 +1,5 @@
## Constructor: channelRoleModerator ## Constructor: channelRoleModerator
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
### Type: [ChannelParticipantRole](../types/ChannelParticipantRole.md) ### Type: [ChannelParticipantRole](../types/ChannelParticipantRole.md)
@ -12,5 +8,5 @@
``` ```
$channelRoleModerator = ; $channelRoleModerator = ['_' => channelRoleModerator', ];
``` ```

View File

@ -14,5 +14,5 @@
``` ```
$channels_channelParticipant = ['participant' => ChannelParticipant, 'users' => [User], ]; $channels_channelParticipant = ['_' => channels_channelParticipant', 'participant' => ChannelParticipant, 'users' => [Vector t], ];
``` ```

View File

@ -15,5 +15,5 @@
``` ```
$channels_channelParticipants = ['count' => int, 'participants' => [ChannelParticipant], 'users' => [User], ]; $channels_channelParticipants = ['_' => channels_channelParticipants', 'count' => int, 'participants' => [Vector t], 'users' => [Vector t], ];
``` ```

View File

@ -25,5 +25,5 @@
``` ```
$chat = ['creator' => Bool, 'kicked' => Bool, 'left' => Bool, 'admins_enabled' => Bool, 'admin' => Bool, 'deactivated' => Bool, 'id' => int, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'version' => int, 'migrated_to' => InputChannel, ]; $chat = ['_' => chat', 'creator' => true, 'kicked' => true, 'left' => true, 'admins_enabled' => true, 'admin' => true, 'deactivated' => true, 'id' => int, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'version' => int, 'migrated_to' => InputChannel, ];
``` ```

View File

@ -13,5 +13,5 @@
``` ```
$chatEmpty = ['id' => int, ]; $chatEmpty = ['_' => chatEmpty', 'id' => int, ];
``` ```

View File

@ -14,5 +14,5 @@
``` ```
$chatForbidden = ['id' => int, 'title' => string, ]; $chatForbidden = ['_' => chatForbidden', 'id' => int, 'title' => string, ];
``` ```

View File

@ -18,5 +18,5 @@
``` ```
$chatFull = ['id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo], ]; $chatFull = ['_' => chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [Vector t], ];
``` ```

View File

@ -20,5 +20,5 @@
``` ```
$chatInvite = ['channel' => Bool, 'broadcast' => Bool, 'public' => Bool, 'megagroup' => Bool, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'participants' => [User], ]; $chatInvite = ['_' => chatInvite', 'channel' => true, 'broadcast' => true, 'public' => true, 'megagroup' => true, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'participants' => [Vector t], ];
``` ```

View File

@ -13,5 +13,5 @@
``` ```
$chatInviteAlready = ['chat' => Chat, ]; $chatInviteAlready = ['_' => chatInviteAlready', 'chat' => Chat, ];
``` ```

View File

@ -1,9 +1,5 @@
## Constructor: chatInviteEmpty ## Constructor: chatInviteEmpty
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
### Type: [ExportedChatInvite](../types/ExportedChatInvite.md) ### Type: [ExportedChatInvite](../types/ExportedChatInvite.md)
@ -12,5 +8,5 @@
``` ```
$chatInviteEmpty = ; $chatInviteEmpty = ['_' => chatInviteEmpty', ];
``` ```

View File

@ -13,5 +13,5 @@
``` ```
$chatInviteExported = ['link' => string, ]; $chatInviteExported = ['_' => chatInviteExported', 'link' => string, ];
``` ```

View File

@ -15,5 +15,5 @@
``` ```
$chatParticipant = ['user_id' => int, 'inviter_id' => int, 'date' => int, ]; $chatParticipant = ['_' => chatParticipant', 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
``` ```

View File

@ -15,5 +15,5 @@
``` ```
$chatParticipantAdmin = ['user_id' => int, 'inviter_id' => int, 'date' => int, ]; $chatParticipantAdmin = ['_' => chatParticipantAdmin', 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
``` ```

View File

@ -13,5 +13,5 @@
``` ```
$chatParticipantCreator = ['user_id' => int, ]; $chatParticipantCreator = ['_' => chatParticipantCreator', 'user_id' => int, ];
``` ```

View File

@ -15,5 +15,5 @@
``` ```
$chatParticipants = ['chat_id' => int, 'participants' => [ChatParticipant], 'version' => int, ]; $chatParticipants = ['_' => chatParticipants', 'chat_id' => int, 'participants' => [Vector t], 'version' => int, ];
``` ```

View File

@ -14,5 +14,5 @@
``` ```
$chatParticipantsForbidden = ['chat_id' => int, 'self_participant' => ChatParticipant, ]; $chatParticipantsForbidden = ['_' => chatParticipantsForbidden', 'chat_id' => int, 'self_participant' => ChatParticipant, ];
``` ```

View File

@ -14,5 +14,5 @@
``` ```
$chatPhoto = ['photo_small' => FileLocation, 'photo_big' => FileLocation, ]; $chatPhoto = ['_' => chatPhoto', 'photo_small' => FileLocation, 'photo_big' => FileLocation, ];
``` ```

View File

@ -1,9 +1,5 @@
## Constructor: chatPhotoEmpty ## Constructor: chatPhotoEmpty
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
### Type: [ChatPhoto](../types/ChatPhoto.md) ### Type: [ChatPhoto](../types/ChatPhoto.md)
@ -12,5 +8,5 @@
``` ```
$chatPhotoEmpty = ; $chatPhotoEmpty = ['_' => chatPhotoEmpty', ];
``` ```

View File

@ -35,5 +35,5 @@
``` ```
$config = ['date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], 'chat_size_max' => int, 'megagroup_size_max' => int, 'forwarded_count_max' => int, 'online_update_period_ms' => int, 'offline_blur_timeout_ms' => int, 'offline_idle_timeout_ms' => int, 'online_cloud_timeout_ms' => int, 'notify_cloud_delay_ms' => int, 'notify_default_delay_ms' => int, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => int, 'tmp_sessions' => int, 'disabled_features' => [DisabledFeature], ]; $config = ['_' => config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [Vector t], 'chat_size_max' => int, 'megagroup_size_max' => int, 'forwarded_count_max' => int, 'online_update_period_ms' => int, 'offline_blur_timeout_ms' => int, 'offline_idle_timeout_ms' => int, 'online_cloud_timeout_ms' => int, 'notify_cloud_delay_ms' => int, 'notify_default_delay_ms' => int, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => int, 'tmp_sessions' => int, 'disabled_features' => [Vector t], ];
``` ```

View File

@ -14,5 +14,5 @@
``` ```
$contact = ['user_id' => int, 'mutual' => Bool, ]; $contact = ['_' => contact', 'user_id' => int, 'mutual' => Bool, ];
``` ```

View File

@ -14,5 +14,5 @@
``` ```
$contactBlocked = ['user_id' => int, 'date' => int, ]; $contactBlocked = ['_' => contactBlocked', 'user_id' => int, 'date' => int, ];
``` ```

View File

@ -1,9 +1,5 @@
## Constructor: contactLinkContact ## Constructor: contactLinkContact
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
### Type: [ContactLink](../types/ContactLink.md) ### Type: [ContactLink](../types/ContactLink.md)
@ -12,5 +8,5 @@
``` ```
$contactLinkContact = ; $contactLinkContact = ['_' => contactLinkContact', ];
``` ```

View File

@ -1,9 +1,5 @@
## Constructor: contactLinkHasPhone ## Constructor: contactLinkHasPhone
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
### Type: [ContactLink](../types/ContactLink.md) ### Type: [ContactLink](../types/ContactLink.md)
@ -12,5 +8,5 @@
``` ```
$contactLinkHasPhone = ; $contactLinkHasPhone = ['_' => contactLinkHasPhone', ];
``` ```

View File

@ -1,9 +1,5 @@
## Constructor: contactLinkNone ## Constructor: contactLinkNone
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
### Type: [ContactLink](../types/ContactLink.md) ### Type: [ContactLink](../types/ContactLink.md)
@ -12,5 +8,5 @@
``` ```
$contactLinkNone = ; $contactLinkNone = ['_' => contactLinkNone', ];
``` ```

View File

@ -1,9 +1,5 @@
## Constructor: contactLinkUnknown ## Constructor: contactLinkUnknown
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
### Type: [ContactLink](../types/ContactLink.md) ### Type: [ContactLink](../types/ContactLink.md)
@ -12,5 +8,5 @@
``` ```
$contactLinkUnknown = ; $contactLinkUnknown = ['_' => contactLinkUnknown', ];
``` ```

View File

@ -14,5 +14,5 @@
``` ```
$contactStatus = ['user_id' => int, 'status' => UserStatus, ]; $contactStatus = ['_' => contactStatus', 'user_id' => int, 'status' => UserStatus, ];
``` ```

View File

@ -14,5 +14,5 @@
``` ```
$contacts_blocked = ['blocked' => [ContactBlocked], 'users' => [User], ]; $contacts_blocked = ['_' => contacts_blocked', 'blocked' => [Vector t], 'users' => [Vector t], ];
``` ```

View File

@ -15,5 +15,5 @@
``` ```
$contacts_blockedSlice = ['count' => int, 'blocked' => [ContactBlocked], 'users' => [User], ]; $contacts_blockedSlice = ['_' => contacts_blockedSlice', 'count' => int, 'blocked' => [Vector t], 'users' => [Vector t], ];
``` ```

View File

@ -14,5 +14,5 @@
``` ```
$contacts_contacts = ['contacts' => [Contact], 'users' => [User], ]; $contacts_contacts = ['_' => contacts_contacts', 'contacts' => [Vector t], 'users' => [Vector t], ];
``` ```

View File

@ -1,9 +1,5 @@
## Constructor: contacts\_contactsNotModified ## Constructor: contacts\_contactsNotModified
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
### Type: [contacts\_Contacts](../types/contacts\_Contacts.md) ### Type: [contacts\_Contacts](../types/contacts\_Contacts.md)
@ -12,5 +8,5 @@
``` ```
$contacts_contactsNotModified = ; $contacts_contactsNotModified = ['_' => contacts_contactsNotModified', ];
``` ```

View File

@ -15,5 +15,5 @@
``` ```
$contacts_found = ['results' => [Peer], 'chats' => [Chat], 'users' => [User], ]; $contacts_found = ['_' => contacts_found', 'results' => [Vector t], 'chats' => [Vector t], 'users' => [Vector t], ];
``` ```

View File

@ -15,5 +15,5 @@
``` ```
$contacts_importedContacts = ['imported' => [ImportedContact], 'retry_contacts' => [long], 'users' => [User], ]; $contacts_importedContacts = ['_' => contacts_importedContacts', 'imported' => [Vector t], 'retry_contacts' => [Vector t], 'users' => [Vector t], ];
``` ```

View File

@ -15,5 +15,5 @@
``` ```
$contacts_link = ['my_link' => ContactLink, 'foreign_link' => ContactLink, 'user' => User, ]; $contacts_link = ['_' => contacts_link', 'my_link' => ContactLink, 'foreign_link' => ContactLink, 'user' => User, ];
``` ```

View File

@ -15,5 +15,5 @@
``` ```
$contacts_resolvedPeer = ['peer' => Peer, 'chats' => [Chat], 'users' => [User], ]; $contacts_resolvedPeer = ['_' => contacts_resolvedPeer', 'peer' => Peer, 'chats' => [Vector t], 'users' => [Vector t], ];
``` ```

View File

@ -15,5 +15,5 @@
``` ```
$contacts_topPeers = ['categories' => [TopPeerCategoryPeers], 'chats' => [Chat], 'users' => [User], ]; $contacts_topPeers = ['_' => contacts_topPeers', 'categories' => [Vector t], 'chats' => [Vector t], 'users' => [Vector t], ];
``` ```

View File

@ -1,9 +1,5 @@
## Constructor: contacts\_topPeersNotModified ## Constructor: contacts\_topPeersNotModified
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
### Type: [contacts\_TopPeers](../types/contacts\_TopPeers.md) ### Type: [contacts\_TopPeers](../types/contacts\_TopPeers.md)
@ -12,5 +8,5 @@
``` ```
$contacts_topPeersNotModified = ; $contacts_topPeersNotModified = ['_' => contacts_topPeersNotModified', ];
``` ```

View File

@ -18,5 +18,5 @@
``` ```
$dcOption = ['ipv6' => Bool, 'media_only' => Bool, 'tcpo_only' => Bool, 'id' => int, 'ip_address' => string, 'port' => int, ]; $dcOption = ['_' => dcOption', 'ipv6' => true, 'media_only' => true, 'tcpo_only' => true, 'id' => int, 'ip_address' => string, 'port' => int, ];
``` ```

View File

@ -20,5 +20,5 @@
``` ```
$dialog = ['peer' => Peer, 'top_message' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'notify_settings' => PeerNotifySettings, 'pts' => int, 'draft' => DraftMessage, ]; $dialog = ['_' => dialog', 'peer' => Peer, 'top_message' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'notify_settings' => PeerNotifySettings, 'pts' => int, 'draft' => DraftMessage, ];
``` ```

View File

@ -14,5 +14,5 @@
``` ```
$disabledFeature = ['feature' => string, 'description' => string, ]; $disabledFeature = ['_' => disabledFeature', 'feature' => string, 'description' => string, ];
``` ```

View File

@ -21,5 +21,5 @@
``` ```
$document = ['id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => string, 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute], ]; $document = ['_' => document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => string, 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [Vector t], ];
``` ```

View File

@ -1,9 +1,5 @@
## Constructor: documentAttributeAnimated ## Constructor: documentAttributeAnimated
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
### Type: [DocumentAttribute](../types/DocumentAttribute.md) ### Type: [DocumentAttribute](../types/DocumentAttribute.md)
@ -12,5 +8,5 @@
``` ```
$documentAttributeAnimated = ; $documentAttributeAnimated = ['_' => documentAttributeAnimated', ];
``` ```

View File

@ -17,5 +17,5 @@
``` ```
$documentAttributeAudio = ['voice' => Bool, 'duration' => int, 'title' => string, 'performer' => string, 'waveform' => bytes, ]; $documentAttributeAudio = ['_' => documentAttributeAudio', 'voice' => true, 'duration' => int, 'title' => string, 'performer' => string, 'waveform' => bytes, ];
``` ```

View File

@ -13,5 +13,5 @@
``` ```
$documentAttributeFilename = ['file_name' => string, ]; $documentAttributeFilename = ['_' => documentAttributeFilename', 'file_name' => string, ];
``` ```

View File

@ -1,9 +1,5 @@
## Constructor: documentAttributeHasStickers ## Constructor: documentAttributeHasStickers
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
### Type: [DocumentAttribute](../types/DocumentAttribute.md) ### Type: [DocumentAttribute](../types/DocumentAttribute.md)
@ -12,5 +8,5 @@
``` ```
$documentAttributeHasStickers = ; $documentAttributeHasStickers = ['_' => documentAttributeHasStickers', ];
``` ```

View File

@ -14,5 +14,5 @@
``` ```
$documentAttributeImageSize = ['w' => int, 'h' => int, ]; $documentAttributeImageSize = ['_' => documentAttributeImageSize', 'w' => int, 'h' => int, ];
``` ```

View File

@ -16,5 +16,5 @@
``` ```
$documentAttributeSticker = ['mask' => Bool, 'alt' => string, 'stickerset' => InputStickerSet, 'mask_coords' => MaskCoords, ]; $documentAttributeSticker = ['_' => documentAttributeSticker', 'mask' => true, 'alt' => string, 'stickerset' => InputStickerSet, 'mask_coords' => MaskCoords, ];
``` ```

View File

@ -15,5 +15,5 @@
``` ```
$documentAttributeVideo = ['duration' => int, 'w' => int, 'h' => int, ]; $documentAttributeVideo = ['_' => documentAttributeVideo', 'duration' => int, 'w' => int, 'h' => int, ];
``` ```

View File

@ -13,5 +13,5 @@
``` ```
$documentEmpty = ['id' => long, ]; $documentEmpty = ['_' => documentEmpty', 'id' => long, ];
``` ```

View File

@ -17,5 +17,5 @@
``` ```
$draftMessage = ['no_webpage' => Bool, 'reply_to_msg_id' => int, 'message' => string, 'entities' => [MessageEntity], 'date' => int, ]; $draftMessage = ['_' => draftMessage', 'no_webpage' => true, 'reply_to_msg_id' => int, 'message' => string, 'entities' => [Vector t], 'date' => int, ];
``` ```

View File

@ -1,9 +1,5 @@
## Constructor: draftMessageEmpty ## Constructor: draftMessageEmpty
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
### Type: [DraftMessage](../types/DraftMessage.md) ### Type: [DraftMessage](../types/DraftMessage.md)
@ -12,5 +8,5 @@
``` ```
$draftMessageEmpty = ; $draftMessageEmpty = ['_' => draftMessageEmpty', ];
``` ```

View File

@ -19,5 +19,5 @@
``` ```
$encryptedChat = ['id' => int, 'access_hash' => long, 'date' => int, 'admin_id' => int, 'participant_id' => int, 'g_a_or_b' => bytes, 'key_fingerprint' => long, ]; $encryptedChat = ['_' => encryptedChat', 'id' => int, 'access_hash' => long, 'date' => int, 'admin_id' => int, 'participant_id' => int, 'g_a_or_b' => bytes, 'key_fingerprint' => long, ];
``` ```

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