Add CHAT_FORWARDS_RESTRICTED to known errors

This commit is contained in:
Lonami Exo 2022-10-02 16:25:52 +02:00
parent d2b1c3ec5f
commit 7f472ee72c

View File

@ -68,6 +68,7 @@ CHAT_ABOUT_TOO_LONG,400,Chat about too long
CHAT_ADMIN_INVITE_REQUIRED,403,You do not have the rights to do this
CHAT_ADMIN_REQUIRED,400,"Chat admin privileges are required to do that in the specified chat (for example, to send a message in a channel which is not yours), or invalid permissions used for the channel or group"
CHAT_FORBIDDEN,403,You cannot write in this chat
CHAT_FORWARDS_RESTRICTED,400,
CHAT_ID_EMPTY,400,The provided chat ID is empty
CHAT_ID_INVALID,400,"Invalid object ID for a chat. Make sure to pass the right types, for instance making sure that the request is designed for chats (not channels/megagroups) or otherwise look for a different one more suited\nAn example working with a megagroup and AddChatUserRequest, it will fail because megagroups are channels. Use InviteToChannelRequest instead"
CHAT_INVALID,400,The chat is invalid for this request

1 name codes description
68 CHAT_ADMIN_INVITE_REQUIRED 403 You do not have the rights to do this
69 CHAT_ADMIN_REQUIRED 400 Chat admin privileges are required to do that in the specified chat (for example, to send a message in a channel which is not yours), or invalid permissions used for the channel or group
70 CHAT_FORBIDDEN 403 You cannot write in this chat
71 CHAT_FORWARDS_RESTRICTED 400
72 CHAT_ID_EMPTY 400 The provided chat ID is empty
73 CHAT_ID_INVALID 400 Invalid object ID for a chat. Make sure to pass the right types, for instance making sure that the request is designed for chats (not channels/megagroups) or otherwise look for a different one more suited\nAn example working with a megagroup and AddChatUserRequest, it will fail because megagroups are channels. Use InviteToChannelRequest instead
74 CHAT_INVALID 400 The chat is invalid for this request