From 169cfe27042292e06b0086e768db895c52e85c31 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Mon, 11 Mar 2019 21:42:15 +0100 Subject: [PATCH] https://git.io/fhjR3 --- src/danog/MadelineProto/APIFactory.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/danog/MadelineProto/APIFactory.php b/src/danog/MadelineProto/APIFactory.php index 771e1852..8bfaef01 100644 --- a/src/danog/MadelineProto/APIFactory.php +++ b/src/danog/MadelineProto/APIFactory.php @@ -198,10 +198,6 @@ class APIFactory public function __mtproto_call($name, $arguments) { - if (array_key_exists($name, \danog\MadelineProto\MTProto::DISALLOWED_METHODS)) { - //throw new \danog\MadelineProto\Exception(\danog\MadelineProto\MTProto::DISALLOWED_METHODS[$name], 0, null, 'MadelineProto', 1); - } - $aargs = isset($arguments[1]) && is_array($arguments[1]) ? $arguments[1] : []; $aargs['datacenter'] = $this->API->datacenter->curdc; $aargs['apifactory'] = true;