1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 04:39:50 +01:00
This commit is contained in:
Daniil Gentili 2024-05-20 16:18:55 +02:00
parent 9ad145fade
commit a2c759cd0b

View File

@ -129,12 +129,6 @@ class MTProtoOutgoingMessage extends MTProtoMessage
) {
$this->userRelated = $constructor === 'users.getUsers' && $body === ['id' => [['_' => 'inputUserSelf']]] || $constructor === 'auth.exportAuthorization' || $constructor === 'updates.getDifference';
if ($isMethod) {
$connection->inFlightGauge?->inc([
'method' => $this->constructor,
]);
}
parent::__construct(!isset(MTProtoMessage::NOT_CONTENT_RELATED[$constructor]));
$cancellation?->subscribe(fn (CancelledException $e) => $this->reply(static fn () => throw $e));
}