Sort the lists of known errors

This commit is contained in:
Dan 2023-01-09 15:22:10 +01:00
parent d53e1c235b
commit a58e19827a
2 changed files with 7 additions and 7 deletions

View File

@ -28,6 +28,7 @@ BOT_INLINE_DISABLED The inline feature of the bot is disabled
BOT_INVALID This is not a valid bot
BOT_METHOD_INVALID The method can't be used by bots
BOT_MISSING This method can only be run by a bot
BOT_ONESIDE_NOT_AVAIL Bots can't pin messages for one side only in private chats
BOT_PAYMENTS_DISABLED This method can only be run by a bot
BOT_POLLS_DISABLED Sending polls by bots has been disabled
BOT_RESPONSE_TIMEOUT The bot did not answer to the callback query in time
@ -101,6 +102,7 @@ ENCRYPTION_ALREADY_DECLINED The secret chat is already declined
ENCRYPTION_DECLINED The secret chat was declined
ENCRYPTION_ID_INVALID The provided secret chat id is invalid
ENTITIES_TOO_LONG The entity provided contains data that is too long, or you passed too many entities to this message
ENTITY_BOUNDS_INVALID The message entity bounds are invalid
ENTITY_MENTION_USER_INVALID The mentioned entity is not an user
ERROR_TEXT_EMPTY The provided error message is empty
EXPIRE_DATE_INVALID The expiration date is invalid
@ -154,6 +156,7 @@ INPUT_USER_DEACTIVATED The target user has been deleted/deactivated
INVITE_HASH_EMPTY The invite hash is empty
INVITE_HASH_EXPIRED The chat invite link is no longer valid
INVITE_HASH_INVALID The invite link hash is invalid
INVITE_REQUEST_SENT The request to join this chat or channel has been successfully sent
INVITE_REVOKED_MISSING The action required a chat invite link to be revoked first
LANG_PACK_INVALID The provided language pack is invalid
LASTNAME_INVALID The last name is invalid
@ -297,8 +300,8 @@ STICKER_INVALID The provided sticker is invalid
STICKER_PNG_DIMENSIONS The sticker png dimensions are invalid
STICKER_PNG_NOPNG Stickers must be png files but the provided image was not a png
STICKER_TGS_NOTGS A tgs sticker file was expected, but something else was provided
STICKER_VIDEO_NOWEBM A webm video file was expected, but something else was provided
STICKER_THUMB_PNG_NOPNG A png sticker thumbnail file was expected, but something else was provided
STICKER_VIDEO_NOWEBM A webm video file was expected, but something else was provided
TAKEOUT_INVALID The takeout id is invalid
TAKEOUT_REQUIRED The method must be invoked inside a takeout session
TEMP_AUTH_KEY_EMPTY The temporary auth key provided is empty
@ -354,7 +357,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
ENTITY_BOUNDS_INVALID The message entity bounds are invalid
BOT_ONESIDE_NOT_AVAIL Bots can't pin messages for one side only in private chats
INVITE_REQUEST_SENT The request to join this chat or channel has been successfully sent
YOU_BLOCKED_USER You blocked this user
1 id message
28 BOT_INVALID This is not a valid bot
29 BOT_METHOD_INVALID The method can't be used by bots
30 BOT_MISSING This method can only be run by a bot
31 BOT_ONESIDE_NOT_AVAIL Bots can't pin messages for one side only in private chats
32 BOT_PAYMENTS_DISABLED This method can only be run by a bot
33 BOT_POLLS_DISABLED Sending polls by bots has been disabled
34 BOT_RESPONSE_TIMEOUT The bot did not answer to the callback query in time
102 ENCRYPTION_DECLINED The secret chat was declined
103 ENCRYPTION_ID_INVALID The provided secret chat id is invalid
104 ENTITIES_TOO_LONG The entity provided contains data that is too long, or you passed too many entities to this message
105 ENTITY_BOUNDS_INVALID The message entity bounds are invalid
106 ENTITY_MENTION_USER_INVALID The mentioned entity is not an user
107 ERROR_TEXT_EMPTY The provided error message is empty
108 EXPIRE_DATE_INVALID The expiration date is invalid
156 INVITE_HASH_EMPTY The invite hash is empty
157 INVITE_HASH_EXPIRED The chat invite link is no longer valid
158 INVITE_HASH_INVALID The invite link hash is invalid
159 INVITE_REQUEST_SENT The request to join this chat or channel has been successfully sent
160 INVITE_REVOKED_MISSING The action required a chat invite link to be revoked first
161 LANG_PACK_INVALID The provided language pack is invalid
162 LASTNAME_INVALID The last name is invalid
300 STICKER_PNG_DIMENSIONS The sticker png dimensions are invalid
301 STICKER_PNG_NOPNG Stickers must be png files but the provided image was not a png
302 STICKER_TGS_NOTGS A tgs sticker file was expected, but something else was provided
STICKER_VIDEO_NOWEBM A webm video file was expected, but something else was provided
303 STICKER_THUMB_PNG_NOPNG A png sticker thumbnail file was expected, but something else was provided
304 STICKER_VIDEO_NOWEBM A webm video file was expected, but something else was provided
305 TAKEOUT_INVALID The takeout id is invalid
306 TAKEOUT_REQUIRED The method must be invoked inside a takeout session
307 TEMP_AUTH_KEY_EMPTY The temporary auth key provided is empty
357 WEBDOCUMENT_URL_INVALID The web document URL is invalid
358 WEBPAGE_CURL_FAILED Telegram server could not fetch the provided URL
359 WEBPAGE_MEDIA_EMPTY The URL doesn't contain any valid media
360 YOU_BLOCKED_USER You blocked this user
ENTITY_BOUNDS_INVALID The message entity bounds are invalid
BOT_ONESIDE_NOT_AVAIL Bots can't pin messages for one side only in private chats
INVITE_REQUEST_SENT The request to join this chat or channel has been successfully sent

View File

@ -15,6 +15,7 @@ INLINE_BOT_REQUIRED The action must be performed through an inline bot callback
MESSAGE_AUTHOR_REQUIRED You are not the author of this message
MESSAGE_DELETE_FORBIDDEN You don't have rights to delete messages in this chat, most likely because you are not the author of them
POLL_VOTE_REQUIRED Cast a vote in the poll before calling this method
PREMIUM_ACCOUNT_REQUIRED This action requires a premium account
RIGHT_FORBIDDEN You don't have enough rights for this action, or you tried to set one or more admin rights that can't be applied to this kind of chat (channel or supergroup)
SENSITIVE_CHANGE_FORBIDDEN Your sensitive content settings can't be changed at this time
TAKEOUT_REQUIRED The method must be invoked inside a takeout session
@ -24,5 +25,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
PREMIUM_ACCOUNT_REQUIRED This action requires a premium account
USER_RESTRICTED You are limited/restricted. You can't perform this action
1 id message
15 MESSAGE_AUTHOR_REQUIRED You are not the author of this message
16 MESSAGE_DELETE_FORBIDDEN You don't have rights to delete messages in this chat, most likely because you are not the author of them
17 POLL_VOTE_REQUIRED Cast a vote in the poll before calling this method
18 PREMIUM_ACCOUNT_REQUIRED This action requires a premium account
19 RIGHT_FORBIDDEN You don't have enough rights for this action, or you tried to set one or more admin rights that can't be applied to this kind of chat (channel or supergroup)
20 SENSITIVE_CHANGE_FORBIDDEN Your sensitive content settings can't be changed at this time
21 TAKEOUT_REQUIRED The method must be invoked inside a takeout session
25 USER_IS_BLOCKED The user is blocked
26 USER_NOT_MUTUAL_CONTACT The provided user is not a mutual contact
27 USER_PRIVACY_RESTRICTED The user's privacy settings is preventing you to perform this action
28 USER_RESTRICTED You are limited/restricted. You can't perform this action
PREMIUM_ACCOUNT_REQUIRED This action requires a premium account