Document more RPC errors (#4127)

This commit is contained in:
Devesh Pal 2023-06-07 02:21:27 +05:30 committed by GitHub
parent c3bddf9440
commit 65407fc899
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,6 +67,7 @@ CHANNELS_ADMIN_LOCATED_TOO_MUCH,400,The user has reached the limit of public geo
CHANNELS_ADMIN_PUBLIC_TOO_MUCH,400,"You're admin of too many public channels, make some channels private to change the username of this channel" CHANNELS_ADMIN_PUBLIC_TOO_MUCH,400,"You're admin of too many public channels, make some channels private to change the username of this channel"
CHANNELS_TOO_MUCH,400,You have joined too many channels/supergroups CHANNELS_TOO_MUCH,400,You have joined too many channels/supergroups
CHANNEL_BANNED,400,The channel is banned CHANNEL_BANNED,400,The channel is banned
CHANNEL_FORUM_MISSING,400,
CHANNEL_ID_INVALID,400,The specified supergroup ID is invalid CHANNEL_ID_INVALID,400,The specified supergroup ID is invalid
CHANNEL_INVALID,400,"Invalid channel object. Make sure to pass the right types, for instance making sure that the request is designed for channels or otherwise look for a different one more suited" CHANNEL_INVALID,400,"Invalid channel object. Make sure to pass the right types, for instance making sure that the request is designed for channels or otherwise look for a different one more suited"
CHANNEL_PARICIPANT_MISSING,400,The current user is not in the channel CHANNEL_PARICIPANT_MISSING,400,The current user is not in the channel
@ -81,6 +82,7 @@ CHAT_ADMIN_REQUIRED,400 403,"Chat admin privileges are required to do that in th
CHAT_DISCUSSION_UNALLOWED,400, CHAT_DISCUSSION_UNALLOWED,400,
CHAT_FORBIDDEN,403,You cannot write in this chat CHAT_FORBIDDEN,403,You cannot write in this chat
CHAT_FORWARDS_RESTRICTED,400 406,You can't forward messages from a protected chat CHAT_FORWARDS_RESTRICTED,400 406,You can't forward messages from a protected chat
CHAT_GET_FAILED,500,
CHAT_GUEST_SEND_FORBIDDEN,403,"You join the discussion group before commenting, see [here](/api/discussion#requiring-users-to-join-the-group) for more info" CHAT_GUEST_SEND_FORBIDDEN,403,"You join the discussion group before commenting, see [here](/api/discussion#requiring-users-to-join-the-group) for more info"
CHAT_ID_EMPTY,400,The provided chat ID is empty CHAT_ID_EMPTY,400,The provided chat ID is empty
CHAT_ID_GENERATE_FAILED,500,Failure while generating the chat ID CHAT_ID_GENERATE_FAILED,500,Failure while generating the chat ID

1 name codes description
67 CHANNELS_ADMIN_PUBLIC_TOO_MUCH 400 You're admin of too many public channels, make some channels private to change the username of this channel
68 CHANNELS_TOO_MUCH 400 You have joined too many channels/supergroups
69 CHANNEL_BANNED 400 The channel is banned
70 CHANNEL_FORUM_MISSING 400
71 CHANNEL_ID_INVALID 400 The specified supergroup ID is invalid
72 CHANNEL_INVALID 400 Invalid channel object. Make sure to pass the right types, for instance making sure that the request is designed for channels or otherwise look for a different one more suited
73 CHANNEL_PARICIPANT_MISSING 400 The current user is not in the channel
82 CHAT_DISCUSSION_UNALLOWED 400
83 CHAT_FORBIDDEN 403 You cannot write in this chat
84 CHAT_FORWARDS_RESTRICTED 400 406 You can't forward messages from a protected chat
85 CHAT_GET_FAILED 500
86 CHAT_GUEST_SEND_FORBIDDEN 403 You join the discussion group before commenting, see [here](/api/discussion#requiring-users-to-join-the-group) for more info
87 CHAT_ID_EMPTY 400 The provided chat ID is empty
88 CHAT_ID_GENERATE_FAILED 500 Failure while generating the chat ID