1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 06:39:01 +01:00
This commit is contained in:
Daniil Gentili 2024-03-10 15:55:18 +01:00
parent fa33281b63
commit 79953f2698
4 changed files with 3 additions and 5 deletions

View File

@ -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.
*/

View File

@ -1881,6 +1881,7 @@ final class MTProto implements TLCallback, LoggerGetter, SettingsGetter
],
);
}
/** @internal */
public function getInputDialogPeer(mixed $id): array
{
return ['_' => 'inputDialogPeer', 'peer' => $this->getInputPeer($id)];

View File

@ -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 ';
}

View File

@ -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;