Skip to content

Commit 4afedd7

Browse files
committed
Update errors list
1 parent 2db8256 commit 4afedd7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

compiler/errors/source/400_BAD_REQUEST.tsv

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ CHAT_ADMIN_REQUIRED The method requires chat admin privileges
5555
CHAT_ID_EMPTYThe provided chat id is empty
5656
CHAT_ID_INVALIDThe chat id being used is invalid or not known yet. Make sure you see the chat before interacting with it
5757
CHAT_INVALIDThe chat is invalid
58+
CHAT_INVITE_PERMANENTThe chat invite link is primary
5859
CHAT_LINK_EXISTSThe action failed because the supergroup is linked to a channel
5960
CHAT_NOT_MODIFIEDThe chat settings (title, permissions, photo, etc..) were not modified because you tried to edit them using the same content
6061
CHAT_RESTRICTEDThe chat is restricted and cannot be used
@@ -98,6 +99,7 @@ ENCRYPTION_ID_INVALID The provided secret chat id is invalid
9899
ENTITIES_TOO_LONGThe entity provided contains data that is too long, or you passed too many entities to this message
99100
ENTITY_MENTION_USER_INVALIDThe mentioned entity is not an user
100101
ERROR_TEXT_EMPTYThe provided error message is empty
102+
EXPIRE_DATE_INVALIDThe expiration date is invalid
101103
EXPORT_CARD_INVALIDThe provided card is invalid
102104
EXTERNAL_URL_INVALIDThe external media URL is invalid
103105
FIELD_NAME_EMPTYThe field with the name FIELD_NAME is missing
@@ -133,6 +135,9 @@ GROUPED_MEDIA_INVALID The album contains invalid media
133135
GROUP_CALL_INVALIDThe group call is invalid
134136
HASH_INVALIDThe provided hash is invalid
135137
IMAGE_PROCESS_FAILEDThe server failed to process your image
138+
IMPORT_FILE_INVALIDThe imported file is invalid
139+
IMPORT_FORMAT_UNRECOGNIZEDThe imported format is unrecognized
140+
IMPORT_ID_INVALIDThe import id is invalid
136141
INLINE_RESULT_EXPIREDThe inline bot query expired
137142
INPUT_CONSTRUCTOR_INVALIDThe provided constructor is invalid
138143
INPUT_FETCH_ERRORAn error occurred while deserializing TL parameters
@@ -145,6 +150,7 @@ INPUT_USER_DEACTIVATED The target user has been deleted/deactivated
145150
INVITE_HASH_EMPTYThe invite hash is empty
146151
INVITE_HASH_EXPIREDThe chat invite link is no longer valid
147152
INVITE_HASH_INVALIDThe invite link hash is invalid
153+
INVITE_REVOKED_MISSINGThe action required a chat invite link to be revoked first
148154
LANG_PACK_INVALIDThe provided language pack is invalid
149155
LASTNAME_INVALIDThe last name is invalid
150156
LIMIT_INVALIDThe limit parameter is invalid
@@ -299,6 +305,7 @@ TYPES_EMPTY The types parameter is empty
299305
TYPE_CONSTRUCTOR_INVALIDThe type constructor is invalid
300306
UNTIL_DATE_INVALIDThat date parameter is invalid
301307
URL_INVALIDThe URL provided is invalid
308+
USAGE_LIMIT_INVALIDThe usage limit is invalid
302309
USERNAME_INVALIDThe username is invalid
303310
USERNAME_NOT_MODIFIEDThe username was not modified because you tried to edit it using the same one
304311
USERNAME_NOT_OCCUPIEDThe username is not occupied by anyone

compiler/errors/source/403_FORBIDDEN.tsv

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ CHAT_SEND_MEDIA_FORBIDDEN You can't send media messages in this chat
1010
CHAT_SEND_POLL_FORBIDDENYou can't send polls in this chat
1111
CHAT_SEND_STICKERS_FORBIDDENYou can't send stickers in this chat
1212
CHAT_WRITE_FORBIDDENYou don't have rights to send messages in this chat
13+
EDIT_BOT_INVITE_FORBIDDENBots' chat invite links can't be edited
1314
INLINE_BOT_REQUIREDThe action must be performed through an inline bot callback
1415
MESSAGE_AUTHOR_REQUIREDYou are not the author of this message
1516
MESSAGE_DELETE_FORBIDDENYou don't have rights to delete messages in this chat, most likely because you are not the author of them
@@ -23,4 +24,4 @@ USER_INVALID The provided user is invalid
2324
USER_IS_BLOCKEDThe user is blocked
2425
USER_NOT_MUTUAL_CONTACTThe provided user is not a mutual contact
2526
USER_PRIVACY_RESTRICTEDThe user's privacy settings is preventing you to perform this action
26-
USER_RESTRICTEDYou are limited/restricted. You can't perform this action.
27+
USER_RESTRICTEDYou are limited/restricted. You can't perform this action

0 commit comments

Comments
 (0)