More logs
This commit is contained in:
parent
f9b6e29904
commit
2e428cecd0
@ -186,7 +186,7 @@ trait Files
|
|||||||
$res['MessageMedia'] = ['_' => 'messageMediaPhoto', 'photo' => $media];
|
$res['MessageMedia'] = ['_' => 'messageMediaPhoto', 'photo' => $media];
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new \danog\MadelineProto\Exception('Could not convert media object');
|
throw new \danog\MadelineProto\Exception("Could not convert media object of type {$media['_']}");
|
||||||
}
|
}
|
||||||
|
|
||||||
return $res;
|
return $res;
|
||||||
|
@ -528,7 +528,8 @@ trait ResponseHandler
|
|||||||
unset($request);
|
unset($request);
|
||||||
$this->got_response_for_outgoing_message_id($request_id, $datacenter);
|
$this->got_response_for_outgoing_message_id($request_id, $datacenter);
|
||||||
Loop::defer(function () use ($request_id, $response, $datacenter) {
|
Loop::defer(function () use ($request_id, $response, $datacenter) {
|
||||||
$this->logger->logger("Deferred: sent {$response['_']} to deferred");
|
$r = isset($response['_']) ? $response['_'] : json_encode($response);
|
||||||
|
$this->logger->logger("Deferred: sent $r to deferred");
|
||||||
$this->datacenter->sockets[$datacenter]->outgoing_messages[$request_id]['promise']->resolve($response);
|
$this->datacenter->sockets[$datacenter]->outgoing_messages[$request_id]['promise']->resolve($response);
|
||||||
unset($this->datacenter->sockets[$datacenter]->outgoing_messages[$request_id]['promise']);
|
unset($this->datacenter->sockets[$datacenter]->outgoing_messages[$request_id]['promise']);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user