From c196b90c9d1f73cbd72615131a97d0d703ef814b Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 6 Jul 2020 15:55:11 +0200 Subject: [PATCH] Allow uploading files up to 2000 MiB in size --- pyrogram/client/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 5f52bfc0..0e186d85 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -1772,8 +1772,8 @@ class Client(Methods, BaseClient): if file_size == 0: raise ValueError("File size equals to 0 B") - if file_size > 1500 * 1024 * 1024: - raise ValueError("Telegram doesn't support uploading files bigger than 1500 MiB") + if file_size > 2000 * 1024 * 1024: + raise ValueError("Telegram doesn't support uploading files bigger than 2000 MiB") file_total_parts = int(math.ceil(file_size / part_size)) is_big = True if file_size > 10 * 1024 * 1024 else False