Improved documentation generation
This commit is contained in:
parent
d664dd3bb3
commit
ffb8f2267c
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,5 @@
|
||||
_site
|
||||
|
||||
# JetBrains IDE
|
||||
.idea/
|
||||
*.iml
|
||||
@ -61,7 +63,6 @@ target/
|
||||
.#*#
|
||||
*.swp
|
||||
vendor
|
||||
*save
|
||||
*bak
|
||||
number.php
|
||||
token.php
|
||||
|
14
README.md
14
README.md
@ -8,11 +8,11 @@ PHP implementation of MTProto, based on [telepy](https://github.com/griganton/te
|
||||
|
||||
This project can run on PHP 7, PHP 5.6 and HHVM, only 64 bit systems are supported ATM.
|
||||
|
||||
Also note that MadelineProto will perform better if a big math extension like gmp o bcmath is installed.
|
||||
Also note that MadelineProto will perform better if a big math extension like gmp or bcmath is installed.
|
||||
|
||||
This project is in beta state.
|
||||
|
||||
The API documentation can be found [here](https://daniil.it/MadelineProto/API_docs/).
|
||||
The MadelineProto API documentation can be found [here](https://daniil.it/MadelineProto/API_docs/).
|
||||
|
||||
## Usage
|
||||
|
||||
@ -37,6 +37,7 @@ $MadelineProto = new \danog\MadelineProto\API();
|
||||
|
||||
The constructor accepts an optional parameter, which is the settings array. This array contains some other arrays, which are the settings for a specific MadelineProto function.
|
||||
Here you can see the default values for the settings\ arrays and explanations for every setting:
|
||||
|
||||
```
|
||||
$settings = [
|
||||
'authorization' => [ // Authorization settings
|
||||
@ -137,6 +138,7 @@ Slv8kg9qv1m6XHVQY3PnEw+QQtqSIXklHwIDAQAB
|
||||
|
||||
You can provide part of any subsetting array, that way the remaining arrays will be automagically set to default and undefined values of specified subsetting arrays will be set to the default values.
|
||||
Example:
|
||||
|
||||
```
|
||||
$settings = [
|
||||
'authorization' => [ // Authorization settings
|
||||
@ -144,7 +146,9 @@ $settings = [
|
||||
]
|
||||
]
|
||||
```
|
||||
|
||||
Becomes:
|
||||
|
||||
```
|
||||
$settings = [
|
||||
'authorization' => [ // Authorization settings
|
||||
@ -165,6 +169,7 @@ Slv8kg9qv1m6XHVQY3PnEw+QQtqSIXklHwIDAQAB
|
||||
Note that only settings arrays or values of a settings array will be set to default.
|
||||
|
||||
The settings array can be accessed in the instantiated class like this:
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
var_dump($MadelineProto->API->settings);
|
||||
@ -174,6 +179,7 @@ var_dump($MadelineProto->API->settings);
|
||||
|
||||
The API documentation can be found [here](https://daniil.it/MadelineProto/API_docs/).
|
||||
To call an MTProto method simply call it as if it is a method of the API class, substitute namespace sepators (.) with -> if needed:
|
||||
|
||||
```
|
||||
$MadelineProto = new \danog\MadelineProto\API();
|
||||
$checkedPhone = $MadelineProto->auth->checkPhone( // auth.checkPhone becomes auth->checkPhone
|
||||
@ -191,6 +197,7 @@ var_dump($sentMessage);
|
||||
```
|
||||
|
||||
The API class also provides some wrapper methods for logging in as a bot or as a normal user:
|
||||
|
||||
```
|
||||
$sentCode = $MadelineProto->phone_login($number); // Send code
|
||||
var_dump($sentCode);
|
||||
@ -225,8 +232,9 @@ MadelineProto can throw three different exceptions:
|
||||
[Here](https://github.com/danog/MadelineProto/projects/1) you can find this project's roadmap.
|
||||
|
||||
You can use this scheme of the structure of this project to help yourself:
|
||||
|
||||
```
|
||||
build_docs.php - Builds API docs from TL scheme files
|
||||
build_docs.php - Builds API docs from TL scheme file
|
||||
src/danog/MadelineProto/
|
||||
MTProtoTools/
|
||||
AckHandler - Handles acknowledgement of incoming and outgoing mtproto messages
|
||||
|
168
build_docs.php
168
build_docs.php
@ -23,13 +23,19 @@ $TL = new \danog\MadelineProto\TL\TL([
|
||||
|
||||
\danog\MadelineProto\Logger::log('Copying readme...');
|
||||
|
||||
copy('README.md', 'docs/index.md');
|
||||
file_put_contents('docs/index.md', '---
|
||||
title: MadelineProto documentation
|
||||
---
|
||||
'.file_get_contents('README.md'));
|
||||
|
||||
chdir(__DIR__.'/docs/API_docs');
|
||||
|
||||
\danog\MadelineProto\Logger::log('Generating documentation index...');
|
||||
|
||||
file_put_contents('index.md', '# MadelineProto API documentation (layer 57)
|
||||
file_put_contents('index.md', '---
|
||||
title: MadelineProto API documentation (layer 57)
|
||||
---
|
||||
# MadelineProto API documentation (layer 57)
|
||||
|
||||
[Methods](methods/)
|
||||
|
||||
@ -37,6 +43,8 @@ file_put_contents('index.md', '# MadelineProto API documentation (layer 57)
|
||||
|
||||
[Types](types/)
|
||||
|
||||
|
||||
[Back to main documentation](..)
|
||||
');
|
||||
|
||||
foreach (glob('methods/*') as $unlink) {
|
||||
@ -89,7 +97,7 @@ foreach ($TL->methods->method as $key => $method) {
|
||||
}
|
||||
$md_method = '['.str_replace('_', '->', $method).']('.$method.'.md)';
|
||||
|
||||
$methods[$method] = '$MadelineProto->'.$md_method.'(\['.$params.'\]) == [$'.str_replace('_', '\_', $type).'](../types/'.$real_type.'.md)
|
||||
$methods[$method] = '$MadelineProto->'.$md_method.'(\['.$params.'\]) == [$'.str_replace('_', '\_', $type).'](../types/'.$real_type.'.md)<a name="'.$method.'"></a>
|
||||
|
||||
';
|
||||
|
||||
@ -115,7 +123,12 @@ foreach ($TL->methods->method as $key => $method) {
|
||||
$params .= "'".$param['name']."' => ";
|
||||
$params .= (isset($param['subtype']) ? '['.$ptype.']' : $ptype).', ';
|
||||
}
|
||||
$header = '## Method: '.str_replace('_', '\_', $method).'
|
||||
$header = '---
|
||||
title: '.$method.'
|
||||
---
|
||||
## Method: '.str_replace('_', '\_', $method).'
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
';
|
||||
$table .= '
|
||||
@ -150,7 +163,22 @@ $'.$type.' = $MadelineProto->'.$method.'(['.$params.']);
|
||||
\danog\MadelineProto\Logger::log('Generating methods index...');
|
||||
|
||||
ksort($methods);
|
||||
file_put_contents('methods/index.md', '# Methods
|
||||
$last_namespace = '';
|
||||
foreach ($methods as $method => &$value) {
|
||||
$new_namespace = preg_replace('/_.*/', '', $method);
|
||||
$br = $new_namespace != $last_namespace ? '***
|
||||
<br><br>' : '';
|
||||
$value = $br.$value;
|
||||
$last_namespace = $new_namespace;
|
||||
}
|
||||
|
||||
file_put_contents('methods/index.md', '---
|
||||
title: Methods
|
||||
---
|
||||
# Methods
|
||||
[Back to API documentation index](..)
|
||||
|
||||
|
||||
|
||||
'.implode('', $methods));
|
||||
|
||||
@ -169,11 +197,12 @@ $constructors = [];
|
||||
\danog\MadelineProto\Logger::log('Generating constructors documentation...');
|
||||
|
||||
foreach ($TL->constructors->predicate as $key => $constructor) {
|
||||
$constructor = str_replace('.', '_', $constructor);
|
||||
|
||||
$type = str_replace(['.', '<', '>'], ['_', '_of_', ''], $TL->constructors->type[$key]);
|
||||
$real_type = preg_replace('/.*_of_/', '', $type);
|
||||
|
||||
$constructor = str_replace(['.', '<', '>'], ['_', '_of_', ''], $constructor);
|
||||
$real_constructor = preg_replace('/.*_of_/', '', $constructor);
|
||||
|
||||
$params = '';
|
||||
foreach ($TL->constructors->params[$key] as $param) {
|
||||
if ($param['name'] == 'flags') {
|
||||
@ -203,8 +232,9 @@ foreach ($TL->constructors->predicate as $key => $constructor) {
|
||||
|
||||
$params .= (isset($param['subtype']) ? '\['.$ptype.'\]' : $ptype).', ';
|
||||
}
|
||||
$md_constructor = str_replace('_', '\_', $constructor);
|
||||
|
||||
$constructors[$constructor] = '[$'.str_replace('_', '\_', $constructor).'](../constructors/'.$constructor.'.md) = \['.$params.'\];
|
||||
$constructors[$constructor] = '[$'.$md_constructor.'](../constructors/'.$real_constructor.'.md) = \['.$params.'\];<a name="'.$constructor.'"></a>
|
||||
|
||||
';
|
||||
|
||||
@ -245,7 +275,13 @@ foreach ($TL->constructors->predicate as $key => $constructor) {
|
||||
}
|
||||
$params = "['_' => ".$constructor."', ".$params.']';
|
||||
|
||||
$header = '## Constructor: '.str_replace('_', '\_', $constructor).'
|
||||
$header = '---
|
||||
title: '.$constructor.'
|
||||
---
|
||||
## Constructor: '.str_replace('_', '\_', $constructor).'
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
';
|
||||
$table .= '
|
||||
@ -267,7 +303,18 @@ $'.$constructor.' = '.$params.';
|
||||
\danog\MadelineProto\Logger::log('Generating constructors index...');
|
||||
|
||||
ksort($constructors);
|
||||
$last_namespace = '';
|
||||
foreach ($constructors as $method => &$value) {
|
||||
$new_namespace = preg_replace('/_.*/', '', $method);
|
||||
$br = $new_namespace != $last_namespace ? '***
|
||||
<br><br>' : '';
|
||||
$value = $br.$value;
|
||||
$last_namespace = $new_namespace;
|
||||
}
|
||||
file_put_contents('constructors/index.md', '# Constructors
|
||||
[Back to API documentation index](..)
|
||||
|
||||
|
||||
|
||||
'.implode('', $constructors));
|
||||
|
||||
@ -285,69 +332,130 @@ $index = '';
|
||||
|
||||
\danog\MadelineProto\Logger::log('Generating types documentation...');
|
||||
|
||||
$old_namespace = '';
|
||||
foreach ($types as $type => $keys) {
|
||||
$new_namespace = preg_replace('/_.*/', '', $method);
|
||||
$br = $new_namespace != $last_namespace ? '***
|
||||
<br><br>' : '';
|
||||
$type = str_replace('.', '_', $type);
|
||||
|
||||
$index .= '['.str_replace('_', '\_', $type).']('.$type.'.md)
|
||||
$index .= $br.'['.str_replace('_', '\_', $type).']('.$type.'.md)<a name="'.$type.'"></a>
|
||||
|
||||
';
|
||||
$constructors = '';
|
||||
foreach ($keys as $key) {
|
||||
$predicate = str_replace('.', '_', $TL->constructors->predicate[$key]);
|
||||
$constructors .= '['.str_replace('_', '\_', $predicate).'](../constructors/'.$predicate.'.md)
|
||||
$md_predicate = str_replace('_', '\_', $predicate);
|
||||
$constructors .= '['.$md_predicate.'](../constructors/'.$predicate.'.md)
|
||||
|
||||
';
|
||||
}
|
||||
$header = '## Type: '.str_replace('_', '\_', $type).'
|
||||
$header = '---
|
||||
title: '.$type.'
|
||||
---
|
||||
## Type: '.str_replace('_', '\_', $type).'
|
||||
[Back to types index](index.md)
|
||||
|
||||
|
||||
|
||||
### Possible values (constructors):
|
||||
|
||||
';
|
||||
file_put_contents('types/'.$type.'.md', $header.$constructors);
|
||||
$last_namespace = $new_namespace;
|
||||
|
||||
}
|
||||
|
||||
\danog\MadelineProto\Logger::log('Generating types index...');
|
||||
|
||||
file_put_contents('types/index.md', '# Types
|
||||
file_put_contents('types/index.md', '---
|
||||
title: Types
|
||||
---
|
||||
# Types
|
||||
[Back to API documentation index](..)
|
||||
|
||||
|
||||
'.$index);
|
||||
|
||||
\danog\MadelineProto\Logger::log('Generating additional types...');
|
||||
|
||||
file_put_contents('types/string.md', '## Type: string
|
||||
file_put_contents('types/string.md', '---
|
||||
title: string
|
||||
---
|
||||
## Type: string
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
A string of variable length.');
|
||||
file_put_contents('types/bytes.md', '---
|
||||
title: bytes
|
||||
---
|
||||
## Type: bytes
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
A string of variable length.');
|
||||
|
||||
file_put_contents('types/bytes.md', '## Type: bytes
|
||||
file_put_contents('types/int.md', '---
|
||||
title: integer
|
||||
---
|
||||
## Type: int
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
A string of variable length.');
|
||||
A 32 bit signed integer ranging from `-2147483647` to `2147483647`.');
|
||||
|
||||
file_put_contents('types/int.md', '## Type: int
|
||||
file_put_contents('types/long.md', '---
|
||||
title: long
|
||||
---
|
||||
## Type: long
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
A 32 bit signed integer ranging from -2147483647 to 2147483647.');
|
||||
A 64 bit signed integer ranging from `-9223372036854775807` to `9223372036854775807`.');
|
||||
|
||||
file_put_contents('types/long.md', '## Type: long
|
||||
file_put_contents('types/double.md', '---
|
||||
title: double
|
||||
---
|
||||
## Type: double
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
A 64 bit signed integer ranging from -9223372036854775807 to 9223372036854775807.');
|
||||
A double precision floating point number, single precision can also be used (float).');
|
||||
|
||||
file_put_contents('types/double.md', '## Type: double
|
||||
|
||||
A double precision number, single precision can also be used (float).');
|
||||
|
||||
file_put_contents('types/!X.md', '## Type: !X
|
||||
file_put_contents('types/!X.md', '---
|
||||
title: !X
|
||||
---
|
||||
## Type: !X
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
Represents a TL serialized payload.');
|
||||
|
||||
file_put_contents('types/X.md', '## Type: X
|
||||
file_put_contents('types/X.md', '---
|
||||
title: X
|
||||
---
|
||||
## Type: X
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
Represents a TL serialized payload.');
|
||||
|
||||
file_put_contents('constructors/boolFalse.md', '# boolFalse
|
||||
file_put_contents('constructors/boolFalse.md', '---
|
||||
title: boolFalse
|
||||
---
|
||||
# boolFalse
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
Represents boolean with value equal to `false`.');
|
||||
Represents a boolean with value equal to `false`.');
|
||||
|
||||
file_put_contents('constructors/boolTrue.md', '# boolTrue
|
||||
file_put_contents('constructors/boolTrue.md', '---
|
||||
title: boolTrue
|
||||
---
|
||||
# boolTrue
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
Represents boolean with value equal to `true`.');
|
||||
Represents a boolean with value equal to `true`.');
|
||||
|
||||
file_put_contents('types/Bool.md', '---
|
||||
title: Bool
|
||||
---
|
||||
# Bool
|
||||
[Back to types index](index.md)
|
||||
|
||||
Represents a boolean.');
|
||||
|
||||
\danog\MadelineProto\Logger::log('Done!');
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: accountDaysTTL
|
||||
---
|
||||
## Constructor: accountDaysTTL
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: account_authorizations
|
||||
---
|
||||
## Constructor: account\_authorizations
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: account_noPassword
|
||||
---
|
||||
## Constructor: account\_noPassword
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: account_password
|
||||
---
|
||||
## Constructor: account\_password
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: account_passwordInputSettings
|
||||
---
|
||||
## Constructor: account\_passwordInputSettings
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: account_passwordSettings
|
||||
---
|
||||
## Constructor: account\_passwordSettings
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: account_privacyRules
|
||||
---
|
||||
## Constructor: account\_privacyRules
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: auth_authorization
|
||||
---
|
||||
## Constructor: auth\_authorization
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: auth_checkedPhone
|
||||
---
|
||||
## Constructor: auth\_checkedPhone
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: auth_codeTypeCall
|
||||
---
|
||||
## Constructor: auth\_codeTypeCall
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: auth_codeTypeFlashCall
|
||||
---
|
||||
## Constructor: auth\_codeTypeFlashCall
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: auth_codeTypeSms
|
||||
---
|
||||
## Constructor: auth\_codeTypeSms
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: auth_exportedAuthorization
|
||||
---
|
||||
## Constructor: auth\_exportedAuthorization
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: auth_passwordRecovery
|
||||
---
|
||||
## Constructor: auth\_passwordRecovery
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: auth_sentCode
|
||||
---
|
||||
## Constructor: auth\_sentCode
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: auth_sentCodeTypeApp
|
||||
---
|
||||
## Constructor: auth\_sentCodeTypeApp
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: auth_sentCodeTypeCall
|
||||
---
|
||||
## Constructor: auth\_sentCodeTypeCall
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: auth_sentCodeTypeFlashCall
|
||||
---
|
||||
## Constructor: auth\_sentCodeTypeFlashCall
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: auth_sentCodeTypeSms
|
||||
---
|
||||
## Constructor: auth\_sentCodeTypeSms
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: authorization
|
||||
---
|
||||
## Constructor: authorization
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,3 +1,7 @@
|
||||
---
|
||||
title: boolFalse
|
||||
---
|
||||
# boolFalse
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
Represents boolean with value equal to `false`.
|
||||
Represents a boolean with value equal to `false`.
|
@ -1,3 +1,7 @@
|
||||
---
|
||||
title: boolTrue
|
||||
---
|
||||
# boolTrue
|
||||
[Back to constructor index](index.md)
|
||||
|
||||
Represents boolean with value equal to `true`.
|
||||
Represents a boolean with value equal to `true`.
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: botCommand
|
||||
---
|
||||
## Constructor: botCommand
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: botInfo
|
||||
---
|
||||
## Constructor: botInfo
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: botInlineMediaResult
|
||||
---
|
||||
## Constructor: botInlineMediaResult
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: botInlineMessageMediaAuto
|
||||
---
|
||||
## Constructor: botInlineMessageMediaAuto
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: botInlineMessageMediaContact
|
||||
---
|
||||
## Constructor: botInlineMessageMediaContact
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: botInlineMessageMediaGeo
|
||||
---
|
||||
## Constructor: botInlineMessageMediaGeo
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: botInlineMessageMediaVenue
|
||||
---
|
||||
## Constructor: botInlineMessageMediaVenue
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: botInlineMessageText
|
||||
---
|
||||
## Constructor: botInlineMessageText
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: botInlineResult
|
||||
---
|
||||
## Constructor: botInlineResult
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: channel
|
||||
---
|
||||
## Constructor: channel
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: channelForbidden
|
||||
---
|
||||
## Constructor: channelForbidden
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: channelFull
|
||||
---
|
||||
## Constructor: channelFull
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: channelMessagesFilter
|
||||
---
|
||||
## Constructor: channelMessagesFilter
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: channelMessagesFilterEmpty
|
||||
---
|
||||
## Constructor: channelMessagesFilterEmpty
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: channelParticipant
|
||||
---
|
||||
## Constructor: channelParticipant
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: channelParticipantCreator
|
||||
---
|
||||
## Constructor: channelParticipantCreator
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: channelParticipantEditor
|
||||
---
|
||||
## Constructor: channelParticipantEditor
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: channelParticipantKicked
|
||||
---
|
||||
## Constructor: channelParticipantKicked
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: channelParticipantModerator
|
||||
---
|
||||
## Constructor: channelParticipantModerator
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: channelParticipantSelf
|
||||
---
|
||||
## Constructor: channelParticipantSelf
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: channelParticipantsAdmins
|
||||
---
|
||||
## Constructor: channelParticipantsAdmins
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: channelParticipantsBots
|
||||
---
|
||||
## Constructor: channelParticipantsBots
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: channelParticipantsKicked
|
||||
---
|
||||
## Constructor: channelParticipantsKicked
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: channelParticipantsRecent
|
||||
---
|
||||
## Constructor: channelParticipantsRecent
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: channelRoleEditor
|
||||
---
|
||||
## Constructor: channelRoleEditor
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: channelRoleEmpty
|
||||
---
|
||||
## Constructor: channelRoleEmpty
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: channelRoleModerator
|
||||
---
|
||||
## Constructor: channelRoleModerator
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: channels_channelParticipant
|
||||
---
|
||||
## Constructor: channels\_channelParticipant
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: channels_channelParticipants
|
||||
---
|
||||
## Constructor: channels\_channelParticipants
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: chat
|
||||
---
|
||||
## Constructor: chat
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: chatEmpty
|
||||
---
|
||||
## Constructor: chatEmpty
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: chatForbidden
|
||||
---
|
||||
## Constructor: chatForbidden
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: chatFull
|
||||
---
|
||||
## Constructor: chatFull
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: chatInvite
|
||||
---
|
||||
## Constructor: chatInvite
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: chatInviteAlready
|
||||
---
|
||||
## Constructor: chatInviteAlready
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: chatInviteEmpty
|
||||
---
|
||||
## Constructor: chatInviteEmpty
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: chatInviteExported
|
||||
---
|
||||
## Constructor: chatInviteExported
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: chatParticipant
|
||||
---
|
||||
## Constructor: chatParticipant
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: chatParticipantAdmin
|
||||
---
|
||||
## Constructor: chatParticipantAdmin
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: chatParticipantCreator
|
||||
---
|
||||
## Constructor: chatParticipantCreator
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: chatParticipants
|
||||
---
|
||||
## Constructor: chatParticipants
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: chatParticipantsForbidden
|
||||
---
|
||||
## Constructor: chatParticipantsForbidden
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: chatPhoto
|
||||
---
|
||||
## Constructor: chatPhoto
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: chatPhotoEmpty
|
||||
---
|
||||
## Constructor: chatPhotoEmpty
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: config
|
||||
---
|
||||
## Constructor: config
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: contact
|
||||
---
|
||||
## Constructor: contact
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: contactBlocked
|
||||
---
|
||||
## Constructor: contactBlocked
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: contactLinkContact
|
||||
---
|
||||
## Constructor: contactLinkContact
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: contactLinkHasPhone
|
||||
---
|
||||
## Constructor: contactLinkHasPhone
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: contactLinkNone
|
||||
---
|
||||
## Constructor: contactLinkNone
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: contactLinkUnknown
|
||||
---
|
||||
## Constructor: contactLinkUnknown
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: contactStatus
|
||||
---
|
||||
## Constructor: contactStatus
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: contacts_blocked
|
||||
---
|
||||
## Constructor: contacts\_blocked
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: contacts_blockedSlice
|
||||
---
|
||||
## Constructor: contacts\_blockedSlice
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: contacts_contacts
|
||||
---
|
||||
## Constructor: contacts\_contacts
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: contacts_contactsNotModified
|
||||
---
|
||||
## Constructor: contacts\_contactsNotModified
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: contacts_found
|
||||
---
|
||||
## Constructor: contacts\_found
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: contacts_importedContacts
|
||||
---
|
||||
## Constructor: contacts\_importedContacts
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: contacts_link
|
||||
---
|
||||
## Constructor: contacts\_link
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: contacts_resolvedPeer
|
||||
---
|
||||
## Constructor: contacts\_resolvedPeer
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: contacts_topPeers
|
||||
---
|
||||
## Constructor: contacts\_topPeers
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: contacts_topPeersNotModified
|
||||
---
|
||||
## Constructor: contacts\_topPeersNotModified
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: dcOption
|
||||
---
|
||||
## Constructor: dcOption
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: dialog
|
||||
---
|
||||
## Constructor: dialog
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: disabledFeature
|
||||
---
|
||||
## Constructor: disabledFeature
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: document
|
||||
---
|
||||
## Constructor: document
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: documentAttributeAnimated
|
||||
---
|
||||
## Constructor: documentAttributeAnimated
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: documentAttributeAudio
|
||||
---
|
||||
## Constructor: documentAttributeAudio
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: documentAttributeFilename
|
||||
---
|
||||
## Constructor: documentAttributeFilename
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: documentAttributeHasStickers
|
||||
---
|
||||
## Constructor: documentAttributeHasStickers
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: documentAttributeImageSize
|
||||
---
|
||||
## Constructor: documentAttributeImageSize
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: documentAttributeSticker
|
||||
---
|
||||
## Constructor: documentAttributeSticker
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: documentAttributeVideo
|
||||
---
|
||||
## Constructor: documentAttributeVideo
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: documentEmpty
|
||||
---
|
||||
## Constructor: documentEmpty
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
@ -1,4 +1,10 @@
|
||||
---
|
||||
title: draftMessage
|
||||
---
|
||||
## Constructor: draftMessage
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user