Fixing markdown syntax

This commit is contained in:
danogentili 2016-12-19 20:56:05 +03:00
parent ddafe3d879
commit e3a5cf5ba1
451 changed files with 2266 additions and 911 deletions

View File

@ -121,10 +121,10 @@ foreach ($TL->methods->method as $key => $method) {
'; ';
$return = '### Return type: ['.str_replace('_', '\_', $type).'](../types/'.$real_type.'.md) $return = '### Return type: ['.str_replace('_', '\_', $type).'](../types/'.$real_type.'.md)
### Example:
'; ';
$example = str_replace('[]', '', ' $example = str_replace('[]', '', '### Example:
``` ```
$MadelineProto = new \danog\MadelineProto\API(); $MadelineProto = new \danog\MadelineProto\API();
if (isset($token)) { if (isset($token)) {
@ -247,9 +247,13 @@ foreach ($TL->constructors->predicate as $key => $constructor) {
$header = str_replace('_', '\_', '## Constructor: '.$constructor.' $header = str_replace('_', '\_', '## Constructor: '.$constructor.'
'); ');
$type = '### Type: $table .= '
';
$type = '### Type: ['.str_replace('_', '\_', $real_type).'](../types/'.$real_type.'.md)
['.str_replace('_', '\_', $real_type).'](../types/'.$real_type.'.md)
'; ';
$example = '### Example: $example = '### Example:
@ -299,6 +303,13 @@ foreach ($types as $type => $keys) {
file_put_contents('types/'.$type.'.md', $header.$constructors); file_put_contents('types/'.$type.'.md', $header.$constructors);
} }
\danog\MadelineProto\Logger::log('Generating types index...');
file_put_contents('types/index.md', '# Types
'.$index);
\danog\MadelineProto\Logger::log('Generating additional types...'); \danog\MadelineProto\Logger::log('Generating additional types...');
file_put_contents('types/string.md', '## Type: string file_put_contents('types/string.md', '## Type: string
@ -329,12 +340,6 @@ file_put_contents('types/X.md', '## Type: X
Represents a TL serialized payload.'); Represents a TL serialized payload.');
\danog\MadelineProto\Logger::log('Generating types index...');
file_put_contents('types/index.md', '# Types
'.$index);
file_put_contents('constructors/boolFalse.md', '# boolFalse file_put_contents('constructors/boolFalse.md', '# boolFalse
Represents boolean with value equal to `false`.'); Represents boolean with value equal to `false`.');

View File

@ -5,9 +5,12 @@
| 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:
``` ```

View File

@ -5,9 +5,12 @@
| 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:
``` ```

View File

@ -6,9 +6,12 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|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:
``` ```

View File

@ -9,9 +9,12 @@
|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:
``` ```

View File

@ -8,9 +8,12 @@
|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:
``` ```

View File

@ -5,9 +5,12 @@
| 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:
``` ```

View File

@ -6,9 +6,12 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|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:
``` ```

View File

@ -6,9 +6,12 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|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:
``` ```

View File

@ -5,9 +5,12 @@
| 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:
``` ```

View File

@ -1,8 +1,11 @@
## Constructor: auth\_codeTypeCall ## Constructor: auth\_codeTypeCall
### Type:
[auth\_CodeType](../types/auth_CodeType.md)
### Type: [auth\_CodeType](../types/auth_CodeType.md)
### Example: ### Example:
``` ```

View File

@ -1,8 +1,11 @@
## Constructor: auth\_codeTypeFlashCall ## Constructor: auth\_codeTypeFlashCall
### Type:
[auth\_CodeType](../types/auth_CodeType.md)
### Type: [auth\_CodeType](../types/auth_CodeType.md)
### Example: ### Example:
``` ```

View File

@ -1,8 +1,11 @@
## Constructor: auth\_codeTypeSms ## Constructor: auth\_codeTypeSms
### Type:
[auth\_CodeType](../types/auth_CodeType.md)
### Type: [auth\_CodeType](../types/auth_CodeType.md)
### Example: ### Example:
``` ```

View File

@ -6,9 +6,12 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|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:
``` ```

View File

@ -5,9 +5,12 @@
| 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:
``` ```

View File

@ -9,9 +9,12 @@
|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:
``` ```

View File

@ -5,9 +5,12 @@
| 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:
``` ```

View File

@ -5,9 +5,12 @@
| 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:
``` ```

View File

@ -5,9 +5,12 @@
| 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:
``` ```

View File

@ -5,9 +5,12 @@
| 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:
``` ```

View File

@ -16,9 +16,12 @@
|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:
``` ```

View File

@ -6,9 +6,12 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|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:
``` ```

View File

@ -7,9 +7,12 @@
|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:
``` ```

View File

@ -11,9 +11,12 @@
|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:
``` ```

View File

@ -6,9 +6,12 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|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:
``` ```

View File

@ -8,9 +8,12 @@
|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:
``` ```

View File

@ -6,9 +6,12 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|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:
``` ```

View File

@ -10,9 +10,12 @@
|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:
``` ```

View File

@ -8,9 +8,12 @@
|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:
``` ```

View File

@ -16,9 +16,12 @@
|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:
``` ```

View File

@ -24,9 +24,12 @@
|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:
``` ```

View File

@ -9,9 +9,12 @@
|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:
``` ```

View File

@ -21,9 +21,12 @@
|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:
``` ```

View File

@ -6,9 +6,12 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|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:
``` ```

View File

@ -1,8 +1,11 @@
## Constructor: channelMessagesFilterEmpty ## Constructor: channelMessagesFilterEmpty
### Type:
[ChannelMessagesFilter](../types/ChannelMessagesFilter.md)
### Type: [ChannelMessagesFilter](../types/ChannelMessagesFilter.md)
### Example: ### Example:
``` ```

View File

@ -6,9 +6,12 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|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:
``` ```

View File

@ -5,9 +5,12 @@
| 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:
``` ```

View File

@ -7,9 +7,12 @@
|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:
``` ```

View File

@ -7,9 +7,12 @@
|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:
``` ```

View File

@ -7,9 +7,12 @@
|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:
``` ```

View File

@ -7,9 +7,12 @@
|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:
``` ```

View File

@ -1,8 +1,11 @@
## Constructor: channelParticipantsAdmins ## Constructor: channelParticipantsAdmins
### Type:
[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md)
### Type: [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md)
### Example: ### Example:
``` ```

View File

@ -1,8 +1,11 @@
## Constructor: channelParticipantsBots ## Constructor: channelParticipantsBots
### Type:
[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md)
### Type: [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md)
### Example: ### Example:
``` ```

View File

@ -1,8 +1,11 @@
## Constructor: channelParticipantsKicked ## Constructor: channelParticipantsKicked
### Type:
[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md)
### Type: [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md)
### Example: ### Example:
``` ```

View File

@ -1,8 +1,11 @@
## Constructor: channelParticipantsRecent ## Constructor: channelParticipantsRecent
### Type:
[ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md)
### Type: [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md)
### Example: ### Example:
``` ```

View File

@ -1,8 +1,11 @@
## Constructor: channelRoleEditor ## Constructor: channelRoleEditor
### Type:
[ChannelParticipantRole](../types/ChannelParticipantRole.md)
### Type: [ChannelParticipantRole](../types/ChannelParticipantRole.md)
### Example: ### Example:
``` ```

View File

@ -1,8 +1,11 @@
## Constructor: channelRoleEmpty ## Constructor: channelRoleEmpty
### Type:
[ChannelParticipantRole](../types/ChannelParticipantRole.md)
### Type: [ChannelParticipantRole](../types/ChannelParticipantRole.md)
### Example: ### Example:
``` ```

View File

@ -1,8 +1,11 @@
## Constructor: channelRoleModerator ## Constructor: channelRoleModerator
### Type:
[ChannelParticipantRole](../types/ChannelParticipantRole.md)
### Type: [ChannelParticipantRole](../types/ChannelParticipantRole.md)
### Example: ### Example:
``` ```

View File

@ -6,9 +6,12 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|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:
``` ```

View File

@ -7,9 +7,12 @@
|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:
``` ```

View File

@ -17,9 +17,12 @@
|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:
``` ```

View File

@ -5,9 +5,12 @@
| 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:
``` ```

View File

@ -6,9 +6,12 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|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:
``` ```

View File

@ -10,9 +10,12 @@
|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:
``` ```

View File

@ -12,9 +12,12 @@
|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:
``` ```

View File

@ -5,9 +5,12 @@
| 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:
``` ```

View File

@ -1,8 +1,11 @@
## Constructor: chatInviteEmpty ## Constructor: chatInviteEmpty
### Type:
[ExportedChatInvite](../types/ExportedChatInvite.md)
### Type: [ExportedChatInvite](../types/ExportedChatInvite.md)
### Example: ### Example:
``` ```

View File

@ -5,9 +5,12 @@
| 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:
``` ```

View File

@ -7,9 +7,12 @@
|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:
``` ```

View File

@ -7,9 +7,12 @@
|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:
``` ```

View File

@ -5,9 +5,12 @@
| 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:
``` ```

View File

@ -7,9 +7,12 @@
|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:
``` ```

View File

@ -6,9 +6,12 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|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:
``` ```

View File

@ -6,9 +6,12 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|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:
``` ```

View File

@ -1,8 +1,11 @@
## Constructor: chatPhotoEmpty ## Constructor: chatPhotoEmpty
### Type:
[ChatPhoto](../types/ChatPhoto.md)
### Type: [ChatPhoto](../types/ChatPhoto.md)
### Example: ### Example:
``` ```

View File

@ -27,9 +27,12 @@
|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:
``` ```

View File

@ -6,9 +6,12 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|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:
``` ```

View File

@ -6,9 +6,12 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|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:
``` ```

View File

@ -1,8 +1,11 @@
## Constructor: contactLinkContact ## Constructor: contactLinkContact
### Type:
[ContactLink](../types/ContactLink.md)
### Type: [ContactLink](../types/ContactLink.md)
### Example: ### Example:
``` ```

View File

@ -1,8 +1,11 @@
## Constructor: contactLinkHasPhone ## Constructor: contactLinkHasPhone
### Type:
[ContactLink](../types/ContactLink.md)
### Type: [ContactLink](../types/ContactLink.md)
### Example: ### Example:
``` ```

View File

@ -1,8 +1,11 @@
## Constructor: contactLinkNone ## Constructor: contactLinkNone
### Type:
[ContactLink](../types/ContactLink.md)
### Type: [ContactLink](../types/ContactLink.md)
### Example: ### Example:
``` ```

View File

@ -1,8 +1,11 @@
## Constructor: contactLinkUnknown ## Constructor: contactLinkUnknown
### Type:
[ContactLink](../types/ContactLink.md)
### Type: [ContactLink](../types/ContactLink.md)
### Example: ### Example:
``` ```

View File

@ -6,9 +6,12 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|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:
``` ```

View File

@ -6,9 +6,12 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|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:
``` ```

View File

@ -7,9 +7,12 @@
|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:
``` ```

View File

@ -6,9 +6,12 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|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:
``` ```

View File

@ -1,8 +1,11 @@
## Constructor: contacts\_contactsNotModified ## Constructor: contacts\_contactsNotModified
### Type:
[contacts\_Contacts](../types/contacts_Contacts.md)
### Type: [contacts\_Contacts](../types/contacts_Contacts.md)
### Example: ### Example:
``` ```

View File

@ -7,9 +7,12 @@
|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:
``` ```

View File

@ -7,9 +7,12 @@
|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:
``` ```

View File

@ -7,9 +7,12 @@
|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:
``` ```

View File

@ -7,9 +7,12 @@
|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:
``` ```

View File

@ -7,9 +7,12 @@
|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:
``` ```

View File

@ -1,8 +1,11 @@
## Constructor: contacts\_topPeersNotModified ## Constructor: contacts\_topPeersNotModified
### Type:
[contacts\_TopPeers](../types/contacts_TopPeers.md)
### Type: [contacts\_TopPeers](../types/contacts_TopPeers.md)
### Example: ### Example:
``` ```

View File

@ -10,9 +10,12 @@
|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:
``` ```

View File

@ -12,9 +12,12 @@
|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:
``` ```

View File

@ -6,9 +6,12 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|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:
``` ```

View File

@ -13,9 +13,12 @@
|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:
``` ```

View File

@ -1,8 +1,11 @@
## Constructor: documentAttributeAnimated ## Constructor: documentAttributeAnimated
### Type:
[DocumentAttribute](../types/DocumentAttribute.md)
### Type: [DocumentAttribute](../types/DocumentAttribute.md)
### Example: ### Example:
``` ```

View File

@ -9,9 +9,12 @@
|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:
``` ```

View File

@ -5,9 +5,12 @@
| 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:
``` ```

View File

@ -1,8 +1,11 @@
## Constructor: documentAttributeHasStickers ## Constructor: documentAttributeHasStickers
### Type:
[DocumentAttribute](../types/DocumentAttribute.md)
### Type: [DocumentAttribute](../types/DocumentAttribute.md)
### Example: ### Example:
``` ```

View File

@ -6,9 +6,12 @@
|----------|:-------------:|---------:| |----------|:-------------:|---------:|
|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:
``` ```

View File

@ -8,9 +8,12 @@
|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:
``` ```

View File

@ -7,9 +7,12 @@
|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:
``` ```

View File

@ -5,9 +5,12 @@
| 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:
``` ```

View File

@ -9,9 +9,12 @@
|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:
``` ```

View File

@ -1,8 +1,11 @@
## Constructor: draftMessageEmpty ## Constructor: draftMessageEmpty
### Type:
[DraftMessage](../types/DraftMessage.md)
### Type: [DraftMessage](../types/DraftMessage.md)
### Example: ### Example:
``` ```

View File

@ -11,9 +11,12 @@
|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:
``` ```

View File

@ -5,9 +5,12 @@
| 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:
``` ```

View File

@ -5,9 +5,12 @@
| 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:
``` ```

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