Skip to content

Commit

Permalink
fixed session mistake
Browse files Browse the repository at this point in the history
use new session when uploading files instead of main session
  • Loading branch information
YoilyL committed Jun 13, 2018
1 parent 244b4f1 commit 2944181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrogram/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ def save_file(self,
bytes=chunk
)

assert self.send(rpc), "Couldn't upload file"
assert session.send(rpc), "Couldn't upload file"

if is_missing_part:
return
Expand Down

0 comments on commit 2944181

Please sign in to comment.