From 5fefbcaef667d2c58482e77b3aff67ba5794724c Mon Sep 17 00:00:00 2001 From: AsmSafone <77989182+AsmSafone@users.noreply.github.com> Date: Fri, 14 Jul 2023 16:38:15 +0600 Subject: [PATCH 1/2] Add `CHAT_SEND_PHOTOS_FORBIDDEN` to forbidden errors --- compiler/errors/source/403_FORBIDDEN.tsv | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/errors/source/403_FORBIDDEN.tsv b/compiler/errors/source/403_FORBIDDEN.tsv index 027f2e852e..1dcbd2c4ac 100644 --- a/compiler/errors/source/403_FORBIDDEN.tsv +++ b/compiler/errors/source/403_FORBIDDEN.tsv @@ -7,6 +7,7 @@ CHAT_FORBIDDEN You cannot write in 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_PHOTOS_FORBIDDEN You can't send photos 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_WRITE_FORBIDDEN You don't have rights to send messages in this chat @@ -25,4 +26,4 @@ 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 From 61580716b1d39d51260495a65a3a1f576e147730 Mon Sep 17 00:00:00 2001 From: AsmSafone <77989182+AsmSafone@users.noreply.github.com> Date: Tue, 15 Aug 2023 18:54:10 +0600 Subject: [PATCH 2/2] Add `CHAT_SEND_PLAIN_FORBIDDEN` to forbidden errors --- compiler/errors/source/403_FORBIDDEN.tsv | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/errors/source/403_FORBIDDEN.tsv b/compiler/errors/source/403_FORBIDDEN.tsv index 1dcbd2c4ac..36a6e89286 100644 --- a/compiler/errors/source/403_FORBIDDEN.tsv +++ b/compiler/errors/source/403_FORBIDDEN.tsv @@ -8,6 +8,7 @@ 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_PHOTOS_FORBIDDEN You can't send photos in this chat +CHAT_SEND_PLAIN_FORBIDDEN You cannot write 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_WRITE_FORBIDDEN You don't have rights to send messages in this chat