diff --git a/pyrogram/methods/advanced/save_file.py b/pyrogram/methods/advanced/save_file.py index e6a259a9..49b65097 100644 --- a/pyrogram/methods/advanced/save_file.py +++ b/pyrogram/methods/advanced/save_file.py @@ -143,7 +143,7 @@ class SaveFile: session = self.media_sessions.get(dc_id) if not session: - session = Session( + session = self.media_sessions[dc_id] = Session( self, dc_id, await self.storage.auth_key(), await self.storage.test_mode(), is_media=True )