From 258a716e7e52d34059eab4bdb067e666c451a946 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 28 Jan 2023 16:02:04 +0100 Subject: [PATCH] Update blacklist --- src/AnnotationsBuilder.php | 2 +- src/Namespace/Blacklist.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/AnnotationsBuilder.php b/src/AnnotationsBuilder.php index 7c4441e4e..25e043059 100644 --- a/src/AnnotationsBuilder.php +++ b/src/AnnotationsBuilder.php @@ -60,7 +60,7 @@ final class AnnotationsBuilder $this->TL->init($tlSchema); $this->blacklist = \json_decode(\file_get_contents(__DIR__.'/../docs/template/disallow.json'), true); $this->blacklistHard = $this->blacklist; - unset($this->blacklistHard['messages.getHistory'], $this->blacklistHard['channels.getMessages'], $this->blacklistHard['updates.getDifference'], $this->blacklistHard['updates.getChannelDifference'], $this->blacklistHard['updates.getState']); + unset($this->blacklistHard['messages.getHistory'], $this->blacklistHard['channels.getMessages'], $this->blacklistHard['updates.getDifference'], $this->blacklistHard['updates.getChannelDifference'], $this->blacklistHard['updates.getState'], $this->blacklistHard['messages.getMessages']); \file_put_contents(__DIR__.'/Namespace/Blacklist.php', ' 'Please use the [event handler](https://docs.madelineproto.xyz/docs/UPDATES.html)', 'account.updatePasswordSettings' => 'You cannot use this method directly; use $MadelineProto->update2fa($params), instead (see https://docs.madelineproto.xyz for more info)', 'account.getPasswordSettings' => 'You cannot use this method directly; use $MadelineProto->update2fa($params), instead (see https://docs.madelineproto.xyz for more info)', 'messages.receivedQueue' => 'You cannot use this method directly',