From 362d06654f52c2f8b1dfc121be0f80b346daf22f Mon Sep 17 00:00:00 2001 From: Devesh Pal Date: Thu, 28 Jul 2022 16:00:46 +0530 Subject: [PATCH] Support sending 4GB files (#3891) --- telethon/utils.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/telethon/utils.py b/telethon/utils.py index 7d058518..c928cd99 100644 --- a/telethon/utils.py +++ b/telethon/utils.py @@ -1341,10 +1341,7 @@ def get_appropriated_part_size(file_size): return 128 if file_size <= 786432000: # 750MB return 256 - if file_size <= 2097152000: # 2000MB - return 512 - - raise ValueError('File size too large') + return 512 def encode_waveform(waveform):