From 2944181b388aa687cf7af7083c888e574fafb248 Mon Sep 17 00:00:00 2001 From: YoilyL Date: Wed, 13 Jun 2018 17:54:48 +0300 Subject: [PATCH] fixed session mistake use new session when uploading files instead of main session --- pyrogram/client/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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