From eac886f0e6242e3dc15e9eb843dd36343c48c941 Mon Sep 17 00:00:00 2001 From: Nick <64551534+null-nick@users.noreply.github.com> Date: Fri, 14 Jul 2023 05:27:45 +0200 Subject: [PATCH] Added some missing errors Signed-off-by: wulan17 --- compiler/errors/source/400_BAD_REQUEST.tsv | 2 +- compiler/errors/source/403_FORBIDDEN.tsv | 14 +++++++++++++- .../errors/source/500_INTERNAL_SERVER_ERROR.tsv | 3 ++- compiler/errors/source/503_SERVICE_UNAVAILABLE.tsv | 3 ++- 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/compiler/errors/source/400_BAD_REQUEST.tsv b/compiler/errors/source/400_BAD_REQUEST.tsv index 063d151f..e53a85f4 100644 --- a/compiler/errors/source/400_BAD_REQUEST.tsv +++ b/compiler/errors/source/400_BAD_REQUEST.tsv @@ -359,4 +359,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 \ No newline at end of file +YOU_BLOCKED_USER You blocked this user diff --git a/compiler/errors/source/403_FORBIDDEN.tsv b/compiler/errors/source/403_FORBIDDEN.tsv index 027f2e85..b94e0af7 100644 --- a/compiler/errors/source/403_FORBIDDEN.tsv +++ b/compiler/errors/source/403_FORBIDDEN.tsv @@ -25,4 +25,16 @@ USER_INVALID The provided user is invalid USER_IS_BLOCKED The user is blocked USER_NOT_MUTUAL_CONTACT The provided user is not a mutual contact USER_PRIVACY_RESTRICTED The user's privacy settings is preventing you to perform this action -USER_RESTRICTED You are limited/restricted. You can't perform this action \ No newline at end of file +USER_RESTRICTED You are limited/restricted. You can't perform this action +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 gifs in this chat +CHAT_SEND_MEDIA_FORBIDDEN You can't send media in 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 can't write in this chat +GROUPCALL_FORBIDDEN The group call has already ended \ 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 abfc57a3..0e8d68a5 100644 --- a/compiler/errors/source/500_INTERNAL_SERVER_ERROR.tsv +++ b/compiler/errors/source/500_INTERNAL_SERVER_ERROR.tsv @@ -42,4 +42,5 @@ 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 \ No newline at end of file +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 \ 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 c28edb0a..2607d582 100644 --- a/compiler/errors/source/503_SERVICE_UNAVAILABLE.tsv +++ b/compiler/errors/source/503_SERVICE_UNAVAILABLE.tsv @@ -1,3 +1,4 @@ id message ApiCallError 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 +Timeout Telegram is having internal problems. Please try again later. +Timedout Telegram is having internal problems. Please try again later. \ No newline at end of file