1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-22 20:51:19 +01:00

Update blacklist

This commit is contained in:
Daniil Gentili 2023-01-28 16:02:04 +01:00
parent 5042b4fccc
commit 258a716e7e
2 changed files with 1 additions and 2 deletions

View File

@ -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', '<?php
namespace danog\MadelineProto\Namespace;

View File

@ -5,7 +5,6 @@ namespace danog\MadelineProto\Namespace;
final class Blacklist
{
public const BLACKLIST = [
'messages.getMessages' => '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',