mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Support sending 4GB files (#3891)
This commit is contained in:
parent
db3faedbfc
commit
362d06654f
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user