From 0b97d0cbff4362f1d0c13eefa4ec48b6f4894396 Mon Sep 17 00:00:00 2001 From: KurimuzonAkuma Date: Sat, 20 Jan 2024 21:11:07 +0300 Subject: [PATCH] Add some errors to known errors --- compiler/errors/source/400_BAD_REQUEST.tsv | 14 ++++++++------ compiler/errors/source/403_FORBIDDEN.tsv | 9 +++++---- compiler/errors/source/406_NOT_ACCEPTABLE.tsv | 2 +- compiler/errors/source/420_FLOOD.tsv | 4 +++- .../errors/source/500_INTERNAL_SERVER_ERROR.tsv | 4 ++-- compiler/errors/source/503_SERVICE_UNAVAILABLE.tsv | 2 +- 6 files changed, 20 insertions(+), 15 deletions(-) diff --git a/compiler/errors/source/400_BAD_REQUEST.tsv b/compiler/errors/source/400_BAD_REQUEST.tsv index 4671d826..6fa64ba1 100644 --- a/compiler/errors/source/400_BAD_REQUEST.tsv +++ b/compiler/errors/source/400_BAD_REQUEST.tsv @@ -57,8 +57,8 @@ CHANNEL_TOO_LARGE The channel is too large CHAT_ABOUT_NOT_MODIFIED The chat about text was not modified because you tried to edit it using the same content CHAT_ABOUT_TOO_LONG The chat about text is too long CHAT_ADMIN_REQUIRED The method requires chat admin privileges -CHAT_FORWARDS_RESTRICTED The chat restricts forwarding content CHAT_DISCUSSION_UNALLOWED The chat discussion is not allowed +CHAT_FORWARDS_RESTRICTED The chat restricts forwarding content CHAT_ID_EMPTY The provided chat id is empty CHAT_ID_INVALID The chat id being used is invalid or not known yet. Make sure you see the chat before interacting with it CHAT_INVALID The chat is invalid @@ -137,9 +137,9 @@ FROM_MESSAGE_BOT_DISABLED Bots can't use fromMessage min constructors FROM_PEER_INVALID The from peer value is invalid GAME_BOT_INVALID You cannot send that game with the current bot GEO_POINT_INVALID Invalid geo point provided +GIFT_SLUG_EXPIRED The gift slug is expired GIF_CONTENT_TYPE_INVALID GIF content-type invalid GIF_ID_INVALID The provided gif/animation id is invalid -GIFT_SLUG_EXPIRED The gift slug is expired GRAPH_INVALID_RELOAD Invalid graph token provided, please reload the stats and provide the updated token GRAPH_OUTDATED_RELOAD The graph data is outdated GROUPCALL_SSRC_DUPLICATE_MUCH Too many group call synchronization source duplicates @@ -165,6 +165,7 @@ INVITE_HASH_INVALID The invite link hash is invalid INVITE_REQUEST_SENT The request to join this chat or channel has been successfully sent INVITE_REVOKED_MISSING The action required a chat invite link to be revoked first INVITE_SLUG_EMPTY The invite slug is empty +INVITE_SLUG_EXPIRED The invite slug is expired LANG_PACK_INVALID The provided language pack is invalid LASTNAME_INVALID The last name is invalid LIMIT_INVALID The limit parameter is invalid @@ -175,7 +176,7 @@ MAX_QTS_INVALID The provided QTS is invalid MD5_CHECKSUM_INVALID The file's checksum did not match the md5_checksum parameter MEDIA_CAPTION_TOO_LONG The media caption is too long MEDIA_EMPTY The media you tried to send is invalid -MEDIA_FILE_INVALID The media file is invalid +MEDIA_FILE_INVALID The provided media file is invalid MEDIA_INVALID The media is invalid MEDIA_NEW_INVALID The new media to edit the message with is invalid MEDIA_PREV_INVALID The previous media cannot be edited with anything else @@ -267,6 +268,7 @@ RANDOM_ID_EMPTY The random ID is empty RANDOM_ID_INVALID The provided random ID is invalid RANDOM_LENGTH_INVALID The random length is invalid RANGES_INVALID Invalid range provided +REACTIONS_TOO_MANY Non-premium users, can set up only one reaction per message REACTION_EMPTY The reaction provided is empty REACTION_INVALID Invalid reaction provided (only valid emoji are allowed) REFLECTOR_NOT_AVAILABLE The call reflector is not available @@ -316,6 +318,7 @@ STICKER_PNG_NOPNG Stickers must be png files but the provided image was not a pn STICKER_TGS_NOTGS A tgs sticker file was expected, but something else was provided STICKER_THUMB_PNG_NOPNG A png sticker thumbnail file was expected, but something else was provided STICKER_VIDEO_NOWEBM A webm video file was expected, but something else was provided +STORIES_NEVER_CREATED You have never created any stories STORIES_TOO_MUCH Too many stories in the current account STORY_PERIOD_INVALID The story period is invalid TAKEOUT_INVALID The takeout id is invalid @@ -364,6 +367,7 @@ USER_IS_BOT A bot cannot send messages to other bots or to itself USER_KICKED This user was kicked from this chat USER_NOT_MUTUAL_CONTACT The user is not a mutual contact USER_NOT_PARTICIPANT The user is not a member of this chat +USER_PUBLIC_MISSING The accounts username is missing VIDEO_CONTENT_TYPE_INVALID The video content type is invalid (i.e.: not streamable) VIDEO_FILE_INVALID The video file is invalid VOICE_MESSAGES_FORBIDDEN Voice messages are restricted @@ -379,6 +383,4 @@ WEBDOCUMENT_URL_EMPTY The web document URL is empty WEBDOCUMENT_URL_INVALID The web document URL is invalid WEBPAGE_CURL_FAILED Telegram server could not fetch the provided URL WEBPAGE_MEDIA_EMPTY The URL doesn't contain any valid media -YOU_BLOCKED_USER You blocked this user -STORIES_NEVER_CREATED You have never created any stories -MEDIA_FILE_INVALID The provided media file is invalid +YOU_BLOCKED_USER You blocked this user \ No newline at end of file diff --git a/compiler/errors/source/403_FORBIDDEN.tsv b/compiler/errors/source/403_FORBIDDEN.tsv index deff1e84..6f83d805 100644 --- a/compiler/errors/source/403_FORBIDDEN.tsv +++ b/compiler/errors/source/403_FORBIDDEN.tsv @@ -5,15 +5,15 @@ CHAT_ADMIN_INVITE_REQUIRED You don't have rights to invite other users CHAT_ADMIN_REQUIRED The method requires chat admin privileges CHAT_FORBIDDEN You cannot write in this chat CHAT_GUEST_SEND_FORBIDDEN You need to join the discussion group before commenting +CHAT_SEND_AUDIOS_FORBIDDEN You can't send audio messages in this chat +CHAT_SEND_GAME_FORBIDDEN You can't send a game to this chat CHAT_SEND_GIFS_FORBIDDEN You can't send animations in this chat CHAT_SEND_INLINE_FORBIDDEN You cannot use inline bots to send messages in this chat CHAT_SEND_MEDIA_FORBIDDEN You can't send media messages in this chat -CHAT_SEND_POLL_FORBIDDEN You can't send polls in this chat -CHAT_SEND_STICKERS_FORBIDDEN You can't send stickers in this chat -CHAT_SEND_AUDIOS_FORBIDDEN You can't send audio messages in this chat -CHAT_SEND_GAME_FORBIDDEN You can't send a game to this chat CHAT_SEND_PHOTOS_FORBIDDEN You can't send photos in this chat CHAT_SEND_PLAIN_FORBIDDEN You can't send non-media (text) messages in this chat +CHAT_SEND_POLL_FORBIDDEN You can't send polls in this chat +CHAT_SEND_STICKERS_FORBIDDEN You can't send stickers in this chat CHAT_SEND_VIDEOS_FORBIDDEN You can't send videos in this chat CHAT_SEND_VOICES_FORBIDDEN You can't send voice recordings in this chat CHAT_WRITE_FORBIDDEN You don't have rights to send messages in this chat @@ -25,6 +25,7 @@ MESSAGE_AUTHOR_REQUIRED You are not the author of this message MESSAGE_DELETE_FORBIDDEN You don't have rights to delete messages in this chat, most likely because you are not the author of them POLL_VOTE_REQUIRED Cast a vote in the poll before calling this method PREMIUM_ACCOUNT_REQUIRED This action requires a premium account +PRIVACY_PREMIUM_REQUIRED The user has restricted from sending messages or this action requires a premium account RIGHT_FORBIDDEN You don't have enough rights for this action, or you tried to set one or more admin rights that can't be applied to this kind of chat (channel or supergroup) SENSITIVE_CHANGE_FORBIDDEN Your sensitive content settings can't be changed at this time TAKEOUT_REQUIRED The method must be invoked inside a takeout session diff --git a/compiler/errors/source/406_NOT_ACCEPTABLE.tsv b/compiler/errors/source/406_NOT_ACCEPTABLE.tsv index d92c9f1a..0d1f38aa 100644 --- a/compiler/errors/source/406_NOT_ACCEPTABLE.tsv +++ b/compiler/errors/source/406_NOT_ACCEPTABLE.tsv @@ -12,4 +12,4 @@ PHONE_PASSWORD_FLOOD You have tried to log-in too many times STICKERSET_INVALID The sticker set is invalid STICKERSET_OWNER_ANONYMOUS This sticker set can't be used as the group's sticker set because it was created by one of its anonymous admins USERPIC_UPLOAD_REQUIRED You must have a profile picture to publish your geolocation -USER_RESTRICTED You are limited/restricted. You can't perform this action +USER_RESTRICTED You are limited/restricted. You can't perform this action \ No newline at end of file diff --git a/compiler/errors/source/420_FLOOD.tsv b/compiler/errors/source/420_FLOOD.tsv index 575cc2f5..b45fb3f6 100644 --- a/compiler/errors/source/420_FLOOD.tsv +++ b/compiler/errors/source/420_FLOOD.tsv @@ -2,5 +2,7 @@ id message 2FA_CONFIRM_WAIT_X A wait of {value} seconds is required because this account is active and protected by a 2FA password FLOOD_TEST_PHONE_WAIT_X A wait of {value} seconds is required in the test servers FLOOD_WAIT_X A wait of {value} seconds is required -SLOWMODE_WAIT_X A wait of {value} seconds is required to send messages in this chat. +PREMIUM_SUB_ACTIVE_UNTIL_X A wait of {value} seconds is required +SLOWMODE_WAIT_X A wait of {value} seconds is required to send messages in this chat +STORY_SEND_FLOOD_X A wait of {value} seconds is required to continue posting stories TAKEOUT_INIT_DELAY_X You have to confirm the data export request using one of your mobile devices or wait {value} seconds \ No newline at end of file diff --git a/compiler/errors/source/500_INTERNAL_SERVER_ERROR.tsv b/compiler/errors/source/500_INTERNAL_SERVER_ERROR.tsv index e9be30f2..acf254b0 100644 --- a/compiler/errors/source/500_INTERNAL_SERVER_ERROR.tsv +++ b/compiler/errors/source/500_INTERNAL_SERVER_ERROR.tsv @@ -8,6 +8,7 @@ CHAT_OCCUPY_USERNAME_FAILED Failure to occupy chat username due to Telegram havi CHP_CALL_FAIL Telegram is having internal problems. Please try again later ENCRYPTION_OCCUPY_ADMIN_FAILED Failed occupying memory for admin info due to Telegram having internal problems. Please try again later ENCRYPTION_OCCUPY_FAILED Internal server error while accepting secret chat +FILE_WRITE_FAILED Telegram is having internal problems. Please try again later FOLDER_DEAC_AUTOFIX_ALL Telegram is having internal problems. Please try again later GROUPCALL_ADD_PARTICIPANTS_FAILED Failure while adding voice chat member due to Telegram having internal problems. Please try again later GROUPED_ID_OCCUPY_FAILED Telegram is having internal problems. Please try again later @@ -42,5 +43,4 @@ UNKNOWN_METHOD The method you tried to call cannot be called on non-CDN DCs UPLOAD_NO_VOLUME Telegram is having internal problems. Please try again later VOLUME_LOC_NOT_FOUND Telegram is having internal problems. Please try again later WORKER_BUSY_TOO_LONG_RETRY Server workers are too busy right now due to Telegram having internal problems. Please try again later -WP_ID_GENERATE_FAILED Telegram is having internal problems. Please try again later -FILE_WRITE_FAILED Telegram is having internal problems. Please try again later +WP_ID_GENERATE_FAILED Telegram is having internal problems. Please try again later \ No newline at end of file diff --git a/compiler/errors/source/503_SERVICE_UNAVAILABLE.tsv b/compiler/errors/source/503_SERVICE_UNAVAILABLE.tsv index 4db95a10..0164c93a 100644 --- a/compiler/errors/source/503_SERVICE_UNAVAILABLE.tsv +++ b/compiler/errors/source/503_SERVICE_UNAVAILABLE.tsv @@ -1,4 +1,4 @@ id message ApiCallError Telegram is having internal problems. Please try again later. -Timeout Telegram is having internal problems. Please try again later. Timedout Telegram is having internal problems. Please try again later. +Timeout Telegram is having internal problems. Please try again later. \ No newline at end of file