This commit is contained in:
Daniil Gentili 2020-02-05 18:47:36 +01:00
parent ce94a70263
commit 377b266d7b
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -51,7 +51,7 @@ trait CallHandler
foreach ($message_ids as $message_id) {
if (isset($this->outgoing_messages[$message_id]['body'])) {
if ($datacenter) {
$res = $this->API->datacenter->waitGetConnection($datacenter)->onResolve(function ($e, $r) use ($message_id) {
$res = Tools::call($this->API->datacenter->waitGetConnection($datacenter))->onResolve(function ($e, $r) use ($message_id) {
return $r->sendMessage($this->outgoing_messages[$message_id], false);
});
} else {