mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-06 05:00:23 +03:00
Fix file cache when using MemorySession
The previous version crashes as the arguments don't get unpacked correctly
This commit is contained in:
parent
67c5572d7b
commit
09dafc768b
|
@ -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