This commit is contained in:
parent
0f2ac77a20
commit
169cfe2704
@ -198,10 +198,6 @@ class APIFactory
|
|||||||
|
|
||||||
public function __mtproto_call($name, $arguments)
|
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 = isset($arguments[1]) && is_array($arguments[1]) ? $arguments[1] : [];
|
||||||
$aargs['datacenter'] = $this->API->datacenter->curdc;
|
$aargs['datacenter'] = $this->API->datacenter->curdc;
|
||||||
$aargs['apifactory'] = true;
|
$aargs['apifactory'] = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user