Add new errors

This commit is contained in:
Dan 2021-01-03 20:56:47 +01:00
parent 59ca3bcd35
commit d28db96128
3 changed files with 8 additions and 0 deletions

View File

@ -95,6 +95,7 @@ def start():
error_id, error_message = row
sub_class = caml(re.sub(r"_X", "_", error_id))
sub_class = re.sub(r"^2", "Two", sub_class)
f_all.write(" \"{}\": \"{}\",\n".format(error_id, sub_class))

View File

@ -17,6 +17,7 @@ AUTH_TOKEN_INVALID An invalid authorization token was provided
AUTOARCHIVE_NOT_AVAILABLE This feature is not yet enabled for your account due to it not receiving too many private messages from strangers
BANK_CARD_NUMBER_INVALID The credit card number is invalid
BANNED_RIGHTS_INVALID You provided a set of restrictions that is invalid
BASE_PORT_LOC_INVALID The base port location is invalid
BOTS_TOO_MUCH The chat has too many bots
BOT_CHANNELS_NA Bots can't edit admin privileges
BOT_COMMAND_DESCRIPTION_INVALID The command description was empty, too long or had invalid characters
@ -120,13 +121,16 @@ FOLDER_ID_EMPTY The folder you tried to delete was already empty
FOLDER_ID_INVALID The folder id is invalid
FRESH_CHANGE_ADMINS_FORBIDDEN You can't change administrator settings in this chat because your session was logged-in recently
FROM_MESSAGE_BOT_DISABLED Bots can't use fromMessage min constructors
FROM_PEER_INVALID The from peer value is invalid
GAME_BOT_INVALID You cannot send that game with the current bot
GEO_POINT_INVALID Invalid geo point provided
GIF_CONTENT_TYPE_INVALID GIF content-type invalid
GIF_ID_INVALID The provided gif/animation id is invalid
GRAPH_INVALID_RELOAD Invalid graph token provided, please reload the stats and provide the updated token
GRAPH_OUTDATED_RELOAD The graph data is outdated
GROUPCALL_SSRC_DUPLICATE_MUCH Too many group call synchronization source duplicates
GROUPED_MEDIA_INVALID The album contains invalid media
GROUP_CALL_INVALID The group call is invalid
HASH_INVALID The provided hash is invalid
IMAGE_PROCESS_FAILED The server failed to process your image
INLINE_RESULT_EXPIRED The inline bot query expired
@ -170,6 +174,7 @@ MSG_WAIT_FAILED A waiting call returned an error
MULTI_MEDIA_TOO_LONG The album/media group contains too many items
NEW_SALT_INVALID The new salt is invalid
NEW_SETTINGS_INVALID The new settings are invalid
NEXT_OFFSET_INVALID The next offset value is invalid
OFFSET_INVALID The offset parameter is invalid
OFFSET_PEER_ID_INVALID The provided offset peer is invalid
OPTIONS_TOO_MUCH The poll options are too many
@ -238,6 +243,7 @@ RANDOM_LENGTH_INVALID The random length is invalid
RANGES_INVALID Invalid range provided
REACTION_EMPTY The reaction provided is empty
REACTION_INVALID Invalid reaction provided (only emoji are allowed)
REFLECTOR_NOT_AVAILABLE The call reflector is not available
REPLY_MARKUP_BUY_EMPTY Reply markup for buy button empty
REPLY_MARKUP_GAME_EMPTY The provided reply markup for the game is empty
REPLY_MARKUP_INVALID The provided reply markup is invalid

1 id message
17 AUTOARCHIVE_NOT_AVAILABLE This feature is not yet enabled for your account due to it not receiving too many private messages from strangers
18 BANK_CARD_NUMBER_INVALID The credit card number is invalid
19 BANNED_RIGHTS_INVALID You provided a set of restrictions that is invalid
20 BASE_PORT_LOC_INVALID The base port location is invalid
21 BOTS_TOO_MUCH The chat has too many bots
22 BOT_CHANNELS_NA Bots can't edit admin privileges
23 BOT_COMMAND_DESCRIPTION_INVALID The command description was empty, too long or had invalid characters
121 FOLDER_ID_INVALID The folder id is invalid
122 FRESH_CHANGE_ADMINS_FORBIDDEN You can't change administrator settings in this chat because your session was logged-in recently
123 FROM_MESSAGE_BOT_DISABLED Bots can't use fromMessage min constructors
124 FROM_PEER_INVALID The from peer value is invalid
125 GAME_BOT_INVALID You cannot send that game with the current bot
126 GEO_POINT_INVALID Invalid geo point provided
127 GIF_CONTENT_TYPE_INVALID GIF content-type invalid
128 GIF_ID_INVALID The provided gif/animation id is invalid
129 GRAPH_INVALID_RELOAD Invalid graph token provided, please reload the stats and provide the updated token
130 GRAPH_OUTDATED_RELOAD The graph data is outdated
131 GROUPCALL_SSRC_DUPLICATE_MUCH Too many group call synchronization source duplicates
132 GROUPED_MEDIA_INVALID The album contains invalid media
133 GROUP_CALL_INVALID The group call is invalid
134 HASH_INVALID The provided hash is invalid
135 IMAGE_PROCESS_FAILED The server failed to process your image
136 INLINE_RESULT_EXPIRED The inline bot query expired
174 MULTI_MEDIA_TOO_LONG The album/media group contains too many items
175 NEW_SALT_INVALID The new salt is invalid
176 NEW_SETTINGS_INVALID The new settings are invalid
177 NEXT_OFFSET_INVALID The next offset value is invalid
178 OFFSET_INVALID The offset parameter is invalid
179 OFFSET_PEER_ID_INVALID The provided offset peer is invalid
180 OPTIONS_TOO_MUCH The poll options are too many
243 RANGES_INVALID Invalid range provided
244 REACTION_EMPTY The reaction provided is empty
245 REACTION_INVALID Invalid reaction provided (only emoji are allowed)
246 REFLECTOR_NOT_AVAILABLE The call reflector is not available
247 REPLY_MARKUP_BUY_EMPTY Reply markup for buy button empty
248 REPLY_MARKUP_GAME_EMPTY The provided reply markup for the game is empty
249 REPLY_MARKUP_INVALID The provided reply markup is invalid

View File

@ -1,4 +1,5 @@
id message
2FA_CONFIRM_WAIT_X A wait of {x} seconds is required because this account is active and protected by a 2FA password
FLOOD_TEST_PHONE_WAIT_X A wait of {x} seconds is required in the test servers
FLOOD_WAIT_X A wait of {x} seconds is required
SLOWMODE_WAIT_X A wait of {x} seconds is required to send messages in this chat.

1 id message
2 2FA_CONFIRM_WAIT_X A wait of {x} seconds is required because this account is active and protected by a 2FA password
3 FLOOD_TEST_PHONE_WAIT_X A wait of {x} seconds is required in the test servers
4 FLOOD_WAIT_X A wait of {x} seconds is required
5 SLOWMODE_WAIT_X A wait of {x} seconds is required to send messages in this chat.