From e73b0dc4888f4e6670b00b39276d705467166fe8 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Mon, 9 Nov 2020 11:07:14 +0100 Subject: [PATCH] bugfix --- src/danog/MadelineProto/TL/TL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/TL/TL.php b/src/danog/MadelineProto/TL/TL.php index 8dfc20c23..bccb68157 100644 --- a/src/danog/MadelineProto/TL/TL.php +++ b/src/danog/MadelineProto/TL/TL.php @@ -950,7 +950,7 @@ class TL /** @var OutgoingMessage */ $message = $type['connection']->outgoing_messages[$x['req_msg_id']]; foreach ($this->callbacks[TLCallback::METHOD_BEFORE_CALLBACK][$message->getConstructor()] ?? [] as $callback) { - $callback($type['connection']->outgoing_messages[$x['req_msg_id']]['_']); + $callback($type['connection']->outgoing_messages[$x['req_msg_id']]->getConstructor()); } if ($message->getType() && \stripos($message->getType(), '<') !== false) { $arg['subtype'] = \str_replace(['Vector<', '>'], '', $message->getType());