diff --git a/src/InternalDoc.php b/src/InternalDoc.php index eb4c4bc5b..61333a344 100644 --- a/src/InternalDoc.php +++ b/src/InternalDoc.php @@ -904,10 +904,6 @@ abstract class InternalDoc return $this->wrapper->getAPI()->getInfo($id, $type); } - public function getInputDialogPeer(mixed $id): array - { - return $this->wrapper->getAPI()->getInputDialogPeer($id); - } /** * Get logger. */ diff --git a/src/MTProto.php b/src/MTProto.php index a43b2a75e..af00dd560 100644 --- a/src/MTProto.php +++ b/src/MTProto.php @@ -1881,6 +1881,7 @@ final class MTProto implements TLCallback, LoggerGetter, SettingsGetter ], ); } + /** @internal */ public function getInputDialogPeer(mixed $id): array { return ['_' => 'inputDialogPeer', 'peer' => $this->getInputPeer($id)]; diff --git a/tools/AnnotationsBuilder.php b/tools/AnnotationsBuilder.php index 9368d18a6..a18df77d0 100644 --- a/tools/AnnotationsBuilder.php +++ b/tools/AnnotationsBuilder.php @@ -479,7 +479,7 @@ final class Blacklist { } $name = StrTools::toCamelCase($name); $name = str_ireplace(['mtproto', 'api'], ['MTProto', 'API'], $name); - $doc = 'public '; + $doc = 'final public '; if ($static) { $doc .= 'static '; } diff --git a/tools/DocsBuilder/Methods.php b/tools/DocsBuilder/Methods.php index 30f355f71..91b05734e 100644 --- a/tools/DocsBuilder/Methods.php +++ b/tools/DocsBuilder/Methods.php @@ -282,6 +282,7 @@ trait Methods if (\in_array(strtolower($name), ['update2fa', 'getdialogids', 'getdialogs', 'getfulldialogs', 'getpwrchat', 'getfullinfo', 'getinfo', 'getid', 'getself', '__magic_construct', '__construct', '__destruct', '__sleep', '__wakeup'], true)) { continue; } + var_dump($name, $method->getDocComment()); $doc = $method->getDocComment(); if (str_contains($doc, '@internal') || str_contains($doc, '@deprecated')) { continue;