Allow native methods

This commit is contained in:
Daniil Gentili 2019-03-11 21:29:12 +01:00 committed by GitHub
parent 88651371d7
commit 0f2ac77a20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -199,7 +199,7 @@ 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);
//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] : [];