Add RPC Error: CHAT_FORWARDS_RESTRICTED (#825)

* Add RPC Error: CHAT_FORWARD_RESTRICTED

* Fix the typo in the previous commit

Sorry, made a typo in the error name

* Update 400_BAD_REQUEST.tsv

Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
This commit is contained in:
David Hu 2021-12-20 11:40:32 -08:00 committed by GitHub
parent 4bb57a4da3
commit 419ecb1af5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,6 +52,7 @@ CHANNEL_TOO_LARGE The channel is too large to be deleted; this error is issued w
CHAT_ABOUT_NOT_MODIFIED The chat about text was not modified because you tried to edit it using the same content 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_ABOUT_TOO_LONG The chat about text is too long
CHAT_ADMIN_REQUIRED The method requires chat admin privileges CHAT_ADMIN_REQUIRED The method requires chat admin privileges
CHAT_FORWARDS_RESTRICTED The chat restricts forwarding content
CHAT_ID_EMPTY The provided chat id is empty 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_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 CHAT_INVALID The chat is invalid
@ -346,4 +347,4 @@ WEBDOCUMENT_URL_EMPTY The web document URL is empty
WEBDOCUMENT_URL_INVALID The web document URL is invalid WEBDOCUMENT_URL_INVALID The web document URL is invalid
WEBPAGE_CURL_FAILED Telegram server could not fetch the provided URL WEBPAGE_CURL_FAILED Telegram server could not fetch the provided URL
WEBPAGE_MEDIA_EMPTY The URL doesn't contain any valid media WEBPAGE_MEDIA_EMPTY The URL doesn't contain any valid media
YOU_BLOCKED_USER You blocked this user YOU_BLOCKED_USER You blocked this user

1 id message
52 CHAT_ABOUT_NOT_MODIFIED The chat about text was not modified because you tried to edit it using the same content
53 CHAT_ABOUT_TOO_LONG The chat about text is too long
54 CHAT_ADMIN_REQUIRED The method requires chat admin privileges
55 CHAT_FORWARDS_RESTRICTED The chat restricts forwarding content
56 CHAT_ID_EMPTY The provided chat id is empty
57 CHAT_ID_INVALID The chat id being used is invalid or not known yet. Make sure you see the chat before interacting with it
58 CHAT_INVALID The chat is invalid
347 WEBDOCUMENT_URL_INVALID The web document URL is invalid
348 WEBPAGE_CURL_FAILED Telegram server could not fetch the provided URL
349 WEBPAGE_MEDIA_EMPTY The URL doesn't contain any valid media
350 YOU_BLOCKED_USER You blocked this user