diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 73f45966..5e6324fc 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -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