diff --git a/src/danog/MadelineProto/InternalDoc.php b/src/danog/MadelineProto/InternalDoc.php index dc97e0af..05b65a0a 100644 --- a/src/danog/MadelineProto/InternalDoc.php +++ b/src/danog/MadelineProto/InternalDoc.php @@ -4495,9 +4495,9 @@ class InternalDoc extends APIFactory * * @return int */ - public function getId($id) + public function getId($id, array $extra = []) { - return $this->__call(__FUNCTION__, [$id]); + return $this->__call(__FUNCTION__, [$id, $extra]); } /** * Get info about peer, returns an Info object. diff --git a/src/danog/MadelineProto/MTProtoTools/PeerHandler.php b/src/danog/MadelineProto/MTProtoTools/PeerHandler.php index b5d33a4b..6a67793e 100644 --- a/src/danog/MadelineProto/MTProtoTools/PeerHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/PeerHandler.php @@ -319,7 +319,7 @@ trait PeerHandler * * @return int */ - public static function getId($id) + public function getId($id) { if (\is_array($id)) { switch ($id['_']) {