1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 06:59:01 +01:00
This commit is contained in:
Daniil Gentili 2024-04-06 19:03:28 +02:00
parent ad753e7229
commit 6de83465e1

View File

@ -292,7 +292,7 @@ trait ResponseHandler
$response['error_code'] = 500;
}
if (str_starts_with($response['error_message'], 'FILE_REFERENCE_')
&& $request->shouldRefreshReferences()
&& !$request->shouldRefreshReferences()
) {
$this->API->logger("Got {$response['error_message']}, refreshing file reference and repeating method call...");
$this->gotResponseForOutgoingMessage($request);