mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-23 00:11:20 +01:00
Update blacklist
This commit is contained in:
parent
5042b4fccc
commit
258a716e7e
@ -60,7 +60,7 @@ final class AnnotationsBuilder
|
|||||||
$this->TL->init($tlSchema);
|
$this->TL->init($tlSchema);
|
||||||
$this->blacklist = \json_decode(\file_get_contents(__DIR__.'/../docs/template/disallow.json'), true);
|
$this->blacklist = \json_decode(\file_get_contents(__DIR__.'/../docs/template/disallow.json'), true);
|
||||||
$this->blacklistHard = $this->blacklist;
|
$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
|
\file_put_contents(__DIR__.'/Namespace/Blacklist.php', '<?php
|
||||||
namespace danog\MadelineProto\Namespace;
|
namespace danog\MadelineProto\Namespace;
|
||||||
|
|
||||||
|
@ -5,7 +5,6 @@ namespace danog\MadelineProto\Namespace;
|
|||||||
final class Blacklist
|
final class Blacklist
|
||||||
{
|
{
|
||||||
public const 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.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)',
|
'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',
|
'messages.receivedQueue' => 'You cannot use this method directly',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user