mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 04:35:24 +00:00
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:
parent
0b97d0cbff
commit
ab4e582e3e
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user