Fixing markdown syntax

This commit is contained in:
danogentili 2016-12-19 20:35:27 +03:00
parent 7094200f40
commit 5ba1457d0a
583 changed files with 1578 additions and 2463 deletions

View File

@ -78,11 +78,18 @@ foreach ($TL->methods->method as $key => $method) {
$ptype = 'Bool'; $ptype = 'Bool';
} }
$params .= "'".$param['name']."' => "; $params .= "'".$param['name']."' => ";
$params .= (isset($param['subtype']) ? '[' : '').'['.$ptype.'](../'.$link_type.'/'.$ptype.'.md)'.(isset($param['subtype']) ? ']' : '').', '; $ptype =
} '['.
$methods[$method] = str_replace(['_', '\[\]'], ['\_', ''], '$MadelineProto->['.str_replace('.', '->', $method).']('.$method.'.md)(\['.$params.'\]) == [$'.$type.'](../types/'.$real_type.'.md); str_replace('_', '\_', $ptype).
'](../'.$link_type.'/'.$ptype.'.md)';
'); $params .= (isset($param['subtype']) ? '\[' . $ptype . '\]' : $ptype).', ';
}
$md_method = '['.str_replace(['_', '.'], ['->', '\_'], $method).']('.$method.'.md)';
$methods[$method] = '$MadelineProto->'.$md_method.'(\['.$params.'\]) == [$'.str_replace('_', '\_', $type).'](../types/'.$real_type.'.md)
';
$params = ''; $params = '';
$table = empty($TL->methods->params[$key]) ? '' : '### Parameters: $table = empty($TL->methods->params[$key]) ? '' : '### Parameters:
@ -100,12 +107,23 @@ foreach ($TL->methods->method as $key => $method) {
case 'false': case 'false':
$ptype = 'Bool'; $ptype = 'Bool';
} }
$table .= '|'.$param['name'].'|'.(isset($param['subtype']) ? 'Array of ' : '').'['.$ptype.'](../types/'.$ptype.'.md) | '.($param['flag'] ? 'Optional' : 'Required').'| $table .= '|'.str_replace('_', '\_', $param['name']).'|'.(isset($param['subtype']) ? 'Array of ' : '').'['.str_replace('_', '\_', $ptype).'](../types/'.$ptype.'.md) | '.($param['flag'] ? 'Optional' : 'Required').'|
'; ';
$params .= "'".$param['name']."' => "; $params .= "'".$param['name']."' => ";
$params .= (isset($param['subtype']) ? '['.$ptype.']' : $ptype).', '; $params .= (isset($param['subtype']) ? '['.$ptype.']' : $ptype).', ';
} }
$header = str_replace('_', '\_', '## Method: '.$method.'
');
$table .= '
';
$return = '### Return type: ['.str_replace('_', '\_', $type).'](../types/'.$real_type.'.md)
### Example:
';
$example = str_replace('[]', '', ' $example = str_replace('[]', '', '
``` ```
$MadelineProto = new \danog\MadelineProto\API(); $MadelineProto = new \danog\MadelineProto\API();
@ -124,16 +142,7 @@ if (isset($number)) {
$'.$type.' = $MadelineProto->'.str_replace('.', '->', $method).'(['.$params.']); $'.$type.' = $MadelineProto->'.str_replace('.', '->', $method).'(['.$params.']);
```'); ```');
$header = str_replace('_', '\_', '## Method: '.$method.' file_put_contents('methods/'.$method.'.md', $header.$table.$return.$example);
'.$table.'
### Return type: ['.$type.'](../types/'.$real_type.'.md)
### Example:
');
file_put_contents('methods/'.$method.'.md', $header.$example);
} }
\danog\MadelineProto\Logger::log('Generating methods index...'); \danog\MadelineProto\Logger::log('Generating methods index...');
@ -183,13 +192,20 @@ foreach ($TL->constructors->predicate as $key => $constructor) {
case 'false': case 'false':
$ptype = 'Bool'; $ptype = 'Bool';
} }
$params .= "'".$param['name']."' => "; $params .= "'".$param['name']."' => ";
$params .= (isset($param['subtype']) ? '[' : '').'['.$ptype.'](../'.$link_type.'/'.$ptype.'.md)'.(isset($param['subtype']) ? ']' : '').', '; $ptype =
} '['.
$params = "\[".$params.'\]'; str_replace('_', '\_', $ptype).
$constructors[$constructor] = str_replace(['_'], ['\_'], '[$'.$real_type.'](../types/'.$real_type.'.md) = '.$params.'; '](../'.$link_type.'/'.$ptype.'.md)';
'); $params .= (isset($param['subtype']) ? '\[' . $ptype . '\]' : $ptype).', ';
}
$constructors[$constructor] = '[$'.str_replace('_', '\_', $real_type).'](../types/'.$real_type.'.md) = \['.$params.'\];
';
if (!isset($types[$real_type])) { if (!isset($types[$real_type])) {
$types[$real_type] = []; $types[$real_type] = [];
@ -220,7 +236,7 @@ foreach ($TL->constructors->predicate as $key => $constructor) {
case 'false': case 'false':
$ptype = 'Bool'; $ptype = 'Bool';
} }
$table .= '|'.$param['name'].'|'.(isset($param['subtype']) ? 'Array of ' : '').'['.$ptype.'](../'.$link_type.'/'.$ptype.'.md) | '.($param['flag'] ? 'Optional' : 'Required').'| $table .= '|'.str_replace('_', '\_', $param['name']).'|'.(isset($param['subtype']) ? 'Array of ' : '').'['.str_replace('_', '\_', $ptype).'](../'.$link_type.'/'.$ptype.'.md) | '.($param['flag'] ? 'Optional' : 'Required').'|
'; ';
$params .= "'".$param['name']."' => "; $params .= "'".$param['name']."' => ";
@ -228,20 +244,19 @@ foreach ($TL->constructors->predicate as $key => $constructor) {
} }
$params = "['_' => ".$constructor."', ".$params.']'; $params = "['_' => ".$constructor."', ".$params.']';
$example = ' $header = str_replace('_', '\_', '## Constructor: '.$constructor.'
');
$type = '### Type:
['.str_replace('_', '\_', $real_type).'](../types/'.$real_type.'.md)
';
$example = '### Example:
``` ```
$'.$constructor.' = '.$params.'; $'.$constructor.' = '.$params.';
```'; ```';
$header = str_replace('_', '\_', '## Constructor: '.$constructor.' file_put_contents('constructors/'.$constructor.'.md', $header.$table.$type.$example);
'.$table.'
### Type: ['.$real_type.'](../types/'.$real_type.'.md)
### Example:
');
file_put_contents('constructors/'.$constructor.'.md', $header.$example);
} }
\danog\MadelineProto\Logger::log('Generating constructors index...'); \danog\MadelineProto\Logger::log('Generating constructors index...');
@ -272,7 +287,7 @@ foreach ($types as $type => $keys) {
$constructors = ''; $constructors = '';
foreach ($keys as $key) { foreach ($keys as $key) {
$predicate = str_replace('.', '_', $TL->constructors->predicate[$key]); $predicate = str_replace('.', '_', $TL->constructors->predicate[$key]);
$constructors .= '['.$predicate.'](../constructors/'.$predicate.'.md) $constructors .= '['.str_replace('_', '\_', $predicate).'](../constructors/'.$predicate.'.md)
'; ';
} }
@ -280,8 +295,8 @@ foreach ($types as $type => $keys) {
### Possible values (constructors): ### Possible values (constructors):
'.$constructors); ');
file_put_contents('types/'.$type.'.md', $header); file_put_contents('types/'.$type.'.md', $header.$constructors);
} }
\danog\MadelineProto\Logger::log('Generating additional types...'); \danog\MadelineProto\Logger::log('Generating additional types...');

View File

@ -5,13 +5,11 @@
| Name | Type | Required | | Name | Type | Required |
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|days|[int](../types/int.md) | Required| |days|[int](../types/int.md) | Required|
### Type:
[AccountDaysTTL](../types/AccountDaysTTL.md)
### Type: [AccountDaysTTL](../types/AccountDaysTTL.md)
### Example: ### Example:
``` ```
$accountDaysTTL = ['_' => accountDaysTTL', 'days' => int, ]; $accountDaysTTL = ['_' => accountDaysTTL', 'days' => int, ];
``` ```

View File

@ -5,13 +5,11 @@
| Name | Type | Required | | Name | Type | Required |
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|authorizations|Array of [Authorization](../types/Authorization.md) | Required| |authorizations|Array of [Authorization](../types/Authorization.md) | Required|
### Type:
[account\_Authorizations](../types/account_Authorizations.md)
### Type: [account\_Authorizations](../types/account\_Authorizations.md)
### Example: ### Example:
``` ```
$account_authorizations = ['_' => account_authorizations', 'authorizations' => [Vector t], ]; $account_authorizations = ['_' => account_authorizations', 'authorizations' => [Vector t], ];
``` ```

View File

@ -6,13 +6,11 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|new\_salt|[bytes](../types/bytes.md) | Required| |new\_salt|[bytes](../types/bytes.md) | Required|
|email\_unconfirmed\_pattern|[string](../types/string.md) | Required| |email\_unconfirmed\_pattern|[string](../types/string.md) | Required|
### Type:
[account\_Password](../types/account_Password.md)
### Type: [account\_Password](../types/account\_Password.md)
### 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

@ -9,13 +9,11 @@
|hint|[string](../types/string.md) | Required| |hint|[string](../types/string.md) | Required|
|has\_recovery|[Bool](../types/Bool.md) | Required| |has\_recovery|[Bool](../types/Bool.md) | Required|
|email\_unconfirmed\_pattern|[string](../types/string.md) | Required| |email\_unconfirmed\_pattern|[string](../types/string.md) | Required|
### Type:
[account\_Password](../types/account_Password.md)
### Type: [account\_Password](../types/account\_Password.md)
### 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

@ -8,13 +8,11 @@
|new\_password\_hash|[bytes](../types/bytes.md) | Optional| |new\_password\_hash|[bytes](../types/bytes.md) | Optional|
|hint|[string](../types/string.md) | Optional| |hint|[string](../types/string.md) | Optional|
|email|[string](../types/string.md) | Optional| |email|[string](../types/string.md) | Optional|
### Type:
[account\_PasswordInputSettings](../types/account_PasswordInputSettings.md)
### Type: [account\_PasswordInputSettings](../types/account\_PasswordInputSettings.md)
### 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

@ -5,13 +5,11 @@
| Name | Type | Required | | Name | Type | Required |
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|email|[string](../types/string.md) | Required| |email|[string](../types/string.md) | Required|
### Type:
[account\_PasswordSettings](../types/account_PasswordSettings.md)
### Type: [account\_PasswordSettings](../types/account\_PasswordSettings.md)
### Example: ### Example:
``` ```
$account_passwordSettings = ['_' => account_passwordSettings', 'email' => string, ]; $account_passwordSettings = ['_' => account_passwordSettings', 'email' => string, ];
``` ```

View File

@ -6,13 +6,11 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|rules|Array of [PrivacyRule](../types/PrivacyRule.md) | Required| |rules|Array of [PrivacyRule](../types/PrivacyRule.md) | Required|
|users|Array of [User](../types/User.md) | Required| |users|Array of [User](../types/User.md) | Required|
### Type:
[account\_PrivacyRules](../types/account_PrivacyRules.md)
### Type: [account\_PrivacyRules](../types/account\_PrivacyRules.md)
### Example: ### Example:
``` ```
$account_privacyRules = ['_' => account_privacyRules', 'rules' => [Vector t], 'users' => [Vector t], ]; $account_privacyRules = ['_' => account_privacyRules', 'rules' => [Vector t], 'users' => [Vector t], ];
``` ```

View File

@ -6,13 +6,11 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|tmp\_sessions|[int](../types/int.md) | Optional| |tmp\_sessions|[int](../types/int.md) | Optional|
|user|[User](../types/User.md) | Required| |user|[User](../types/User.md) | Required|
### Type:
[auth\_Authorization](../types/auth_Authorization.md)
### Type: [auth\_Authorization](../types/auth\_Authorization.md)
### Example: ### Example:
``` ```
$auth_authorization = ['_' => auth_authorization', 'tmp_sessions' => int, 'user' => User, ]; $auth_authorization = ['_' => auth_authorization', 'tmp_sessions' => int, 'user' => User, ];
``` ```

View File

@ -5,13 +5,11 @@
| Name | Type | Required | | Name | Type | Required |
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|phone\_registered|[Bool](../types/Bool.md) | Required| |phone\_registered|[Bool](../types/Bool.md) | Required|
### Type:
[auth\_CheckedPhone](../types/auth_CheckedPhone.md)
### Type: [auth\_CheckedPhone](../types/auth\_CheckedPhone.md)
### Example: ### Example:
``` ```
$auth_checkedPhone = ['_' => auth_checkedPhone', 'phone_registered' => Bool, ]; $auth_checkedPhone = ['_' => auth_checkedPhone', 'phone_registered' => Bool, ];
``` ```

View File

@ -1,12 +1,10 @@
## Constructor: auth\_codeTypeCall ## Constructor: auth\_codeTypeCall
### Type:
[auth\_CodeType](../types/auth_CodeType.md)
### Type: [auth\_CodeType](../types/auth\_CodeType.md)
### Example: ### Example:
``` ```
$auth_codeTypeCall = ['_' => auth_codeTypeCall', ]; $auth_codeTypeCall = ['_' => auth_codeTypeCall', ];
``` ```

View File

@ -1,12 +1,10 @@
## Constructor: auth\_codeTypeFlashCall ## Constructor: auth\_codeTypeFlashCall
### Type:
[auth\_CodeType](../types/auth_CodeType.md)
### Type: [auth\_CodeType](../types/auth\_CodeType.md)
### Example: ### Example:
``` ```
$auth_codeTypeFlashCall = ['_' => auth_codeTypeFlashCall', ]; $auth_codeTypeFlashCall = ['_' => auth_codeTypeFlashCall', ];
``` ```

View File

@ -1,12 +1,10 @@
## Constructor: auth\_codeTypeSms ## Constructor: auth\_codeTypeSms
### Type:
[auth\_CodeType](../types/auth_CodeType.md)
### Type: [auth\_CodeType](../types/auth\_CodeType.md)
### Example: ### Example:
``` ```
$auth_codeTypeSms = ['_' => auth_codeTypeSms', ]; $auth_codeTypeSms = ['_' => auth_codeTypeSms', ];
``` ```

View File

@ -6,13 +6,11 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|id|[int](../types/int.md) | Required| |id|[int](../types/int.md) | Required|
|bytes|[bytes](../types/bytes.md) | Required| |bytes|[bytes](../types/bytes.md) | Required|
### Type:
[auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md)
### Type: [auth\_ExportedAuthorization](../types/auth\_ExportedAuthorization.md)
### Example: ### Example:
``` ```
$auth_exportedAuthorization = ['_' => auth_exportedAuthorization', 'id' => int, 'bytes' => bytes, ]; $auth_exportedAuthorization = ['_' => auth_exportedAuthorization', 'id' => int, 'bytes' => bytes, ];
``` ```

View File

@ -5,13 +5,11 @@
| Name | Type | Required | | Name | Type | Required |
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|email\_pattern|[string](../types/string.md) | Required| |email\_pattern|[string](../types/string.md) | Required|
### Type:
[auth\_PasswordRecovery](../types/auth_PasswordRecovery.md)
### Type: [auth\_PasswordRecovery](../types/auth\_PasswordRecovery.md)
### Example: ### Example:
``` ```
$auth_passwordRecovery = ['_' => auth_passwordRecovery', 'email_pattern' => string, ]; $auth_passwordRecovery = ['_' => auth_passwordRecovery', 'email_pattern' => string, ];
``` ```

View File

@ -5,17 +5,15 @@
| Name | Type | Required | | Name | Type | Required |
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|phone\_registered|[Bool](../types/Bool.md) | Optional| |phone\_registered|[Bool](../types/Bool.md) | Optional|
|type|[auth\_SentCodeType](../types/auth\_SentCodeType.md) | Required| |type|[auth\_SentCodeType](../types/auth_SentCodeType.md) | Required|
|phone\_code\_hash|[string](../types/string.md) | Required| |phone\_code\_hash|[string](../types/string.md) | Required|
|next\_type|[auth\_CodeType](../types/auth\_CodeType.md) | Optional| |next\_type|[auth\_CodeType](../types/auth_CodeType.md) | Optional|
|timeout|[int](../types/int.md) | Optional| |timeout|[int](../types/int.md) | Optional|
### Type:
[auth\_SentCode](../types/auth_SentCode.md)
### Type: [auth\_SentCode](../types/auth\_SentCode.md)
### 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

@ -5,13 +5,11 @@
| Name | Type | Required | | Name | Type | Required |
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|length|[int](../types/int.md) | Required| |length|[int](../types/int.md) | Required|
### Type:
[auth\_SentCodeType](../types/auth_SentCodeType.md)
### Type: [auth\_SentCodeType](../types/auth\_SentCodeType.md)
### Example: ### Example:
``` ```
$auth_sentCodeTypeApp = ['_' => auth_sentCodeTypeApp', 'length' => int, ]; $auth_sentCodeTypeApp = ['_' => auth_sentCodeTypeApp', 'length' => int, ];
``` ```

View File

@ -5,13 +5,11 @@
| Name | Type | Required | | Name | Type | Required |
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|length|[int](../types/int.md) | Required| |length|[int](../types/int.md) | Required|
### Type:
[auth\_SentCodeType](../types/auth_SentCodeType.md)
### Type: [auth\_SentCodeType](../types/auth\_SentCodeType.md)
### Example: ### Example:
``` ```
$auth_sentCodeTypeCall = ['_' => auth_sentCodeTypeCall', 'length' => int, ]; $auth_sentCodeTypeCall = ['_' => auth_sentCodeTypeCall', 'length' => int, ];
``` ```

View File

@ -5,13 +5,11 @@
| Name | Type | Required | | Name | Type | Required |
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|pattern|[string](../types/string.md) | Required| |pattern|[string](../types/string.md) | Required|
### Type:
[auth\_SentCodeType](../types/auth_SentCodeType.md)
### Type: [auth\_SentCodeType](../types/auth\_SentCodeType.md)
### Example: ### Example:
``` ```
$auth_sentCodeTypeFlashCall = ['_' => auth_sentCodeTypeFlashCall', 'pattern' => string, ]; $auth_sentCodeTypeFlashCall = ['_' => auth_sentCodeTypeFlashCall', 'pattern' => string, ];
``` ```

View File

@ -5,13 +5,11 @@
| Name | Type | Required | | Name | Type | Required |
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|length|[int](../types/int.md) | Required| |length|[int](../types/int.md) | Required|
### Type:
[auth\_SentCodeType](../types/auth_SentCodeType.md)
### Type: [auth\_SentCodeType](../types/auth\_SentCodeType.md)
### Example: ### Example:
``` ```
$auth_sentCodeTypeSms = ['_' => auth_sentCodeTypeSms', 'length' => int, ]; $auth_sentCodeTypeSms = ['_' => auth_sentCodeTypeSms', 'length' => int, ];
``` ```

View File

@ -16,13 +16,11 @@
|ip|[string](../types/string.md) | Required| |ip|[string](../types/string.md) | Required|
|country|[string](../types/string.md) | Required| |country|[string](../types/string.md) | Required|
|region|[string](../types/string.md) | Required| |region|[string](../types/string.md) | Required|
### Type:
[Authorization](../types/Authorization.md)
### Type: [Authorization](../types/Authorization.md)
### 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

@ -6,13 +6,11 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|command|[string](../types/string.md) | Required| |command|[string](../types/string.md) | Required|
|description|[string](../types/string.md) | Required| |description|[string](../types/string.md) | Required|
### Type:
[BotCommand](../types/BotCommand.md)
### Type: [BotCommand](../types/BotCommand.md)
### Example: ### Example:
``` ```
$botCommand = ['_' => botCommand', 'command' => string, 'description' => string, ]; $botCommand = ['_' => botCommand', 'command' => string, 'description' => string, ];
``` ```

View File

@ -7,13 +7,11 @@
|user\_id|[int](../types/int.md) | Required| |user\_id|[int](../types/int.md) | Required|
|description|[string](../types/string.md) | Required| |description|[string](../types/string.md) | Required|
|commands|Array of [BotCommand](../types/BotCommand.md) | Required| |commands|Array of [BotCommand](../types/BotCommand.md) | Required|
### Type:
[BotInfo](../types/BotInfo.md)
### Type: [BotInfo](../types/BotInfo.md)
### Example: ### Example:
``` ```
$botInfo = ['_' => botInfo', 'user_id' => int, 'description' => string, 'commands' => [Vector t], ]; $botInfo = ['_' => botInfo', 'user_id' => int, 'description' => string, 'commands' => [Vector t], ];
``` ```

View File

@ -11,13 +11,11 @@
|title|[string](../types/string.md) | Optional| |title|[string](../types/string.md) | Optional|
|description|[string](../types/string.md) | Optional| |description|[string](../types/string.md) | Optional|
|send\_message|[BotInlineMessage](../types/BotInlineMessage.md) | Required| |send\_message|[BotInlineMessage](../types/BotInlineMessage.md) | Required|
### Type:
[BotInlineResult](../types/BotInlineResult.md)
### Type: [BotInlineResult](../types/BotInlineResult.md)
### 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

@ -6,13 +6,11 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|caption|[string](../types/string.md) | Required| |caption|[string](../types/string.md) | Required|
|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|
### Type:
[BotInlineMessage](../types/BotInlineMessage.md)
### Type: [BotInlineMessage](../types/BotInlineMessage.md)
### Example: ### Example:
``` ```
$botInlineMessageMediaAuto = ['_' => botInlineMessageMediaAuto', 'caption' => string, 'reply_markup' => ReplyMarkup, ]; $botInlineMessageMediaAuto = ['_' => botInlineMessageMediaAuto', 'caption' => string, 'reply_markup' => ReplyMarkup, ];
``` ```

View File

@ -8,13 +8,11 @@
|first\_name|[string](../types/string.md) | Required| |first\_name|[string](../types/string.md) | Required|
|last\_name|[string](../types/string.md) | Required| |last\_name|[string](../types/string.md) | Required|
|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|
### Type:
[BotInlineMessage](../types/BotInlineMessage.md)
### Type: [BotInlineMessage](../types/BotInlineMessage.md)
### 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

@ -6,13 +6,11 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|geo|[GeoPoint](../types/GeoPoint.md) | Required| |geo|[GeoPoint](../types/GeoPoint.md) | Required|
|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|
### Type:
[BotInlineMessage](../types/BotInlineMessage.md)
### Type: [BotInlineMessage](../types/BotInlineMessage.md)
### Example: ### Example:
``` ```
$botInlineMessageMediaGeo = ['_' => botInlineMessageMediaGeo', 'geo' => GeoPoint, 'reply_markup' => ReplyMarkup, ]; $botInlineMessageMediaGeo = ['_' => botInlineMessageMediaGeo', 'geo' => GeoPoint, 'reply_markup' => ReplyMarkup, ];
``` ```

View File

@ -10,13 +10,11 @@
|provider|[string](../types/string.md) | Required| |provider|[string](../types/string.md) | Required|
|venue\_id|[string](../types/string.md) | Required| |venue\_id|[string](../types/string.md) | Required|
|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|
### Type:
[BotInlineMessage](../types/BotInlineMessage.md)
### Type: [BotInlineMessage](../types/BotInlineMessage.md)
### 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

@ -8,13 +8,11 @@
|message|[string](../types/string.md) | Required| |message|[string](../types/string.md) | Required|
|entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional| |entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional|
|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|
### Type:
[BotInlineMessage](../types/BotInlineMessage.md)
### Type: [BotInlineMessage](../types/BotInlineMessage.md)
### 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

@ -16,13 +16,11 @@
|h|[int](../types/int.md) | Optional| |h|[int](../types/int.md) | Optional|
|duration|[int](../types/int.md) | Optional| |duration|[int](../types/int.md) | Optional|
|send\_message|[BotInlineMessage](../types/BotInlineMessage.md) | Required| |send\_message|[BotInlineMessage](../types/BotInlineMessage.md) | Required|
### Type:
[BotInlineResult](../types/BotInlineResult.md)
### Type: [BotInlineResult](../types/BotInlineResult.md)
### 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

@ -24,13 +24,11 @@
|date|[int](../types/int.md) | Required| |date|[int](../types/int.md) | Required|
|version|[int](../types/int.md) | Required| |version|[int](../types/int.md) | Required|
|restriction\_reason|[string](../types/string.md) | Optional| |restriction\_reason|[string](../types/string.md) | Optional|
### Type:
[Chat](../types/Chat.md)
### Type: [Chat](../types/Chat.md)
### 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

@ -9,13 +9,11 @@
|id|[int](../types/int.md) | Required| |id|[int](../types/int.md) | Required|
|access\_hash|[long](../types/long.md) | Required| |access\_hash|[long](../types/long.md) | Required|
|title|[string](../types/string.md) | Required| |title|[string](../types/string.md) | Required|
### Type:
[Chat](../types/Chat.md)
### Type: [Chat](../types/Chat.md)
### 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

@ -21,13 +21,11 @@
|migrated\_from\_chat\_id|[int](../types/int.md) | Optional| |migrated\_from\_chat\_id|[int](../types/int.md) | Optional|
|migrated\_from\_max\_id|[int](../types/int.md) | Optional| |migrated\_from\_max\_id|[int](../types/int.md) | Optional|
|pinned\_msg\_id|[int](../types/int.md) | Optional| |pinned\_msg\_id|[int](../types/int.md) | Optional|
### Type:
[ChatFull](../types/ChatFull.md)
### Type: [ChatFull](../types/ChatFull.md)
### 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

@ -6,13 +6,11 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|exclude\_new\_messages|[Bool](../types/Bool.md) | Optional| |exclude\_new\_messages|[Bool](../types/Bool.md) | Optional|
|ranges|Array of [MessageRange](../types/MessageRange.md) | Required| |ranges|Array of [MessageRange](../types/MessageRange.md) | Required|
### Type:
[ChannelMessagesFilter](../types/ChannelMessagesFilter.md)
### Type: [ChannelMessagesFilter](../types/ChannelMessagesFilter.md)
### Example: ### Example:
``` ```
$channelMessagesFilter = ['_' => channelMessagesFilter', 'exclude_new_messages' => true, 'ranges' => [Vector t], ]; $channelMessagesFilter = ['_' => channelMessagesFilter', 'exclude_new_messages' => true, 'ranges' => [Vector t], ];
``` ```

View File

@ -1,12 +1,10 @@
## Constructor: channelMessagesFilterEmpty ## Constructor: channelMessagesFilterEmpty
### Type:
[ChannelMessagesFilter](../types/ChannelMessagesFilter.md)
### Type: [ChannelMessagesFilter](../types/ChannelMessagesFilter.md)
### Example: ### Example:
``` ```
$channelMessagesFilterEmpty = ['_' => channelMessagesFilterEmpty', ]; $channelMessagesFilterEmpty = ['_' => channelMessagesFilterEmpty', ];
``` ```

View File

@ -6,13 +6,11 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|user\_id|[int](../types/int.md) | Required| |user\_id|[int](../types/int.md) | Required|
|date|[int](../types/int.md) | Required| |date|[int](../types/int.md) | Required|
### Type:
[ChannelParticipant](../types/ChannelParticipant.md)
### Type: [ChannelParticipant](../types/ChannelParticipant.md)
### Example: ### Example:
``` ```
$channelParticipant = ['_' => channelParticipant', 'user_id' => int, 'date' => int, ]; $channelParticipant = ['_' => channelParticipant', 'user_id' => int, 'date' => int, ];
``` ```

View File

@ -5,13 +5,11 @@
| Name | Type | Required | | Name | Type | Required |
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|user\_id|[int](../types/int.md) | Required| |user\_id|[int](../types/int.md) | Required|
### Type:
[ChannelParticipant](../types/ChannelParticipant.md)
### Type: [ChannelParticipant](../types/ChannelParticipant.md)
### Example: ### Example:
``` ```
$channelParticipantCreator = ['_' => channelParticipantCreator', 'user_id' => int, ]; $channelParticipantCreator = ['_' => channelParticipantCreator', 'user_id' => int, ];
``` ```

View File

@ -7,13 +7,11 @@
|user\_id|[int](../types/int.md) | Required| |user\_id|[int](../types/int.md) | Required|
|inviter\_id|[int](../types/int.md) | Required| |inviter\_id|[int](../types/int.md) | Required|
|date|[int](../types/int.md) | Required| |date|[int](../types/int.md) | Required|
### Type:
[ChannelParticipant](../types/ChannelParticipant.md)
### Type: [ChannelParticipant](../types/ChannelParticipant.md)
### Example: ### Example:
``` ```
$channelParticipantEditor = ['_' => channelParticipantEditor', 'user_id' => int, 'inviter_id' => int, 'date' => int, ]; $channelParticipantEditor = ['_' => channelParticipantEditor', 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
``` ```

View File

@ -7,13 +7,11 @@
|user\_id|[int](../types/int.md) | Required| |user\_id|[int](../types/int.md) | Required|
|kicked\_by|[int](../types/int.md) | Required| |kicked\_by|[int](../types/int.md) | Required|
|date|[int](../types/int.md) | Required| |date|[int](../types/int.md) | Required|
### Type:
[ChannelParticipant](../types/ChannelParticipant.md)
### Type: [ChannelParticipant](../types/ChannelParticipant.md)
### Example: ### Example:
``` ```
$channelParticipantKicked = ['_' => channelParticipantKicked', 'user_id' => int, 'kicked_by' => int, 'date' => int, ]; $channelParticipantKicked = ['_' => channelParticipantKicked', 'user_id' => int, 'kicked_by' => int, 'date' => int, ];
``` ```

View File

@ -7,13 +7,11 @@
|user\_id|[int](../types/int.md) | Required| |user\_id|[int](../types/int.md) | Required|
|inviter\_id|[int](../types/int.md) | Required| |inviter\_id|[int](../types/int.md) | Required|
|date|[int](../types/int.md) | Required| |date|[int](../types/int.md) | Required|
### Type:
[ChannelParticipant](../types/ChannelParticipant.md)
### Type: [ChannelParticipant](../types/ChannelParticipant.md)
### Example: ### Example:
``` ```
$channelParticipantModerator = ['_' => channelParticipantModerator', 'user_id' => int, 'inviter_id' => int, 'date' => int, ]; $channelParticipantModerator = ['_' => channelParticipantModerator', 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
``` ```

View File

@ -7,13 +7,11 @@
|user\_id|[int](../types/int.md) | Required| |user\_id|[int](../types/int.md) | Required|
|inviter\_id|[int](../types/int.md) | Required| |inviter\_id|[int](../types/int.md) | Required|
|date|[int](../types/int.md) | Required| |date|[int](../types/int.md) | Required|
### Type:
[ChannelParticipant](../types/ChannelParticipant.md)
### Type: [ChannelParticipant](../types/ChannelParticipant.md)
### Example: ### Example:
``` ```
$channelParticipantSelf = ['_' => channelParticipantSelf', 'user_id' => int, 'inviter_id' => int, 'date' => int, ]; $channelParticipantSelf = ['_' => channelParticipantSelf', 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
``` ```

View File

@ -1,12 +1,10 @@
## Constructor: channelParticipantsAdmins ## Constructor: channelParticipantsAdmins
### Type:
[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md)
### Type: [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md)
### Example: ### Example:
``` ```
$channelParticipantsAdmins = ['_' => channelParticipantsAdmins', ]; $channelParticipantsAdmins = ['_' => channelParticipantsAdmins', ];
``` ```

View File

@ -1,12 +1,10 @@
## Constructor: channelParticipantsBots ## Constructor: channelParticipantsBots
### Type:
[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md)
### Type: [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md)
### Example: ### Example:
``` ```
$channelParticipantsBots = ['_' => channelParticipantsBots', ]; $channelParticipantsBots = ['_' => channelParticipantsBots', ];
``` ```

View File

@ -1,12 +1,10 @@
## Constructor: channelParticipantsKicked ## Constructor: channelParticipantsKicked
### Type:
[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md)
### Type: [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md)
### Example: ### Example:
``` ```
$channelParticipantsKicked = ['_' => channelParticipantsKicked', ]; $channelParticipantsKicked = ['_' => channelParticipantsKicked', ];
``` ```

View File

@ -1,12 +1,10 @@
## Constructor: channelParticipantsRecent ## Constructor: channelParticipantsRecent
### Type:
[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md)
### Type: [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md)
### Example: ### Example:
``` ```
$channelParticipantsRecent = ['_' => channelParticipantsRecent', ]; $channelParticipantsRecent = ['_' => channelParticipantsRecent', ];
``` ```

View File

@ -1,12 +1,10 @@
## Constructor: channelRoleEditor ## Constructor: channelRoleEditor
### Type:
[ChannelParticipantRole](../types/ChannelParticipantRole.md)
### Type: [ChannelParticipantRole](../types/ChannelParticipantRole.md)
### Example: ### Example:
``` ```
$channelRoleEditor = ['_' => channelRoleEditor', ]; $channelRoleEditor = ['_' => channelRoleEditor', ];
``` ```

View File

@ -1,12 +1,10 @@
## Constructor: channelRoleEmpty ## Constructor: channelRoleEmpty
### Type:
[ChannelParticipantRole](../types/ChannelParticipantRole.md)
### Type: [ChannelParticipantRole](../types/ChannelParticipantRole.md)
### Example: ### Example:
``` ```
$channelRoleEmpty = ['_' => channelRoleEmpty', ]; $channelRoleEmpty = ['_' => channelRoleEmpty', ];
``` ```

View File

@ -1,12 +1,10 @@
## Constructor: channelRoleModerator ## Constructor: channelRoleModerator
### Type:
[ChannelParticipantRole](../types/ChannelParticipantRole.md)
### Type: [ChannelParticipantRole](../types/ChannelParticipantRole.md)
### Example: ### Example:
``` ```
$channelRoleModerator = ['_' => channelRoleModerator', ]; $channelRoleModerator = ['_' => channelRoleModerator', ];
``` ```

View File

@ -6,13 +6,11 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|participant|[ChannelParticipant](../types/ChannelParticipant.md) | Required| |participant|[ChannelParticipant](../types/ChannelParticipant.md) | Required|
|users|Array of [User](../types/User.md) | Required| |users|Array of [User](../types/User.md) | Required|
### Type:
[channels\_ChannelParticipant](../types/channels_ChannelParticipant.md)
### Type: [channels\_ChannelParticipant](../types/channels\_ChannelParticipant.md)
### Example: ### Example:
``` ```
$channels_channelParticipant = ['_' => channels_channelParticipant', 'participant' => ChannelParticipant, 'users' => [Vector t], ]; $channels_channelParticipant = ['_' => channels_channelParticipant', 'participant' => ChannelParticipant, 'users' => [Vector t], ];
``` ```

View File

@ -7,13 +7,11 @@
|count|[int](../types/int.md) | Required| |count|[int](../types/int.md) | Required|
|participants|Array of [ChannelParticipant](../types/ChannelParticipant.md) | Required| |participants|Array of [ChannelParticipant](../types/ChannelParticipant.md) | Required|
|users|Array of [User](../types/User.md) | Required| |users|Array of [User](../types/User.md) | Required|
### Type:
[channels\_ChannelParticipants](../types/channels_ChannelParticipants.md)
### Type: [channels\_ChannelParticipants](../types/channels\_ChannelParticipants.md)
### 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

@ -17,13 +17,11 @@
|date|[int](../types/int.md) | Required| |date|[int](../types/int.md) | Required|
|version|[int](../types/int.md) | Required| |version|[int](../types/int.md) | Required|
|migrated\_to|[InputChannel](../types/InputChannel.md) | Optional| |migrated\_to|[InputChannel](../types/InputChannel.md) | Optional|
### Type:
[Chat](../types/Chat.md)
### Type: [Chat](../types/Chat.md)
### 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

@ -5,13 +5,11 @@
| Name | Type | Required | | Name | Type | Required |
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|id|[int](../types/int.md) | Required| |id|[int](../types/int.md) | Required|
### Type:
[Chat](../types/Chat.md)
### Type: [Chat](../types/Chat.md)
### Example: ### Example:
``` ```
$chatEmpty = ['_' => chatEmpty', 'id' => int, ]; $chatEmpty = ['_' => chatEmpty', 'id' => int, ];
``` ```

View File

@ -6,13 +6,11 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|id|[int](../types/int.md) | Required| |id|[int](../types/int.md) | Required|
|title|[string](../types/string.md) | Required| |title|[string](../types/string.md) | Required|
### Type:
[Chat](../types/Chat.md)
### Type: [Chat](../types/Chat.md)
### Example: ### Example:
``` ```
$chatForbidden = ['_' => chatForbidden', 'id' => int, 'title' => string, ]; $chatForbidden = ['_' => chatForbidden', 'id' => int, 'title' => string, ];
``` ```

View File

@ -10,13 +10,11 @@
|notify\_settings|[PeerNotifySettings](../types/PeerNotifySettings.md) | Required| |notify\_settings|[PeerNotifySettings](../types/PeerNotifySettings.md) | Required|
|exported\_invite|[ExportedChatInvite](../types/ExportedChatInvite.md) | Required| |exported\_invite|[ExportedChatInvite](../types/ExportedChatInvite.md) | Required|
|bot\_info|Array of [BotInfo](../types/BotInfo.md) | Required| |bot\_info|Array of [BotInfo](../types/BotInfo.md) | Required|
### Type:
[ChatFull](../types/ChatFull.md)
### Type: [ChatFull](../types/ChatFull.md)
### 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

@ -12,13 +12,11 @@
|photo|[ChatPhoto](../types/ChatPhoto.md) | Required| |photo|[ChatPhoto](../types/ChatPhoto.md) | Required|
|participants\_count|[int](../types/int.md) | Required| |participants\_count|[int](../types/int.md) | Required|
|participants|Array of [User](../types/User.md) | Optional| |participants|Array of [User](../types/User.md) | Optional|
### Type:
[ChatInvite](../types/ChatInvite.md)
### Type: [ChatInvite](../types/ChatInvite.md)
### 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

@ -5,13 +5,11 @@
| Name | Type | Required | | Name | Type | Required |
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|chat|[Chat](../types/Chat.md) | Required| |chat|[Chat](../types/Chat.md) | Required|
### Type:
[ChatInvite](../types/ChatInvite.md)
### Type: [ChatInvite](../types/ChatInvite.md)
### Example: ### Example:
``` ```
$chatInviteAlready = ['_' => chatInviteAlready', 'chat' => Chat, ]; $chatInviteAlready = ['_' => chatInviteAlready', 'chat' => Chat, ];
``` ```

View File

@ -1,12 +1,10 @@
## Constructor: chatInviteEmpty ## Constructor: chatInviteEmpty
### Type:
[ExportedChatInvite](../types/ExportedChatInvite.md)
### Type: [ExportedChatInvite](../types/ExportedChatInvite.md)
### Example: ### Example:
``` ```
$chatInviteEmpty = ['_' => chatInviteEmpty', ]; $chatInviteEmpty = ['_' => chatInviteEmpty', ];
``` ```

View File

@ -5,13 +5,11 @@
| Name | Type | Required | | Name | Type | Required |
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|link|[string](../types/string.md) | Required| |link|[string](../types/string.md) | Required|
### Type:
[ExportedChatInvite](../types/ExportedChatInvite.md)
### Type: [ExportedChatInvite](../types/ExportedChatInvite.md)
### Example: ### Example:
``` ```
$chatInviteExported = ['_' => chatInviteExported', 'link' => string, ]; $chatInviteExported = ['_' => chatInviteExported', 'link' => string, ];
``` ```

View File

@ -7,13 +7,11 @@
|user\_id|[int](../types/int.md) | Required| |user\_id|[int](../types/int.md) | Required|
|inviter\_id|[int](../types/int.md) | Required| |inviter\_id|[int](../types/int.md) | Required|
|date|[int](../types/int.md) | Required| |date|[int](../types/int.md) | Required|
### Type:
[ChatParticipant](../types/ChatParticipant.md)
### Type: [ChatParticipant](../types/ChatParticipant.md)
### Example: ### Example:
``` ```
$chatParticipant = ['_' => chatParticipant', 'user_id' => int, 'inviter_id' => int, 'date' => int, ]; $chatParticipant = ['_' => chatParticipant', 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
``` ```

View File

@ -7,13 +7,11 @@
|user\_id|[int](../types/int.md) | Required| |user\_id|[int](../types/int.md) | Required|
|inviter\_id|[int](../types/int.md) | Required| |inviter\_id|[int](../types/int.md) | Required|
|date|[int](../types/int.md) | Required| |date|[int](../types/int.md) | Required|
### Type:
[ChatParticipant](../types/ChatParticipant.md)
### Type: [ChatParticipant](../types/ChatParticipant.md)
### Example: ### Example:
``` ```
$chatParticipantAdmin = ['_' => chatParticipantAdmin', 'user_id' => int, 'inviter_id' => int, 'date' => int, ]; $chatParticipantAdmin = ['_' => chatParticipantAdmin', 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
``` ```

View File

@ -5,13 +5,11 @@
| Name | Type | Required | | Name | Type | Required |
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|user\_id|[int](../types/int.md) | Required| |user\_id|[int](../types/int.md) | Required|
### Type:
[ChatParticipant](../types/ChatParticipant.md)
### Type: [ChatParticipant](../types/ChatParticipant.md)
### Example: ### Example:
``` ```
$chatParticipantCreator = ['_' => chatParticipantCreator', 'user_id' => int, ]; $chatParticipantCreator = ['_' => chatParticipantCreator', 'user_id' => int, ];
``` ```

View File

@ -7,13 +7,11 @@
|chat\_id|[int](../types/int.md) | Required| |chat\_id|[int](../types/int.md) | Required|
|participants|Array of [ChatParticipant](../types/ChatParticipant.md) | Required| |participants|Array of [ChatParticipant](../types/ChatParticipant.md) | Required|
|version|[int](../types/int.md) | Required| |version|[int](../types/int.md) | Required|
### Type:
[ChatParticipants](../types/ChatParticipants.md)
### Type: [ChatParticipants](../types/ChatParticipants.md)
### Example: ### Example:
``` ```
$chatParticipants = ['_' => chatParticipants', 'chat_id' => int, 'participants' => [Vector t], 'version' => int, ]; $chatParticipants = ['_' => chatParticipants', 'chat_id' => int, 'participants' => [Vector t], 'version' => int, ];
``` ```

View File

@ -6,13 +6,11 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|chat\_id|[int](../types/int.md) | Required| |chat\_id|[int](../types/int.md) | Required|
|self\_participant|[ChatParticipant](../types/ChatParticipant.md) | Optional| |self\_participant|[ChatParticipant](../types/ChatParticipant.md) | Optional|
### Type:
[ChatParticipants](../types/ChatParticipants.md)
### Type: [ChatParticipants](../types/ChatParticipants.md)
### Example: ### Example:
``` ```
$chatParticipantsForbidden = ['_' => chatParticipantsForbidden', 'chat_id' => int, 'self_participant' => ChatParticipant, ]; $chatParticipantsForbidden = ['_' => chatParticipantsForbidden', 'chat_id' => int, 'self_participant' => ChatParticipant, ];
``` ```

View File

@ -6,13 +6,11 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|photo\_small|[FileLocation](../types/FileLocation.md) | Required| |photo\_small|[FileLocation](../types/FileLocation.md) | Required|
|photo\_big|[FileLocation](../types/FileLocation.md) | Required| |photo\_big|[FileLocation](../types/FileLocation.md) | Required|
### Type:
[ChatPhoto](../types/ChatPhoto.md)
### Type: [ChatPhoto](../types/ChatPhoto.md)
### Example: ### Example:
``` ```
$chatPhoto = ['_' => chatPhoto', 'photo_small' => FileLocation, 'photo_big' => FileLocation, ]; $chatPhoto = ['_' => chatPhoto', 'photo_small' => FileLocation, 'photo_big' => FileLocation, ];
``` ```

View File

@ -1,12 +1,10 @@
## Constructor: chatPhotoEmpty ## Constructor: chatPhotoEmpty
### Type:
[ChatPhoto](../types/ChatPhoto.md)
### Type: [ChatPhoto](../types/ChatPhoto.md)
### Example: ### Example:
``` ```
$chatPhotoEmpty = ['_' => chatPhotoEmpty', ]; $chatPhotoEmpty = ['_' => chatPhotoEmpty', ];
``` ```

View File

@ -27,13 +27,11 @@
|stickers\_recent\_limit|[int](../types/int.md) | Required| |stickers\_recent\_limit|[int](../types/int.md) | Required|
|tmp\_sessions|[int](../types/int.md) | Optional| |tmp\_sessions|[int](../types/int.md) | Optional|
|disabled\_features|Array of [DisabledFeature](../types/DisabledFeature.md) | Required| |disabled\_features|Array of [DisabledFeature](../types/DisabledFeature.md) | Required|
### Type:
[Config](../types/Config.md)
### Type: [Config](../types/Config.md)
### 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

@ -6,13 +6,11 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|user\_id|[int](../types/int.md) | Required| |user\_id|[int](../types/int.md) | Required|
|mutual|[Bool](../types/Bool.md) | Required| |mutual|[Bool](../types/Bool.md) | Required|
### Type:
[Contact](../types/Contact.md)
### Type: [Contact](../types/Contact.md)
### Example: ### Example:
``` ```
$contact = ['_' => contact', 'user_id' => int, 'mutual' => Bool, ]; $contact = ['_' => contact', 'user_id' => int, 'mutual' => Bool, ];
``` ```

View File

@ -6,13 +6,11 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|user\_id|[int](../types/int.md) | Required| |user\_id|[int](../types/int.md) | Required|
|date|[int](../types/int.md) | Required| |date|[int](../types/int.md) | Required|
### Type:
[ContactBlocked](../types/ContactBlocked.md)
### Type: [ContactBlocked](../types/ContactBlocked.md)
### Example: ### Example:
``` ```
$contactBlocked = ['_' => contactBlocked', 'user_id' => int, 'date' => int, ]; $contactBlocked = ['_' => contactBlocked', 'user_id' => int, 'date' => int, ];
``` ```

View File

@ -1,12 +1,10 @@
## Constructor: contactLinkContact ## Constructor: contactLinkContact
### Type:
[ContactLink](../types/ContactLink.md)
### Type: [ContactLink](../types/ContactLink.md)
### Example: ### Example:
``` ```
$contactLinkContact = ['_' => contactLinkContact', ]; $contactLinkContact = ['_' => contactLinkContact', ];
``` ```

View File

@ -1,12 +1,10 @@
## Constructor: contactLinkHasPhone ## Constructor: contactLinkHasPhone
### Type:
[ContactLink](../types/ContactLink.md)
### Type: [ContactLink](../types/ContactLink.md)
### Example: ### Example:
``` ```
$contactLinkHasPhone = ['_' => contactLinkHasPhone', ]; $contactLinkHasPhone = ['_' => contactLinkHasPhone', ];
``` ```

View File

@ -1,12 +1,10 @@
## Constructor: contactLinkNone ## Constructor: contactLinkNone
### Type:
[ContactLink](../types/ContactLink.md)
### Type: [ContactLink](../types/ContactLink.md)
### Example: ### Example:
``` ```
$contactLinkNone = ['_' => contactLinkNone', ]; $contactLinkNone = ['_' => contactLinkNone', ];
``` ```

View File

@ -1,12 +1,10 @@
## Constructor: contactLinkUnknown ## Constructor: contactLinkUnknown
### Type:
[ContactLink](../types/ContactLink.md)
### Type: [ContactLink](../types/ContactLink.md)
### Example: ### Example:
``` ```
$contactLinkUnknown = ['_' => contactLinkUnknown', ]; $contactLinkUnknown = ['_' => contactLinkUnknown', ];
``` ```

View File

@ -6,13 +6,11 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|user\_id|[int](../types/int.md) | Required| |user\_id|[int](../types/int.md) | Required|
|status|[UserStatus](../types/UserStatus.md) | Required| |status|[UserStatus](../types/UserStatus.md) | Required|
### Type:
[ContactStatus](../types/ContactStatus.md)
### Type: [ContactStatus](../types/ContactStatus.md)
### Example: ### Example:
``` ```
$contactStatus = ['_' => contactStatus', 'user_id' => int, 'status' => UserStatus, ]; $contactStatus = ['_' => contactStatus', 'user_id' => int, 'status' => UserStatus, ];
``` ```

View File

@ -6,13 +6,11 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|blocked|Array of [ContactBlocked](../types/ContactBlocked.md) | Required| |blocked|Array of [ContactBlocked](../types/ContactBlocked.md) | Required|
|users|Array of [User](../types/User.md) | Required| |users|Array of [User](../types/User.md) | Required|
### Type:
[contacts\_Blocked](../types/contacts_Blocked.md)
### Type: [contacts\_Blocked](../types/contacts\_Blocked.md)
### Example: ### Example:
``` ```
$contacts_blocked = ['_' => contacts_blocked', 'blocked' => [Vector t], 'users' => [Vector t], ]; $contacts_blocked = ['_' => contacts_blocked', 'blocked' => [Vector t], 'users' => [Vector t], ];
``` ```

View File

@ -7,13 +7,11 @@
|count|[int](../types/int.md) | Required| |count|[int](../types/int.md) | Required|
|blocked|Array of [ContactBlocked](../types/ContactBlocked.md) | Required| |blocked|Array of [ContactBlocked](../types/ContactBlocked.md) | Required|
|users|Array of [User](../types/User.md) | Required| |users|Array of [User](../types/User.md) | Required|
### Type:
[contacts\_Blocked](../types/contacts_Blocked.md)
### Type: [contacts\_Blocked](../types/contacts\_Blocked.md)
### 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

@ -6,13 +6,11 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|contacts|Array of [Contact](../types/Contact.md) | Required| |contacts|Array of [Contact](../types/Contact.md) | Required|
|users|Array of [User](../types/User.md) | Required| |users|Array of [User](../types/User.md) | Required|
### Type:
[contacts\_Contacts](../types/contacts_Contacts.md)
### Type: [contacts\_Contacts](../types/contacts\_Contacts.md)
### Example: ### Example:
``` ```
$contacts_contacts = ['_' => contacts_contacts', 'contacts' => [Vector t], 'users' => [Vector t], ]; $contacts_contacts = ['_' => contacts_contacts', 'contacts' => [Vector t], 'users' => [Vector t], ];
``` ```

View File

@ -1,12 +1,10 @@
## Constructor: contacts\_contactsNotModified ## Constructor: contacts\_contactsNotModified
### Type:
[contacts\_Contacts](../types/contacts_Contacts.md)
### Type: [contacts\_Contacts](../types/contacts\_Contacts.md)
### Example: ### Example:
``` ```
$contacts_contactsNotModified = ['_' => contacts_contactsNotModified', ]; $contacts_contactsNotModified = ['_' => contacts_contactsNotModified', ];
``` ```

View File

@ -7,13 +7,11 @@
|results|Array of [Peer](../types/Peer.md) | Required| |results|Array of [Peer](../types/Peer.md) | Required|
|chats|Array of [Chat](../types/Chat.md) | Required| |chats|Array of [Chat](../types/Chat.md) | Required|
|users|Array of [User](../types/User.md) | Required| |users|Array of [User](../types/User.md) | Required|
### Type:
[contacts\_Found](../types/contacts_Found.md)
### Type: [contacts\_Found](../types/contacts\_Found.md)
### 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

@ -7,13 +7,11 @@
|imported|Array of [ImportedContact](../types/ImportedContact.md) | Required| |imported|Array of [ImportedContact](../types/ImportedContact.md) | Required|
|retry\_contacts|Array of [long](../types/long.md) | Required| |retry\_contacts|Array of [long](../types/long.md) | Required|
|users|Array of [User](../types/User.md) | Required| |users|Array of [User](../types/User.md) | Required|
### Type:
[contacts\_ImportedContacts](../types/contacts_ImportedContacts.md)
### Type: [contacts\_ImportedContacts](../types/contacts\_ImportedContacts.md)
### 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

@ -7,13 +7,11 @@
|my\_link|[ContactLink](../types/ContactLink.md) | Required| |my\_link|[ContactLink](../types/ContactLink.md) | Required|
|foreign\_link|[ContactLink](../types/ContactLink.md) | Required| |foreign\_link|[ContactLink](../types/ContactLink.md) | Required|
|user|[User](../types/User.md) | Required| |user|[User](../types/User.md) | Required|
### Type:
[contacts\_Link](../types/contacts_Link.md)
### Type: [contacts\_Link](../types/contacts\_Link.md)
### 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

@ -7,13 +7,11 @@
|peer|[Peer](../types/Peer.md) | Required| |peer|[Peer](../types/Peer.md) | Required|
|chats|Array of [Chat](../types/Chat.md) | Required| |chats|Array of [Chat](../types/Chat.md) | Required|
|users|Array of [User](../types/User.md) | Required| |users|Array of [User](../types/User.md) | Required|
### Type:
[contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md)
### Type: [contacts\_ResolvedPeer](../types/contacts\_ResolvedPeer.md)
### 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

@ -7,13 +7,11 @@
|categories|Array of [TopPeerCategoryPeers](../types/TopPeerCategoryPeers.md) | Required| |categories|Array of [TopPeerCategoryPeers](../types/TopPeerCategoryPeers.md) | Required|
|chats|Array of [Chat](../types/Chat.md) | Required| |chats|Array of [Chat](../types/Chat.md) | Required|
|users|Array of [User](../types/User.md) | Required| |users|Array of [User](../types/User.md) | Required|
### Type:
[contacts\_TopPeers](../types/contacts_TopPeers.md)
### Type: [contacts\_TopPeers](../types/contacts\_TopPeers.md)
### 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

@ -1,12 +1,10 @@
## Constructor: contacts\_topPeersNotModified ## Constructor: contacts\_topPeersNotModified
### Type:
[contacts\_TopPeers](../types/contacts_TopPeers.md)
### Type: [contacts\_TopPeers](../types/contacts\_TopPeers.md)
### Example: ### Example:
``` ```
$contacts_topPeersNotModified = ['_' => contacts_topPeersNotModified', ]; $contacts_topPeersNotModified = ['_' => contacts_topPeersNotModified', ];
``` ```

View File

@ -10,13 +10,11 @@
|id|[int](../types/int.md) | Required| |id|[int](../types/int.md) | Required|
|ip\_address|[string](../types/string.md) | Required| |ip\_address|[string](../types/string.md) | Required|
|port|[int](../types/int.md) | Required| |port|[int](../types/int.md) | Required|
### Type:
[DcOption](../types/DcOption.md)
### Type: [DcOption](../types/DcOption.md)
### 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

@ -12,13 +12,11 @@
|notify\_settings|[PeerNotifySettings](../types/PeerNotifySettings.md) | Required| |notify\_settings|[PeerNotifySettings](../types/PeerNotifySettings.md) | Required|
|pts|[int](../types/int.md) | Optional| |pts|[int](../types/int.md) | Optional|
|draft|[DraftMessage](../types/DraftMessage.md) | Optional| |draft|[DraftMessage](../types/DraftMessage.md) | Optional|
### Type:
[Dialog](../types/Dialog.md)
### Type: [Dialog](../types/Dialog.md)
### 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

@ -6,13 +6,11 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|feature|[string](../types/string.md) | Required| |feature|[string](../types/string.md) | Required|
|description|[string](../types/string.md) | Required| |description|[string](../types/string.md) | Required|
### Type:
[DisabledFeature](../types/DisabledFeature.md)
### Type: [DisabledFeature](../types/DisabledFeature.md)
### Example: ### Example:
``` ```
$disabledFeature = ['_' => disabledFeature', 'feature' => string, 'description' => string, ]; $disabledFeature = ['_' => disabledFeature', 'feature' => string, 'description' => string, ];
``` ```

View File

@ -13,13 +13,11 @@
|dc\_id|[int](../types/int.md) | Required| |dc\_id|[int](../types/int.md) | Required|
|version|[int](../types/int.md) | Required| |version|[int](../types/int.md) | Required|
|attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Required| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Required|
### Type:
[Document](../types/Document.md)
### Type: [Document](../types/Document.md)
### 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

@ -1,12 +1,10 @@
## Constructor: documentAttributeAnimated ## Constructor: documentAttributeAnimated
### Type:
[DocumentAttribute](../types/DocumentAttribute.md)
### Type: [DocumentAttribute](../types/DocumentAttribute.md)
### Example: ### Example:
``` ```
$documentAttributeAnimated = ['_' => documentAttributeAnimated', ]; $documentAttributeAnimated = ['_' => documentAttributeAnimated', ];
``` ```

View File

@ -9,13 +9,11 @@
|title|[string](../types/string.md) | Optional| |title|[string](../types/string.md) | Optional|
|performer|[string](../types/string.md) | Optional| |performer|[string](../types/string.md) | Optional|
|waveform|[bytes](../types/bytes.md) | Optional| |waveform|[bytes](../types/bytes.md) | Optional|
### Type:
[DocumentAttribute](../types/DocumentAttribute.md)
### Type: [DocumentAttribute](../types/DocumentAttribute.md)
### 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

@ -5,13 +5,11 @@
| Name | Type | Required | | Name | Type | Required |
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|file\_name|[string](../types/string.md) | Required| |file\_name|[string](../types/string.md) | Required|
### Type:
[DocumentAttribute](../types/DocumentAttribute.md)
### Type: [DocumentAttribute](../types/DocumentAttribute.md)
### Example: ### Example:
``` ```
$documentAttributeFilename = ['_' => documentAttributeFilename', 'file_name' => string, ]; $documentAttributeFilename = ['_' => documentAttributeFilename', 'file_name' => string, ];
``` ```

View File

@ -1,12 +1,10 @@
## Constructor: documentAttributeHasStickers ## Constructor: documentAttributeHasStickers
### Type:
[DocumentAttribute](../types/DocumentAttribute.md)
### Type: [DocumentAttribute](../types/DocumentAttribute.md)
### Example: ### Example:
``` ```
$documentAttributeHasStickers = ['_' => documentAttributeHasStickers', ]; $documentAttributeHasStickers = ['_' => documentAttributeHasStickers', ];
``` ```

View File

@ -6,13 +6,11 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|w|[int](../types/int.md) | Required| |w|[int](../types/int.md) | Required|
|h|[int](../types/int.md) | Required| |h|[int](../types/int.md) | Required|
### Type:
[DocumentAttribute](../types/DocumentAttribute.md)
### Type: [DocumentAttribute](../types/DocumentAttribute.md)
### Example: ### Example:
``` ```
$documentAttributeImageSize = ['_' => documentAttributeImageSize', 'w' => int, 'h' => int, ]; $documentAttributeImageSize = ['_' => documentAttributeImageSize', 'w' => int, 'h' => int, ];
``` ```

View File

@ -8,13 +8,11 @@
|alt|[string](../types/string.md) | Required| |alt|[string](../types/string.md) | Required|
|stickerset|[InputStickerSet](../types/InputStickerSet.md) | Required| |stickerset|[InputStickerSet](../types/InputStickerSet.md) | Required|
|mask\_coords|[MaskCoords](../types/MaskCoords.md) | Optional| |mask\_coords|[MaskCoords](../types/MaskCoords.md) | Optional|
### Type:
[DocumentAttribute](../types/DocumentAttribute.md)
### Type: [DocumentAttribute](../types/DocumentAttribute.md)
### Example: ### Example:
``` ```
$documentAttributeSticker = ['_' => documentAttributeSticker', 'mask' => true, 'alt' => string, 'stickerset' => InputStickerSet, 'mask_coords' => MaskCoords, ]; $documentAttributeSticker = ['_' => documentAttributeSticker', 'mask' => true, 'alt' => string, 'stickerset' => InputStickerSet, 'mask_coords' => MaskCoords, ];
``` ```

View File

@ -7,13 +7,11 @@
|duration|[int](../types/int.md) | Required| |duration|[int](../types/int.md) | Required|
|w|[int](../types/int.md) | Required| |w|[int](../types/int.md) | Required|
|h|[int](../types/int.md) | Required| |h|[int](../types/int.md) | Required|
### Type:
[DocumentAttribute](../types/DocumentAttribute.md)
### Type: [DocumentAttribute](../types/DocumentAttribute.md)
### Example: ### Example:
``` ```
$documentAttributeVideo = ['_' => documentAttributeVideo', 'duration' => int, 'w' => int, 'h' => int, ]; $documentAttributeVideo = ['_' => documentAttributeVideo', 'duration' => int, 'w' => int, 'h' => int, ];
``` ```

View File

@ -5,13 +5,11 @@
| Name | Type | Required | | Name | Type | Required |
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|id|[long](../types/long.md) | Required| |id|[long](../types/long.md) | Required|
### Type:
[Document](../types/Document.md)
### Type: [Document](../types/Document.md)
### Example: ### Example:
``` ```
$documentEmpty = ['_' => documentEmpty', 'id' => long, ]; $documentEmpty = ['_' => documentEmpty', 'id' => long, ];
``` ```

View File

@ -9,13 +9,11 @@
|message|[string](../types/string.md) | Required| |message|[string](../types/string.md) | Required|
|entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional| |entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional|
|date|[int](../types/int.md) | Required| |date|[int](../types/int.md) | Required|
### Type:
[DraftMessage](../types/DraftMessage.md)
### Type: [DraftMessage](../types/DraftMessage.md)
### Example: ### Example:
``` ```
$draftMessage = ['_' => draftMessage', 'no_webpage' => true, 'reply_to_msg_id' => int, 'message' => string, 'entities' => [Vector t], 'date' => int, ]; $draftMessage = ['_' => draftMessage', 'no_webpage' => true, 'reply_to_msg_id' => int, 'message' => string, 'entities' => [Vector t], 'date' => int, ];
``` ```

View File

@ -1,12 +1,10 @@
## Constructor: draftMessageEmpty ## Constructor: draftMessageEmpty
### Type:
[DraftMessage](../types/DraftMessage.md)
### Type: [DraftMessage](../types/DraftMessage.md)
### Example: ### Example:
``` ```
$draftMessageEmpty = ['_' => draftMessageEmpty', ]; $draftMessageEmpty = ['_' => draftMessageEmpty', ];
``` ```

View File

@ -11,13 +11,11 @@
|participant\_id|[int](../types/int.md) | Required| |participant\_id|[int](../types/int.md) | Required|
|g\_a\_or\_b|[bytes](../types/bytes.md) | Required| |g\_a\_or\_b|[bytes](../types/bytes.md) | Required|
|key\_fingerprint|[long](../types/long.md) | Required| |key\_fingerprint|[long](../types/long.md) | Required|
### Type:
[EncryptedChat](../types/EncryptedChat.md)
### Type: [EncryptedChat](../types/EncryptedChat.md)
### Example: ### Example:
``` ```
$encryptedChat = ['_' => 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, ];
``` ```

View File

@ -5,13 +5,11 @@
| Name | Type | Required | | Name | Type | Required |
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|id|[int](../types/int.md) | Required| |id|[int](../types/int.md) | Required|
### Type:
[EncryptedChat](../types/EncryptedChat.md)
### Type: [EncryptedChat](../types/EncryptedChat.md)
### Example: ### Example:
``` ```
$encryptedChatDiscarded = ['_' => encryptedChatDiscarded', 'id' => int, ]; $encryptedChatDiscarded = ['_' => encryptedChatDiscarded', 'id' => int, ];
``` ```

View File

@ -5,13 +5,11 @@
| Name | Type | Required | | Name | Type | Required |
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|id|[int](../types/int.md) | Required| |id|[int](../types/int.md) | Required|
### Type:
[EncryptedChat](../types/EncryptedChat.md)
### Type: [EncryptedChat](../types/EncryptedChat.md)
### Example: ### Example:
``` ```
$encryptedChatEmpty = ['_' => encryptedChatEmpty', 'id' => int, ]; $encryptedChatEmpty = ['_' => encryptedChatEmpty', 'id' => int, ];
``` ```

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