Fix session not getting saved to media_sessions in save_file method. (#20)

Signed-off-by: Aliwoto <aminnimaj@gmail.com>
This commit is contained in:
ALi.w 2024-01-30 11:33:36 +03:30 committed by GitHub
parent 0b97d0cbff
commit ab4e582e3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -143,7 +143,7 @@ class SaveFile:
session = self.media_sessions.get(dc_id) session = self.media_sessions.get(dc_id)
if not session: if not session:
session = Session( session = self.media_sessions[dc_id] = Session(
self, dc_id, await self.storage.auth_key(), self, dc_id, await self.storage.auth_key(),
await self.storage.test_mode(), is_media=True await self.storage.test_mode(), is_media=True
) )