1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-22 23:11:19 +01:00
This commit is contained in:
Daniil Gentili 2020-11-09 11:07:14 +01:00
parent d8319e39d3
commit e73b0dc488
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -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());