Update upload file size limit to 2GB (#1499)

Source: https://t.me/tginfo/2656
Closes #1498.
This commit is contained in:
Shrimadhav U K 2020-07-06 23:41:40 +05:30 committed by GitHub
parent e44926114a
commit bfb8de2736
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1235,7 +1235,7 @@ def get_appropriated_part_size(file_size):
return 128
if file_size <= 786432000: # 750MB
return 256
if file_size <= 1572864000: # 1500MB
if file_size <= 2097152000: # 2000MB
return 512
raise ValueError('File size too large')