mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-23 04:51:13 +01:00
bugfix
This commit is contained in:
parent
d8319e39d3
commit
e73b0dc488
@ -950,7 +950,7 @@ class TL
|
|||||||
/** @var OutgoingMessage */
|
/** @var OutgoingMessage */
|
||||||
$message = $type['connection']->outgoing_messages[$x['req_msg_id']];
|
$message = $type['connection']->outgoing_messages[$x['req_msg_id']];
|
||||||
foreach ($this->callbacks[TLCallback::METHOD_BEFORE_CALLBACK][$message->getConstructor()] ?? [] as $callback) {
|
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) {
|
if ($message->getType() && \stripos($message->getType(), '<') !== false) {
|
||||||
$arg['subtype'] = \str_replace(['Vector<', '>'], '', $message->getType());
|
$arg['subtype'] = \str_replace(['Vector<', '>'], '', $message->getType());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user