mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 17:44:44 +01:00
Bump docs
This commit is contained in:
parent
fbeebaac39
commit
5d4c717031
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit 999eee65a69c42796866262379983ea984c141aa
|
||||
Subproject commit ffea6f27ef15623eb0efe9ebce30ae213a0aba4d
|
@ -51,7 +51,7 @@ final class API extends AbstractAPI
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE = '8.2.1';
|
||||
public const RELEASE = '8.2.2';
|
||||
/**
|
||||
* We're not logged in.
|
||||
*
|
||||
|
@ -657,7 +657,7 @@ abstract class InternalDoc
|
||||
*
|
||||
* Returns a vector hash.
|
||||
*
|
||||
* @param array $longs IDs
|
||||
* @param array<string|int> $longs IDs
|
||||
*/
|
||||
final public static function genVectorHash(array $longs): string
|
||||
{
|
||||
|
@ -108,6 +108,7 @@ final class Blacklist {
|
||||
'waveform' => 'array',
|
||||
'int' => 'int',
|
||||
'long' => 'int',
|
||||
'long|string' => 'int|string',
|
||||
'strlong' => 'int',
|
||||
'double' => 'float',
|
||||
'float' => 'float',
|
||||
|
@ -141,7 +141,7 @@ final class DocsBuilder
|
||||
file_put_contents('types/'.$this->index, $this->templates['types-index'].$index);
|
||||
|
||||
Logger::log('Generating additional types...', Logger::NOTICE);
|
||||
foreach (['waveform', 'string', 'bytes', 'int', 'int53', 'long', 'int128', 'int256', 'int512', 'double', 'Bool', 'DataJSON', '!X'] as $type) {
|
||||
foreach (['waveform', 'string', 'bytes', 'int', 'int53', 'long', 'long|string', 'int128', 'int256', 'int512', 'double', 'Bool', 'DataJSON', '!X'] as $type) {
|
||||
file_put_contents("types/$type.md", $this->templates[$type]);
|
||||
}
|
||||
foreach (['boolFalse', 'boolTrue', 'null', 'photoStrippedSize'] as $constructor) {
|
||||
|
@ -186,7 +186,7 @@ trait Methods
|
||||
if (\in_array($ptype, ['InputEncryptedFile'], true) && !isset($this->settings['td'])) {
|
||||
$human_ptype = 'File path or '.$ptype;
|
||||
}
|
||||
$type_or_bare_type = ctype_upper(Tools::end(explode('.', $param[$type_or_subtype]))[0]) || \in_array($param[$type_or_subtype], ['!X', 'X', 'bytes', 'true', 'false', 'double', 'string', 'Bool', 'int', 'long', 'int128', 'int256', 'int512', 'int53'], true) ? 'types' : 'constructors';
|
||||
$type_or_bare_type = ctype_upper(Tools::end(explode('.', $param[$type_or_subtype]))[0]) || \in_array($param[$type_or_subtype], ['!X', 'X', 'bytes', 'true', 'false', 'double', 'string', 'Bool', 'int', 'long', 'int128', 'int256', 'int512', 'int53', 'long|string'], true) ? 'types' : 'constructors';
|
||||
if (isset($this->tdDescriptions['methods'][$method])) {
|
||||
$table .= '|'.self::markdownEscape($param['name']).'|'.(isset($param['subtype']) ? 'Array of ' : '').'['.self::markdownEscape($human_ptype).'](/API_docs/'.$type_or_bare_type.'/'.$ptype.'.md) | '.$this->tdDescriptions['methods'][$method]['params'][$param['name']].' | '.(isset($param['pow']) || $param['type'] === 'int' || $param['type'] === 'string' || $param['type'] === 'double' || ($id = $this->TL->getConstructors()->findByPredicate(lcfirst($param['type']).'Empty')) && $id['type'] === $param['type'] || ($id = $this->TL->getConstructors()->findByPredicate('input'.$param['type'].'Empty')) && $id['type'] === $param['type'] ? 'Optional' : 'Yes').'|';
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user