mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-01-27 01:34:29 +03:00
Fix file cache when using MemorySession (#1033)
This commit is contained in:
parent
67c5572d7b
commit
20a8081e8e
|
@ -235,6 +235,6 @@ class MemorySession(Session):
|
||||||
def get_file(self, md5_digest, file_size, cls):
|
def get_file(self, md5_digest, file_size, cls):
|
||||||
key = (md5_digest, file_size, _SentFileType.from_type(cls))
|
key = (md5_digest, file_size, _SentFileType.from_type(cls))
|
||||||
try:
|
try:
|
||||||
return cls(self._files[key])
|
return cls(*self._files[key])
|
||||||
except KeyError:
|
except KeyError:
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in New Issue
Block a user