1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 07:58:58 +01:00

Fixed bugs

This commit is contained in:
danogentili 2016-12-30 23:21:36 +03:00
parent d5f02639d8
commit bfc665ace0
501 changed files with 602 additions and 520 deletions

View File

@ -13,13 +13,7 @@ If not, see <http://www.gnu.org/licenses/>.
require_once 'vendor/autoload.php';
$mode = 3;
\danog\MadelineProto\Logger::constructor($mode);
$TL = new \danog\MadelineProto\MTProto(['tl' => [
//'mtproto' => __DIR__.'/src/danog/MadelineProto/TL_mtproto_v1.json', // mtproto TL scheme
'telegram' => __DIR__.'/src/danog/MadelineProto/TL_telegram_v57.json', // telegram TL scheme
]]);
$TL = new \danog\MadelineProto\API();
$types = [];
\danog\MadelineProto\Logger::log('Copying readme...');
@ -64,10 +58,10 @@ $methods = [];
\danog\MadelineProto\Logger::log('Generating methods documentation...');
foreach ($TL->methods->method as $key => $method) {
foreach ($TL->API->methods->method as $key => $method) {
$method = str_replace('.', '_', $method);
$type = str_replace(['.', '<', '>'], ['_', '_of_', ''], $TL->methods->type[$key]);
$type = str_replace(['.', '<', '>'], ['_', '_of_', ''], $TL->API->methods->type[$key]);
$real_type = preg_replace('/.*_of_/', '', $type);
if (!isset($types[$real_type])) {
@ -78,7 +72,7 @@ foreach ($TL->methods->method as $key => $method) {
}
$params = '';
foreach ($TL->methods->params[$key] as $param) {
foreach ($TL->API->methods->params[$key] as $param) {
if (in_array($param['name'], ['flags', 'random_id'])) {
continue;
}
@ -111,12 +105,12 @@ foreach ($TL->methods->method as $key => $method) {
';
$params = '';
$table = empty($TL->methods->params[$key]) ? '' : '### Parameters:
$table = empty($TL->API->methods->params[$key]) ? '' : '### Parameters:
| Name | Type | Required |
|----------|:-------------:|---------:|
';
foreach ($TL->methods->params[$key] as $param) {
foreach ($TL->API->methods->params[$key] as $param) {
if (in_array($param['name'], ['flags', 'random_id'])) {
continue;
}
@ -207,15 +201,19 @@ $constructors = [];
\danog\MadelineProto\Logger::log('Generating constructors documentation...');
foreach ($TL->constructors->predicate as $key => $constructor) {
$type = str_replace(['.', '<', '>'], ['_', '_of_', ''], $TL->constructors->type[$key]);
foreach ($TL->API->constructors->predicate as $key => $constructor) {
if (preg_match('/%/', $type)) {
$type = $TL->API->constructors->find_by_type(str_replace('%', '', $type))['predicate'];
}
$type = str_replace(['.', '<', '>'], ['_', '_of_', ''], $TL->API->constructors->type[$key]);
$real_type = preg_replace('/.*_of_/', '', $type);
$constructor = str_replace(['.', '<', '>'], ['_', '_of_', ''], $constructor);
$real_constructor = preg_replace('/.*_of_/', '', $constructor);
$params = '';
foreach ($TL->constructors->params[$key] as $param) {
foreach ($TL->API->constructors->params[$key] as $param) {
if (in_array($param['name'], ['flags', 'random_id'])) {
continue;
}
@ -234,6 +232,9 @@ foreach ($TL->constructors->predicate as $key => $constructor) {
case 'false':
$ptype = 'Bool';
}
if (preg_match('/%/', $ptype)) {
$ptype = $TL->API->constructors->find_by_type(str_replace('%', '', $ptype))['predicate'];
}
$params .= "'".$param['name']."' => ";
$ptype =
@ -255,13 +256,13 @@ foreach ($TL->constructors->predicate as $key => $constructor) {
if (!in_array($key, $types[$real_type]['constructors'])) {
$types[$real_type]['constructors'][] = $key;
}
$table = empty($TL->constructors->params[$key]) ? '' : '### Attributes:
$table = empty($TL->API->constructors->params[$key]) ? '' : '### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
';
$params = '';
foreach ($TL->constructors->params[$key] as $param) {
foreach ($TL->API->constructors->params[$key] as $param) {
if (in_array($param['name'], ['flags', 'random_id'])) {
continue;
}
@ -273,6 +274,9 @@ foreach ($TL->constructors->predicate as $key => $constructor) {
$link_type = 'constructors';
}
}
if (preg_match('/%/', $ptype)) {
$ptype = $TL->API->constructors->find_by_type(str_replace('%', '', $ptype))['predicate'];
}
switch ($ptype) {
case 'true':
case 'false':
@ -284,7 +288,7 @@ foreach ($TL->constructors->predicate as $key => $constructor) {
$params .= "'".$param['name']."' => ";
$params .= (isset($param['subtype']) ? '['.$param['type'].']' : $param['type']).', ';
}
$params = "['_' => ".$constructor.', '.$params.']';
$params = "['_' => '".$constructor."', ".$params.']';
$header = '---
title: '.$constructor.'
@ -309,6 +313,7 @@ description: '.$constructor.' attributes, type and example
```
$'.$constructor.' = '.$params.';
```';
file_put_contents('constructors/'.$constructor.'.md', $header.$table.$type.$example);
}
@ -360,7 +365,7 @@ foreach ($types as $type => $keys) {
';
$constructors = '';
foreach ($keys['constructors'] as $key) {
$predicate = str_replace('.', '_', $TL->constructors->predicate[$key]);
$predicate = str_replace('.', '_', $TL->API->constructors->predicate[$key]);
$md_predicate = str_replace('_', '\_', $predicate);
$constructors .= '['.$md_predicate.'](../constructors/'.$predicate.'.md)
@ -369,7 +374,7 @@ foreach ($types as $type => $keys) {
$methods = '';
foreach ($keys['methods'] as $key) {
$name = str_replace('.', '_', $TL->methods->method[$key]);
$name = str_replace('.', '_', $TL->API->methods->method[$key]);
$md_name = str_replace('_', '->', $name);
$methods .= '[$MadelineProto->'.$md_name.'](../methods/'.$name.'.md)
@ -449,6 +454,34 @@ description: A 32 bit signed integer ranging from -9223372036854775807 to 922337
A 64 bit signed integer ranging from `-9223372036854775807` to `9223372036854775807`.');
file_put_contents('types/int128.md', '---
title: int128
description: A 128 bit signed integer
---
## Type: int128
[Back to constructor index](index.md)
A 128 bit signed integer represented in little-endian base256 (`string`) format.');
file_put_contents('types/int256.md', '---
title: int256
description: A 256 bit signed integer
---
## Type: int256
[Back to constructor index](index.md)
A 256 bit signed integer represented in little-endian base256 (`string`) format.');
file_put_contents('types/int512.md', '---
title: int512
description: A 512 bit signed integer
---
## Type: int512
[Back to constructor index](index.md)
A 512 bit signed integer represented in little-endian base256 (`string`) format.');
file_put_contents('types/double.md', '---
title: double
description: A double precision floating point number
@ -512,4 +545,5 @@ description: Represents a boolean.
Represents a boolean.');
\danog\MadelineProto\Logger::log('Done!');

View File

@ -18,11 +18,11 @@ description: MTmessage attributes, type and example
### Type: [Message](../types/Message.md)
### Type: [MTMessage](../types/MTMessage.md)
### Example:
```
$MTmessage = ['_' => MTmessage, 'msg_id' => long, 'seqno' => int, 'bytes' => int, 'body' => Object, ];
$MTmessage = ['_' => 'MTmessage', 'msg_id' => long, 'seqno' => int, 'bytes' => int, 'body' => Object, ];
```

View File

@ -21,5 +21,5 @@ description: accountDaysTTL attributes, type and example
### Example:
```
$accountDaysTTL = ['_' => accountDaysTTL, 'days' => int, ];
$accountDaysTTL = ['_' => 'accountDaysTTL', 'days' => int, ];
```

View File

@ -21,5 +21,5 @@ description: account_authorizations attributes, type and example
### Example:
```
$account_authorizations = ['_' => account_authorizations, 'authorizations' => [Vector t], ];
$account_authorizations = ['_' => 'account_authorizations', 'authorizations' => [Vector t], ];
```

View File

@ -22,5 +22,5 @@ description: account_noPassword attributes, type and example
### Example:
```
$account_noPassword = ['_' => account_noPassword, 'new_salt' => bytes, 'email_unconfirmed_pattern' => string, ];
$account_noPassword = ['_' => 'account_noPassword', 'new_salt' => bytes, 'email_unconfirmed_pattern' => string, ];
```

View File

@ -25,5 +25,5 @@ description: account_password attributes, type and example
### Example:
```
$account_password = ['_' => 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

@ -24,5 +24,5 @@ description: account_passwordInputSettings attributes, type and example
### Example:
```
$account_passwordInputSettings = ['_' => 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

@ -21,5 +21,5 @@ description: account_passwordSettings attributes, type and example
### Example:
```
$account_passwordSettings = ['_' => account_passwordSettings, 'email' => string, ];
$account_passwordSettings = ['_' => 'account_passwordSettings', 'email' => string, ];
```

View File

@ -22,5 +22,5 @@ description: account_privacyRules attributes, type and example
### Example:
```
$account_privacyRules = ['_' => account_privacyRules, 'rules' => [Vector t], 'users' => [Vector t], ];
$account_privacyRules = ['_' => 'account_privacyRules', 'rules' => [Vector t], 'users' => [Vector t], ];
```

View File

@ -22,5 +22,5 @@ description: auth_authorization attributes, type and example
### Example:
```
$auth_authorization = ['_' => auth_authorization, 'tmp_sessions' => int, 'user' => User, ];
$auth_authorization = ['_' => 'auth_authorization', 'tmp_sessions' => int, 'user' => User, ];
```

View File

@ -21,5 +21,5 @@ description: auth_checkedPhone attributes, type and example
### Example:
```
$auth_checkedPhone = ['_' => auth_checkedPhone, 'phone_registered' => Bool, ];
$auth_checkedPhone = ['_' => 'auth_checkedPhone', 'phone_registered' => Bool, ];
```

View File

@ -16,5 +16,5 @@ description: auth_codeTypeCall attributes, type and example
### Example:
```
$auth_codeTypeCall = ['_' => auth_codeTypeCall, ];
$auth_codeTypeCall = ['_' => 'auth_codeTypeCall', ];
```

View File

@ -16,5 +16,5 @@ description: auth_codeTypeFlashCall attributes, type and example
### Example:
```
$auth_codeTypeFlashCall = ['_' => auth_codeTypeFlashCall, ];
$auth_codeTypeFlashCall = ['_' => 'auth_codeTypeFlashCall', ];
```

View File

@ -16,5 +16,5 @@ description: auth_codeTypeSms attributes, type and example
### Example:
```
$auth_codeTypeSms = ['_' => auth_codeTypeSms, ];
$auth_codeTypeSms = ['_' => 'auth_codeTypeSms', ];
```

View File

@ -22,5 +22,5 @@ description: auth_exportedAuthorization attributes, type and example
### Example:
```
$auth_exportedAuthorization = ['_' => auth_exportedAuthorization, 'id' => int, 'bytes' => bytes, ];
$auth_exportedAuthorization = ['_' => 'auth_exportedAuthorization', 'id' => int, 'bytes' => bytes, ];
```

View File

@ -21,5 +21,5 @@ description: auth_passwordRecovery attributes, type and example
### Example:
```
$auth_passwordRecovery = ['_' => auth_passwordRecovery, 'email_pattern' => string, ];
$auth_passwordRecovery = ['_' => 'auth_passwordRecovery', 'email_pattern' => string, ];
```

View File

@ -25,5 +25,5 @@ description: auth_sentCode attributes, type and example
### Example:
```
$auth_sentCode = ['_' => auth_sentCode, 'phone_registered' => true, '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

@ -21,5 +21,5 @@ description: auth_sentCodeTypeApp attributes, type and example
### Example:
```
$auth_sentCodeTypeApp = ['_' => auth_sentCodeTypeApp, 'length' => int, ];
$auth_sentCodeTypeApp = ['_' => 'auth_sentCodeTypeApp', 'length' => int, ];
```

View File

@ -21,5 +21,5 @@ description: auth_sentCodeTypeCall attributes, type and example
### Example:
```
$auth_sentCodeTypeCall = ['_' => auth_sentCodeTypeCall, 'length' => int, ];
$auth_sentCodeTypeCall = ['_' => 'auth_sentCodeTypeCall', 'length' => int, ];
```

View File

@ -21,5 +21,5 @@ description: auth_sentCodeTypeFlashCall attributes, type and example
### Example:
```
$auth_sentCodeTypeFlashCall = ['_' => auth_sentCodeTypeFlashCall, 'pattern' => string, ];
$auth_sentCodeTypeFlashCall = ['_' => 'auth_sentCodeTypeFlashCall', 'pattern' => string, ];
```

View File

@ -21,5 +21,5 @@ description: auth_sentCodeTypeSms attributes, type and example
### Example:
```
$auth_sentCodeTypeSms = ['_' => auth_sentCodeTypeSms, 'length' => int, ];
$auth_sentCodeTypeSms = ['_' => 'auth_sentCodeTypeSms', 'length' => int, ];
```

View File

@ -32,5 +32,5 @@ description: authorization attributes, type and example
### Example:
```
$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, ];
$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

@ -23,5 +23,5 @@ description: bad_msg_notification attributes, type and example
### Example:
```
$bad_msg_notification = ['_' => bad_msg_notification, 'bad_msg_id' => long, 'bad_msg_seqno' => int, 'error_code' => int, ];
$bad_msg_notification = ['_' => 'bad_msg_notification', 'bad_msg_id' => long, 'bad_msg_seqno' => int, 'error_code' => int, ];
```

View File

@ -24,5 +24,5 @@ description: bad_server_salt attributes, type and example
### Example:
```
$bad_server_salt = ['_' => bad_server_salt, 'bad_msg_id' => long, 'bad_msg_seqno' => int, 'error_code' => int, 'new_server_salt' => long, ];
$bad_server_salt = ['_' => 'bad_server_salt', 'bad_msg_id' => long, 'bad_msg_seqno' => int, 'error_code' => int, 'new_server_salt' => long, ];
```

View File

@ -25,5 +25,5 @@ description: bind_auth_key_inner attributes, type and example
### Example:
```
$bind_auth_key_inner = ['_' => bind_auth_key_inner, 'nonce' => long, 'temp_auth_key_id' => long, 'perm_auth_key_id' => long, 'temp_session_id' => long, 'expires_at' => int, ];
$bind_auth_key_inner = ['_' => 'bind_auth_key_inner', 'nonce' => long, 'temp_auth_key_id' => long, 'perm_auth_key_id' => long, 'temp_session_id' => long, 'expires_at' => int, ];
```

View File

@ -22,5 +22,5 @@ description: botCommand attributes, type and example
### Example:
```
$botCommand = ['_' => botCommand, 'command' => string, 'description' => string, ];
$botCommand = ['_' => 'botCommand', 'command' => string, 'description' => string, ];
```

View File

@ -23,5 +23,5 @@ description: botInfo attributes, type and example
### Example:
```
$botInfo = ['_' => botInfo, 'user_id' => int, 'description' => string, 'commands' => [Vector t], ];
$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => string, 'commands' => [Vector t], ];
```

View File

@ -27,5 +27,5 @@ description: botInlineMediaResult attributes, type and example
### Example:
```
$botInlineMediaResult = ['_' => 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

@ -22,5 +22,5 @@ description: botInlineMessageMediaAuto attributes, type and example
### Example:
```
$botInlineMessageMediaAuto = ['_' => botInlineMessageMediaAuto, 'caption' => string, 'reply_markup' => ReplyMarkup, ];
$botInlineMessageMediaAuto = ['_' => 'botInlineMessageMediaAuto', 'caption' => string, 'reply_markup' => ReplyMarkup, ];
```

View File

@ -24,5 +24,5 @@ description: botInlineMessageMediaContact attributes, type and example
### Example:
```
$botInlineMessageMediaContact = ['_' => 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

@ -22,5 +22,5 @@ description: botInlineMessageMediaGeo attributes, type and example
### Example:
```
$botInlineMessageMediaGeo = ['_' => botInlineMessageMediaGeo, 'geo' => GeoPoint, 'reply_markup' => ReplyMarkup, ];
$botInlineMessageMediaGeo = ['_' => 'botInlineMessageMediaGeo', 'geo' => GeoPoint, 'reply_markup' => ReplyMarkup, ];
```

View File

@ -26,5 +26,5 @@ description: botInlineMessageMediaVenue attributes, type and example
### Example:
```
$botInlineMessageMediaVenue = ['_' => 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

@ -24,5 +24,5 @@ description: botInlineMessageText attributes, type and example
### Example:
```
$botInlineMessageText = ['_' => botInlineMessageText, 'no_webpage' => true, 'message' => string, 'entities' => [Vector t], 'reply_markup' => ReplyMarkup, ];
$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => true, 'message' => string, 'entities' => [Vector t], 'reply_markup' => ReplyMarkup, ];
```

View File

@ -32,5 +32,5 @@ description: botInlineResult attributes, type and example
### Example:
```
$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, ];
$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

@ -40,5 +40,5 @@ description: channel attributes, type and example
### Example:
```
$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, ];
$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

@ -25,5 +25,5 @@ description: channelForbidden attributes, type and example
### Example:
```
$channelForbidden = ['_' => channelForbidden, 'broadcast' => true, 'megagroup' => true, 'id' => int, 'access_hash' => long, 'title' => string, ];
$channelForbidden = ['_' => 'channelForbidden', 'broadcast' => true, 'megagroup' => true, 'id' => int, 'access_hash' => long, 'title' => string, ];
```

View File

@ -37,5 +37,5 @@ description: channelFull attributes, type and example
### Example:
```
$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, ];
$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

@ -22,5 +22,5 @@ description: channelMessagesFilter attributes, type and example
### Example:
```
$channelMessagesFilter = ['_' => channelMessagesFilter, 'exclude_new_messages' => true, 'ranges' => [Vector t], ];
$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => true, 'ranges' => [Vector t], ];
```

View File

@ -16,5 +16,5 @@ description: channelMessagesFilterEmpty attributes, type and example
### Example:
```
$channelMessagesFilterEmpty = ['_' => channelMessagesFilterEmpty, ];
$channelMessagesFilterEmpty = ['_' => 'channelMessagesFilterEmpty', ];
```

View File

@ -22,5 +22,5 @@ description: channelParticipant attributes, type and example
### Example:
```
$channelParticipant = ['_' => channelParticipant, 'user_id' => int, 'date' => int, ];
$channelParticipant = ['_' => 'channelParticipant', 'user_id' => int, 'date' => int, ];
```

View File

@ -21,5 +21,5 @@ description: channelParticipantCreator attributes, type and example
### Example:
```
$channelParticipantCreator = ['_' => channelParticipantCreator, 'user_id' => int, ];
$channelParticipantCreator = ['_' => 'channelParticipantCreator', 'user_id' => int, ];
```

View File

@ -23,5 +23,5 @@ description: channelParticipantEditor attributes, type and example
### Example:
```
$channelParticipantEditor = ['_' => channelParticipantEditor, 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
$channelParticipantEditor = ['_' => 'channelParticipantEditor', 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
```

View File

@ -23,5 +23,5 @@ description: channelParticipantKicked attributes, type and example
### Example:
```
$channelParticipantKicked = ['_' => channelParticipantKicked, 'user_id' => int, 'kicked_by' => int, 'date' => int, ];
$channelParticipantKicked = ['_' => 'channelParticipantKicked', 'user_id' => int, 'kicked_by' => int, 'date' => int, ];
```

View File

@ -23,5 +23,5 @@ description: channelParticipantModerator attributes, type and example
### Example:
```
$channelParticipantModerator = ['_' => channelParticipantModerator, 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
$channelParticipantModerator = ['_' => 'channelParticipantModerator', 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
```

View File

@ -23,5 +23,5 @@ description: channelParticipantSelf attributes, type and example
### Example:
```
$channelParticipantSelf = ['_' => channelParticipantSelf, 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
$channelParticipantSelf = ['_' => 'channelParticipantSelf', 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
```

View File

@ -16,5 +16,5 @@ description: channelParticipantsAdmins attributes, type and example
### Example:
```
$channelParticipantsAdmins = ['_' => channelParticipantsAdmins, ];
$channelParticipantsAdmins = ['_' => 'channelParticipantsAdmins', ];
```

View File

@ -16,5 +16,5 @@ description: channelParticipantsBots attributes, type and example
### Example:
```
$channelParticipantsBots = ['_' => channelParticipantsBots, ];
$channelParticipantsBots = ['_' => 'channelParticipantsBots', ];
```

View File

@ -16,5 +16,5 @@ description: channelParticipantsKicked attributes, type and example
### Example:
```
$channelParticipantsKicked = ['_' => channelParticipantsKicked, ];
$channelParticipantsKicked = ['_' => 'channelParticipantsKicked', ];
```

View File

@ -16,5 +16,5 @@ description: channelParticipantsRecent attributes, type and example
### Example:
```
$channelParticipantsRecent = ['_' => channelParticipantsRecent, ];
$channelParticipantsRecent = ['_' => 'channelParticipantsRecent', ];
```

View File

@ -16,5 +16,5 @@ description: channelRoleEditor attributes, type and example
### Example:
```
$channelRoleEditor = ['_' => channelRoleEditor, ];
$channelRoleEditor = ['_' => 'channelRoleEditor', ];
```

View File

@ -16,5 +16,5 @@ description: channelRoleEmpty attributes, type and example
### Example:
```
$channelRoleEmpty = ['_' => channelRoleEmpty, ];
$channelRoleEmpty = ['_' => 'channelRoleEmpty', ];
```

View File

@ -16,5 +16,5 @@ description: channelRoleModerator attributes, type and example
### Example:
```
$channelRoleModerator = ['_' => channelRoleModerator, ];
$channelRoleModerator = ['_' => 'channelRoleModerator', ];
```

View File

@ -22,5 +22,5 @@ description: channels_channelParticipant attributes, type and example
### Example:
```
$channels_channelParticipant = ['_' => channels_channelParticipant, 'participant' => ChannelParticipant, 'users' => [Vector t], ];
$channels_channelParticipant = ['_' => 'channels_channelParticipant', 'participant' => ChannelParticipant, 'users' => [Vector t], ];
```

View File

@ -23,5 +23,5 @@ description: channels_channelParticipants attributes, type and example
### Example:
```
$channels_channelParticipants = ['_' => channels_channelParticipants, 'count' => int, 'participants' => [Vector t], 'users' => [Vector t], ];
$channels_channelParticipants = ['_' => 'channels_channelParticipants', 'count' => int, 'participants' => [Vector t], 'users' => [Vector t], ];
```

View File

@ -33,5 +33,5 @@ description: chat attributes, type and example
### Example:
```
$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, ];
$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

@ -21,5 +21,5 @@ description: chatEmpty attributes, type and example
### Example:
```
$chatEmpty = ['_' => chatEmpty, 'id' => int, ];
$chatEmpty = ['_' => 'chatEmpty', 'id' => int, ];
```

View File

@ -22,5 +22,5 @@ description: chatForbidden attributes, type and example
### Example:
```
$chatForbidden = ['_' => chatForbidden, 'id' => int, 'title' => string, ];
$chatForbidden = ['_' => 'chatForbidden', 'id' => int, 'title' => string, ];
```

View File

@ -26,5 +26,5 @@ description: chatFull attributes, type and example
### Example:
```
$chatFull = ['_' => chatFull, 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [Vector t], ];
$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [Vector t], ];
```

View File

@ -28,5 +28,5 @@ description: chatInvite attributes, type and example
### Example:
```
$chatInvite = ['_' => chatInvite, 'channel' => true, 'broadcast' => true, 'public' => true, 'megagroup' => true, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'participants' => [Vector t], ];
$chatInvite = ['_' => 'chatInvite', 'channel' => true, 'broadcast' => true, 'public' => true, 'megagroup' => true, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'participants' => [Vector t], ];
```

View File

@ -21,5 +21,5 @@ description: chatInviteAlready attributes, type and example
### Example:
```
$chatInviteAlready = ['_' => chatInviteAlready, 'chat' => Chat, ];
$chatInviteAlready = ['_' => 'chatInviteAlready', 'chat' => Chat, ];
```

View File

@ -16,5 +16,5 @@ description: chatInviteEmpty attributes, type and example
### Example:
```
$chatInviteEmpty = ['_' => chatInviteEmpty, ];
$chatInviteEmpty = ['_' => 'chatInviteEmpty', ];
```

View File

@ -21,5 +21,5 @@ description: chatInviteExported attributes, type and example
### Example:
```
$chatInviteExported = ['_' => chatInviteExported, 'link' => string, ];
$chatInviteExported = ['_' => 'chatInviteExported', 'link' => string, ];
```

View File

@ -23,5 +23,5 @@ description: chatParticipant attributes, type and example
### Example:
```
$chatParticipant = ['_' => chatParticipant, 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
$chatParticipant = ['_' => 'chatParticipant', 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
```

View File

@ -23,5 +23,5 @@ description: chatParticipantAdmin attributes, type and example
### Example:
```
$chatParticipantAdmin = ['_' => chatParticipantAdmin, 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
$chatParticipantAdmin = ['_' => 'chatParticipantAdmin', 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
```

View File

@ -21,5 +21,5 @@ description: chatParticipantCreator attributes, type and example
### Example:
```
$chatParticipantCreator = ['_' => chatParticipantCreator, 'user_id' => int, ];
$chatParticipantCreator = ['_' => 'chatParticipantCreator', 'user_id' => int, ];
```

View File

@ -23,5 +23,5 @@ description: chatParticipants attributes, type and example
### Example:
```
$chatParticipants = ['_' => chatParticipants, 'chat_id' => int, 'participants' => [Vector t], 'version' => int, ];
$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [Vector t], 'version' => int, ];
```

View File

@ -22,5 +22,5 @@ description: chatParticipantsForbidden attributes, type and example
### Example:
```
$chatParticipantsForbidden = ['_' => chatParticipantsForbidden, 'chat_id' => int, 'self_participant' => ChatParticipant, ];
$chatParticipantsForbidden = ['_' => 'chatParticipantsForbidden', 'chat_id' => int, 'self_participant' => ChatParticipant, ];
```

View File

@ -22,5 +22,5 @@ description: chatPhoto attributes, type and example
### Example:
```
$chatPhoto = ['_' => chatPhoto, 'photo_small' => FileLocation, 'photo_big' => FileLocation, ];
$chatPhoto = ['_' => 'chatPhoto', 'photo_small' => FileLocation, 'photo_big' => FileLocation, ];
```

View File

@ -16,5 +16,5 @@ description: chatPhotoEmpty attributes, type and example
### Example:
```
$chatPhotoEmpty = ['_' => chatPhotoEmpty, ];
$chatPhotoEmpty = ['_' => 'chatPhotoEmpty', ];
```

View File

@ -24,5 +24,5 @@ description: client_DH_inner_data attributes, type and example
### Example:
```
$client_DH_inner_data = ['_' => client_DH_inner_data, 'nonce' => int128, 'server_nonce' => int128, 'retry_id' => long, 'g_b' => bytes, ];
$client_DH_inner_data = ['_' => 'client_DH_inner_data', 'nonce' => int128, 'server_nonce' => int128, 'retry_id' => long, 'g_b' => bytes, ];
```

View File

@ -43,5 +43,5 @@ description: config attributes, type and example
### Example:
```
$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], ];
$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

@ -22,5 +22,5 @@ description: contact attributes, type and example
### Example:
```
$contact = ['_' => contact, 'user_id' => int, 'mutual' => Bool, ];
$contact = ['_' => 'contact', 'user_id' => int, 'mutual' => Bool, ];
```

View File

@ -22,5 +22,5 @@ description: contactBlocked attributes, type and example
### Example:
```
$contactBlocked = ['_' => contactBlocked, 'user_id' => int, 'date' => int, ];
$contactBlocked = ['_' => 'contactBlocked', 'user_id' => int, 'date' => int, ];
```

View File

@ -16,5 +16,5 @@ description: contactLinkContact attributes, type and example
### Example:
```
$contactLinkContact = ['_' => contactLinkContact, ];
$contactLinkContact = ['_' => 'contactLinkContact', ];
```

View File

@ -16,5 +16,5 @@ description: contactLinkHasPhone attributes, type and example
### Example:
```
$contactLinkHasPhone = ['_' => contactLinkHasPhone, ];
$contactLinkHasPhone = ['_' => 'contactLinkHasPhone', ];
```

View File

@ -16,5 +16,5 @@ description: contactLinkNone attributes, type and example
### Example:
```
$contactLinkNone = ['_' => contactLinkNone, ];
$contactLinkNone = ['_' => 'contactLinkNone', ];
```

View File

@ -16,5 +16,5 @@ description: contactLinkUnknown attributes, type and example
### Example:
```
$contactLinkUnknown = ['_' => contactLinkUnknown, ];
$contactLinkUnknown = ['_' => 'contactLinkUnknown', ];
```

View File

@ -22,5 +22,5 @@ description: contactStatus attributes, type and example
### Example:
```
$contactStatus = ['_' => contactStatus, 'user_id' => int, 'status' => UserStatus, ];
$contactStatus = ['_' => 'contactStatus', 'user_id' => int, 'status' => UserStatus, ];
```

View File

@ -22,5 +22,5 @@ description: contacts_blocked attributes, type and example
### Example:
```
$contacts_blocked = ['_' => contacts_blocked, 'blocked' => [Vector t], 'users' => [Vector t], ];
$contacts_blocked = ['_' => 'contacts_blocked', 'blocked' => [Vector t], 'users' => [Vector t], ];
```

View File

@ -23,5 +23,5 @@ description: contacts_blockedSlice attributes, type and example
### Example:
```
$contacts_blockedSlice = ['_' => contacts_blockedSlice, 'count' => int, 'blocked' => [Vector t], 'users' => [Vector t], ];
$contacts_blockedSlice = ['_' => 'contacts_blockedSlice', 'count' => int, 'blocked' => [Vector t], 'users' => [Vector t], ];
```

View File

@ -22,5 +22,5 @@ description: contacts_contacts attributes, type and example
### Example:
```
$contacts_contacts = ['_' => contacts_contacts, 'contacts' => [Vector t], 'users' => [Vector t], ];
$contacts_contacts = ['_' => 'contacts_contacts', 'contacts' => [Vector t], 'users' => [Vector t], ];
```

View File

@ -16,5 +16,5 @@ description: contacts_contactsNotModified attributes, type and example
### Example:
```
$contacts_contactsNotModified = ['_' => contacts_contactsNotModified, ];
$contacts_contactsNotModified = ['_' => 'contacts_contactsNotModified', ];
```

View File

@ -23,5 +23,5 @@ description: contacts_found attributes, type and example
### Example:
```
$contacts_found = ['_' => contacts_found, 'results' => [Vector t], 'chats' => [Vector t], 'users' => [Vector t], ];
$contacts_found = ['_' => 'contacts_found', 'results' => [Vector t], 'chats' => [Vector t], 'users' => [Vector t], ];
```

View File

@ -23,5 +23,5 @@ description: contacts_importedContacts attributes, type and example
### Example:
```
$contacts_importedContacts = ['_' => contacts_importedContacts, 'imported' => [Vector t], 'retry_contacts' => [Vector t], 'users' => [Vector t], ];
$contacts_importedContacts = ['_' => 'contacts_importedContacts', 'imported' => [Vector t], 'retry_contacts' => [Vector t], 'users' => [Vector t], ];
```

View File

@ -23,5 +23,5 @@ description: contacts_link attributes, type and example
### Example:
```
$contacts_link = ['_' => contacts_link, 'my_link' => ContactLink, 'foreign_link' => ContactLink, 'user' => User, ];
$contacts_link = ['_' => 'contacts_link', 'my_link' => ContactLink, 'foreign_link' => ContactLink, 'user' => User, ];
```

View File

@ -23,5 +23,5 @@ description: contacts_resolvedPeer attributes, type and example
### Example:
```
$contacts_resolvedPeer = ['_' => contacts_resolvedPeer, 'peer' => Peer, 'chats' => [Vector t], 'users' => [Vector t], ];
$contacts_resolvedPeer = ['_' => 'contacts_resolvedPeer', 'peer' => Peer, 'chats' => [Vector t], 'users' => [Vector t], ];
```

View File

@ -23,5 +23,5 @@ description: contacts_topPeers attributes, type and example
### Example:
```
$contacts_topPeers = ['_' => contacts_topPeers, 'categories' => [Vector t], 'chats' => [Vector t], 'users' => [Vector t], ];
$contacts_topPeers = ['_' => 'contacts_topPeers', 'categories' => [Vector t], 'chats' => [Vector t], 'users' => [Vector t], ];
```

View File

@ -16,5 +16,5 @@ description: contacts_topPeersNotModified attributes, type and example
### Example:
```
$contacts_topPeersNotModified = ['_' => contacts_topPeersNotModified, ];
$contacts_topPeersNotModified = ['_' => 'contacts_topPeersNotModified', ];
```

View File

@ -26,5 +26,5 @@ description: dcOption attributes, type and example
### Example:
```
$dcOption = ['_' => dcOption, 'ipv6' => true, 'media_only' => true, 'tcpo_only' => true, '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

@ -21,5 +21,5 @@ description: destroy_session_none attributes, type and example
### Example:
```
$destroy_session_none = ['_' => destroy_session_none, 'session_id' => long, ];
$destroy_session_none = ['_' => 'destroy_session_none', 'session_id' => long, ];
```

View File

@ -21,5 +21,5 @@ description: destroy_session_ok attributes, type and example
### Example:
```
$destroy_session_ok = ['_' => destroy_session_ok, 'session_id' => long, ];
$destroy_session_ok = ['_' => 'destroy_session_ok', 'session_id' => long, ];
```

View File

@ -23,5 +23,5 @@ description: dh_gen_fail attributes, type and example
### Example:
```
$dh_gen_fail = ['_' => dh_gen_fail, 'nonce' => int128, 'server_nonce' => int128, 'new_nonce_hash3' => int128, ];
$dh_gen_fail = ['_' => 'dh_gen_fail', 'nonce' => int128, 'server_nonce' => int128, 'new_nonce_hash3' => int128, ];
```

View File

@ -23,5 +23,5 @@ description: dh_gen_ok attributes, type and example
### Example:
```
$dh_gen_ok = ['_' => dh_gen_ok, 'nonce' => int128, 'server_nonce' => int128, 'new_nonce_hash1' => int128, ];
$dh_gen_ok = ['_' => 'dh_gen_ok', 'nonce' => int128, 'server_nonce' => int128, 'new_nonce_hash1' => int128, ];
```

View File

@ -23,5 +23,5 @@ description: dh_gen_retry attributes, type and example
### Example:
```
$dh_gen_retry = ['_' => dh_gen_retry, 'nonce' => int128, 'server_nonce' => int128, 'new_nonce_hash2' => int128, ];
$dh_gen_retry = ['_' => 'dh_gen_retry', 'nonce' => int128, 'server_nonce' => int128, 'new_nonce_hash2' => int128, ];
```

View File

@ -28,5 +28,5 @@ description: dialog attributes, type and example
### Example:
```
$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, ];
$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

@ -22,5 +22,5 @@ description: disabledFeature attributes, type and example
### Example:
```
$disabledFeature = ['_' => disabledFeature, 'feature' => string, 'description' => string, ];
$disabledFeature = ['_' => 'disabledFeature', 'feature' => string, 'description' => string, ];
```

View File

@ -29,5 +29,5 @@ description: document attributes, type and example
### Example:
```
$document = ['_' => document, 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => string, 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [Vector t], ];
$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

@ -16,5 +16,5 @@ description: documentAttributeAnimated attributes, type and example
### Example:
```
$documentAttributeAnimated = ['_' => documentAttributeAnimated, ];
$documentAttributeAnimated = ['_' => 'documentAttributeAnimated', ];
```

View File

@ -25,5 +25,5 @@ description: documentAttributeAudio attributes, type and example
### Example:
```
$documentAttributeAudio = ['_' => documentAttributeAudio, 'voice' => true, 'duration' => int, 'title' => string, 'performer' => string, 'waveform' => bytes, ];
$documentAttributeAudio = ['_' => 'documentAttributeAudio', 'voice' => true, 'duration' => int, 'title' => string, 'performer' => string, 'waveform' => bytes, ];
```

View File

@ -21,5 +21,5 @@ description: documentAttributeFilename attributes, type and example
### Example:
```
$documentAttributeFilename = ['_' => documentAttributeFilename, 'file_name' => string, ];
$documentAttributeFilename = ['_' => 'documentAttributeFilename', 'file_name' => string, ];
```

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