mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
fixed session mistake
use new session when uploading files instead of main session
This commit is contained in:
parent
244b4f15ce
commit
2944181b38
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user