mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
parent
9f3e7e4aa8
commit
26aa178cf6
|
@ -96,7 +96,7 @@ class _DirectDownloadIter(RequestIter):
|
||||||
self._exported = True
|
self._exported = True
|
||||||
return await self._request()
|
return await self._request()
|
||||||
|
|
||||||
except errors.FilerefUpgradeNeededError as e:
|
except (errors.FilerefUpgradeNeededError, errors.FileReferenceExpiredError) as e:
|
||||||
# Only implemented for documents which are the ones that may take that long to download
|
# Only implemented for documents which are the ones that may take that long to download
|
||||||
if not self._msg_data \
|
if not self._msg_data \
|
||||||
or not isinstance(self.request.location, types.InputDocumentFileLocation) \
|
or not isinstance(self.request.location, types.InputDocumentFileLocation) \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user