mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-01-25 00:34:19 +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):
|
||||
key = (md5_digest, file_size, _SentFileType.from_type(cls))
|
||||
try:
|
||||
return cls(self._files[key])
|
||||
return cls(*self._files[key])
|
||||
except KeyError:
|
||||
return None
|
||||
|
|
Loading…
Reference in New Issue
Block a user