fixed session mistake

use new session when uploading files instead of main session
This commit is contained in:
YoilyL 2018-06-13 17:54:48 +03:00 committed by GitHub
parent 244b4f15ce
commit 2944181b38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1051,7 +1051,7 @@ class Client(Methods, BaseClient):
bytes=chunk
)
assert self.send(rpc), "Couldn't upload file"
assert session.send(rpc), "Couldn't upload file"
if is_missing_part:
return