Skip to content

Commit db7fc68

Browse files
authored
Update FILE_PART(S)_INVALID error message
Telegram now allows uploads up to 2000 MiB in size (4000 parts)
1 parent c196b90 commit db7fc68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/error/source/400_BAD_REQUEST.tsv

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ PHONE_NUMBER_UNOCCUPIED The phone number is not yet being used
1212
USERS_TOO_FEW Not enough users (to create a chat, for example)
1313
USERS_TOO_MUCH The maximum number of users has been exceeded (to create a chat, for example)
1414
TYPE_CONSTRUCTOR_INVALID The type constructor is invalid
15-
FILE_PART_INVALID The file part number is invalid. The value is not between 0 and 2999
16-
FILE_PARTS_INVALID Invalid number of parts. The value is not between 1 and 3000
15+
FILE_PART_INVALID The file part number is invalid. The value is not between 0 and 3999
16+
FILE_PARTS_INVALID Invalid number of parts. The value is not between 1 and 4000
1717
FILE_PART_X_MISSING Part {x} of the file is missing from storage
1818
MD5_CHECKSUM_INVALID The file's checksum did not match the md5_checksum parameter
1919
PHOTO_INVALID_DIMENSIONS The photo dimensions are invalid
@@ -144,4 +144,4 @@ FRESH_CHANGE_ADMINS_FORBIDDEN Recently logged-in users cannot change admins
144144
BROADCAST_PUBLIC_VOTERS_FORBIDDEN Polls with public voters cannot be sent in channels
145145
INPUT_FILTER_INVALID The filter is invalid for this query
146146
EMOTICON_EMPTY The emoticon parameter is empty
147-
EMOTICON_INVALID The emoticon parameter is invalid
147+
EMOTICON_INVALID The emoticon parameter is invalid

0 commit comments

Comments
 (0)