mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-23 05:26:42 +00:00
Update upload file size limit to 2GB (#1499)
Source: https://t.me/tginfo/2656 Closes #1498.
This commit is contained in:
parent
e44926114a
commit
bfb8de2736
@ -1235,7 +1235,7 @@ def get_appropriated_part_size(file_size):
|
|||||||
return 128
|
return 128
|
||||||
if file_size <= 786432000: # 750MB
|
if file_size <= 786432000: # 750MB
|
||||||
return 256
|
return 256
|
||||||
if file_size <= 1572864000: # 1500MB
|
if file_size <= 2097152000: # 2000MB
|
||||||
return 512
|
return 512
|
||||||
|
|
||||||
raise ValueError('File size too large')
|
raise ValueError('File size too large')
|
||||||
|
Loading…
Reference in New Issue
Block a user