Skip to content

Commit fd12f69

Browse files
Automated update of unknown_errors
1 parent 55fe4b5 commit fd12f69

3 files changed

Lines changed: 22 additions & 10 deletions

File tree

compiler/errors/source/400_BAD_REQUEST.tsv

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ ADMIN_RANK_EMOJI_NOT_ALLOWED An admin rank cannot contain emojis.
1010
ADMIN_RANK_INVALID The specified admin rank is invalid.
1111
ADMIN_RIGHTS_EMPTY The chatAdminRights constructor passed in keyboardButtonRequestPeer.peer_type.user_admin_rights has no rights set (i.e. flags is 0).
1212
AD_EXPIRED The ad has expired (too old or not found).
13+
AICOMPOSE_FLOOD_PREMIUM You've reached the daily limit of AI text transformations, upgrade to [Telegram Premium](https://core.telegram.org/api/premium) to get **50x** times more AI text transformations per day!
1314
AICOMPOSE_TONE_INVALID The specified tone is invalid.
1415
AICOMPOSE_TONE_TITLE_INVALID The specified tone title is invalid.
16+
AI_COMPOSE_TASK_MISSING No AI task was specified. The caller must provide at least one of: proofread, translate (with a target language), tone, or emojify.
1517
ALBUM_PHOTOS_TOO_MANY You have uploaded too many profile photos, delete some before retrying.
1618
API_ID_INVALID API ID invalid.
1719
API_ID_PUBLISHED_FLOOD This API id was published somewhere, you can't use it now.
@@ -44,8 +46,7 @@ BOT_BUSINESS_MISSING The specified bot is not a business bot (the [user](https:/
4446
BOT_CHANNELS_NA Bots can't edit admin privileges.
4547
BOT_COMMAND_DESCRIPTION_INVALID The specified command description is invalid.
4648
BOT_COMMAND_INVALID The specified command is invalid.
47-
BOT_CREATE_LIMIT_EXCEEDED
48-
The current user already owns the maximum allowed number of owned bots, as specified by [`bots_create_limit_default` »](https://core.telegram.org/api/config#bots-create-limit-default) and [`bots_create_limit_premium` »](https://core.telegram.org/api/config#bots-create-limit-premium); if the current user doesn't have Telegram Premium, upgrading to Premium will allow them to create more bots. .
49+
BOT_CREATE_LIMIT_EXCEEDED The current user already owns the maximum allowed number of owned bots, as specified by [`bots_create_limit_default` »](https://core.telegram.org/api/config#bots-create-limit-default) and [`bots_create_limit_premium` »](https://core.telegram.org/api/config#bots-create-limit-premium); if the current user doesn't have Telegram Premium, upgrading to Premium will allow them to create more bots.
4950
BOT_DOMAIN_INVALID Bot domain invalid.
5051
BOT_FALLBACK_UNSUPPORTED The fallback flag can't be set for bots.
5152
BOT_GAMES_DISABLED Games can't be sent to channels.
@@ -164,6 +165,7 @@ DATE_EMPTY Date empty.
164165
DC_ID_INVALID The provided DC ID is invalid.
165166
DH_G_A_INVALID g_a invalid.
166167
DOCUMENT_INVALID The specified document is invalid.
168+
EFFECT_CHAT_INVALID Message [effects](https://core.telegram.org/api/effects) can only be used in private 1-on-1 chats, but the caller tried to send a message with an effect to a group or channel.
167169
EFFECT_ID_INVALID The specified effect ID is invalid.
168170
EMAIL_HASH_EXPIRED Email hash expired.
169171
EMAIL_INSTALL_MISSING Attempting to send a code to the recovery email, but no email is configured.
@@ -188,6 +190,7 @@ ENTITIES_TOO_LONG You provided too many styled message entities.
188190
ENTITY_BOUNDS_INVALID A specified [entity offset or length](https://core.telegram.org/api/entities#entity-length) is invalid, see [here »](https://core.telegram.org/api/entities#entity-length) for info on how to properly compute the entity offset/length.
189191
ENTITY_DATE_FORMAT_INVALID One of the passed messageEntityFormattedDate objects has an invalid format (i.e. an invalid combination of the format flags).
190192
ENTITY_DATE_INVALID One of the passed messageEntityFormattedDate objects has an invalid date: the allowed value ranges from `0` to the current date plus 1098 days (`time()+1098*86400`).
193+
ENTITY_DATE_TOO_LONG The maximum text span that can be covered by a date entity is 31 UTF-16 code units if any of the date formatting flags is set, or 127 UTF-16 code units without. .
191194
ENTITY_MENTION_USER_INVALID You mentioned an invalid user.
192195
ERROR_TEXT_EMPTY The provided error message is empty.
193196
EXPIRES_AT_INVALID The specified `expires_at` timestamp is invalid.
@@ -196,6 +199,7 @@ EXPORT_CARD_INVALID Provided card is invalid.
196199
EXTENDED_MEDIA_AMOUNT_INVALID The specified `stars_amount` of the passed [inputMediaPaidMedia](https://core.telegram.org/constructor/inputMediaPaidMedia) is invalid.
197200
EXTENDED_MEDIA_EMPTY The specified extended media is empty.
198201
EXTENDED_MEDIA_INVALID The specified paid media is invalid.
202+
EXTENDED_MEDIA_PEER_INVALID Paid media is not allowed for the target peer.
199203
EXTERNAL_URL_INVALID External URL invalid.
200204
FIELD_NAME_EMPTY The field with the name FIELD_NAME is missing
201205
FIELD_NAME_INVALID The field with the name FIELD_NAME is invalid
@@ -229,7 +233,7 @@ FOLDER_ID_EMPTY An empty folder ID was specified.
229233
FOLDER_ID_INVALID Invalid folder ID.
230234
FORM_EXPIRED The form was generated more than 10 minutes ago and has expired, please re-generate it using [payments.getPaymentForm](https://core.telegram.org/method/payments.getPaymentForm) and pass the new `form_id`.
231235
FORM_ID_EMPTY The specified form ID is empty.
232-
FORM_SUBMIT_DUPLICATE The same payment form was already submitted. .
236+
FORM_SUBMIT_DUPLICATE The same payment form was already submitted. .
233237
FORM_UNSUPPORTED Please update your client.
234238
FORUM_ENABLED You can't execute the specified action because the group is a [forum](https://core.telegram.org/api/forum), disable forum functionality to continue.
235239
FRESH_CHANGE_ADMINS_FORBIDDEN You were just elected admin, you can't add or modify other admins yet.
@@ -249,7 +253,7 @@ GRAPH_EXPIRED_RELOAD This graph has expired, please obtain a new graph token.
249253
GRAPH_INVALID_RELOAD Invalid graph token provided, please reload the stats and provide the updated token.
250254
GRAPH_OUTDATED_RELOAD The graph is outdated, please get a new async token using stats.getBroadcastStats.
251255
GROUPCALL_ALREADY_DISCARDED The group call was already discarded.
252-
GROUPCALL_FORBIDDEN The group call has already ended.
256+
GROUPCALL_FORBIDDEN The specified group call cannot be used in this context.
253257
GROUPCALL_INVALID The specified group call is invalid.
254258
GROUPCALL_JOIN_MISSING You haven't joined this group call.
255259
GROUPCALL_NOT_MODIFIED Group call settings weren't modified.
@@ -281,7 +285,7 @@ INPUT_PEERS_EMPTY The specified peer array is empty.
281285
INPUT_PURPOSE_INVALID The specified payment purpose is invalid.
282286
INPUT_REQUEST_TOO_LONG The request payload is too long.
283287
INPUT_STARS_AMOUNT_INVALID The specified offer amount in stars is invalid, see [here »](https://core.telegram.org/api/gifts#collectible-gift-purchase-offers) for the allowed range.
284-
INPUT_STARS_NANOS_INVALID The specified offer amount in nanotons is invalid, see [here »](https://core.telegram.org/api/gifts#collectible-gift-purchase-offers) for the allowed range.
288+
INPUT_STARS_NANOS_INVALID The specified offer amount in nanotons is invalid, see [here »](https://core.telegram.org/api/gifts#collectible-gift-purchase-offers) for the allowed range.
285289
INPUT_TEXT_EMPTY The specified text is empty.
286290
INPUT_TEXT_TOO_LONG The specified text is too long.
287291
INPUT_USER_DEACTIVATED The specified user was deleted.
@@ -348,6 +352,7 @@ MSG_VOICE_TOO_LONG The specified voice message is too long to be transcribed.
348352
MSG_WAIT_FAILED A waiting call returned an error.
349353
MULTI_MEDIA_TOO_LONG Too many media files for album.
350354
NAME_INVALID The specified bot name is invalid.
355+
NEED_ACTION_MISSING The caller didn't specify a valid action (either save or suggest) for the contact profile photo upload.
351356
NEW_SALT_INVALID The new salt is invalid.
352357
NEW_SETTINGS_EMPTY No password is set on the current account, and no new password was specified in `new_settings`.
353358
NEW_SETTINGS_INVALID The new password settings are invalid.
@@ -450,6 +455,7 @@ QUIZ_CORRECT_ANSWER_INVALID An invalid value was provided to the correct_answers
450455
QUIZ_MULTIPLE_INVALID Quizzes can't have the multiple_choice flag set!
451456
QUOTE_TEXT_INVALID The specified `reply_to`.`quote_text` field is invalid.
452457
RAISE_HAND_FORBIDDEN You cannot raise your hand.
458+
RANDOM_ID_DUPLICATE You provided a random ID that was already used.
453459
RANDOM_ID_EMPTY Random ID empty.
454460
RANDOM_ID_EXPIRED The specified `random_id` was expired (most likely it didn't follow the required `uint64_t random_id = (time() << 32) | ((uint64_t)random_uint32_t())` format, or the specified time is too far in the past).
455461
RANDOM_ID_INVALID A provided random ID is invalid.
@@ -594,6 +600,7 @@ TASK_ALREADY_EXISTS An email reset was already requested.
594600
TEMP_AUTH_KEY_ALREADY_BOUND The passed temporary key is already bound to another **perm_auth_key_id**.
595601
TEMP_AUTH_KEY_EMPTY No temporary auth key provided.
596602
TERMS_URL_INVALID The specified [invoice](https://core.telegram.org/constructor/invoice).`terms_url` is invalid.
603+
TEXTDRAFT_PEER_INVALID sendMessageTextDraftAction can only be used in private 1-on-1 chats.
597604
THEME_FILE_INVALID Invalid theme file provided.
598605
THEME_FORMAT_INVALID Invalid theme format provided.
599606
THEME_INVALID Invalid theme provided.
@@ -630,7 +637,6 @@ TTL_MEDIA_INVALID Invalid media Time To Live was provided.
630637
TTL_PERIOD_INVALID The specified TTL period is invalid.
631638
TYPES_EMPTY No top peer type was provided.
632639
TYPE_CONSTRUCTOR_INVALID The type constructor is invalid
633-
The current user already owns the maximum allowed number of owned bots, as specified by [`bots_create_limit_default` &raquo;](https://core.telegram.org/api/config#bots-create-limit-default) and [`bots_create_limit_premium` &raquo;](https://core.telegram.org/api/config#bots-create-limit-premium); if the current user doesn't have Telegram Premium, upgrading to Premium will allow them to create more bots. .
634640
UNSUPPORTED `require_payment` cannot be *set* by users, only by monoforums: users must instead use the [inputPrivacyKeyNoPaidMessages](https://core.telegram.org/constructor/inputPrivacyKeyNoPaidMessages) privacy setting to remove a previously added exemption.
635641
UNTIL_DATE_INVALID Invalid until date provided.
636642
URL_EXPIRED The specified OAuth request has expired.
@@ -654,6 +660,7 @@ USER_BLOCKED User blocked.
654660
USER_BOT Bots can only be admins in channels.
655661
USER_BOT_INVALID User accounts must provide the `bot` method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts.
656662
USER_BOT_REQUIRED This method can only be called by a bot.
663+
USER_BOT_TO_BOT_DISABLED Bot-to-bot messaging is disabled because one of the two bots hasn't enabled the Bot to Bot setting in @BotFather.
657664
USER_CHANNELS_TOO_MUCH One of the users you tried to add is already in too many channels/supergroups.
658665
USER_CREATOR For channels.editAdmin: you've tried to edit the admin rights of the owner, but you're not the owner; for channels.leaveChannel: you can't leave this channel, because you're its creator.
659666
USER_GIFT_UNAVAILABLE Gifts are not available in the current region ([stars_gifts_enabled](https://core.telegram.org/api/config#stars-gifts-enabled) is equal to false).

compiler/errors/source/403_FORBIDDEN.tsv

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
id message
22
2FA_CONFIRM_WAIT_X Since this account is active and protected by a 2FA password, we will delete it in 1 week for security purposes. You can cancel this process at any time, you'll be able to reset your account in {value} seconds.
33
ABOUT_TOO_LONG About string too long.
4+
ACCESS_DENIED The account was deactivated, or is a bot/service account.
45
ACCESS_TOKEN_EXPIRED Access token expired.
56
ACCESS_TOKEN_INVALID Access token invalid.
67
ADDRESS_INVALID The specified geopoint address is invalid.
@@ -40,6 +41,7 @@ BOT_COMMAND_INVALID The specified command is invalid.
4041
BOT_DOMAIN_INVALID Bot domain invalid.
4142
BOT_FORUM_CREATE_FORBIDDEN Since the bot's user.bot_forum_can_manage_topics flag is **not** set, the user cannot create or modify bot forum topics.
4243
BOT_GROUPS_BLOCKED This bot can't be added to groups.
44+
BOT_GUARD_NOT_SUPPORTED This bot is not designated as a 'join guard' bot. This method is only available to bots that mediate user joins to chats. .
4345
BOT_INLINE_DISABLED This bot can't be used in inline mode.
4446
BOT_INVALID This is not a valid bot.
4547
BOT_MISSING Only bots can call this method, please use [@stickers](https://t.me/stickers) if you're a user.
@@ -198,7 +200,7 @@ GRAPH_OUTDATED_RELOAD The graph is outdated, please get a new async token using
198200
GROUPCALL_ALREADY_DISCARDED The group call was already discarded.
199201
GROUPCALL_ALREADY_STARTED The groupcall has already started, you can join directly using [phone.joinGroupCall](https://core.telegram.org/method/phone.joinGroupCall).
200202
GROUPCALL_CHANGE_FORBIDDEN You cannot change this group call setting.
201-
GROUPCALL_FORBIDDEN The group call has already ended.
203+
GROUPCALL_FORBIDDEN The specified group call cannot be used in this context.
202204
GROUPCALL_INVALID The specified group call is invalid.
203205
GROUPCALL_JOIN_MISSING You haven't joined this group call.
204206
GROUPCALL_NOT_MODIFIED Group call settings weren't modified.
@@ -481,6 +483,7 @@ USER_BOT_REQUIRED This method can only be called by a bot.
481483
USER_CHANNELS_TOO_MUCH One of the users you tried to add is already in too many channels/supergroups.
482484
USER_CREATOR You can't leave this channel, because you're its creator.
483485
USER_DELETED You can't send this secret message because the other participant deleted their account.
486+
USER_DISALLOWED_STARGIFTS The recipient user has configured restrictions on which categories of star gifts they're willing to accept (unique, limited, or unlimited): the sender attempted to get a payment form for a gift that falls into a category the recipient has blocked.
484487
USER_ID_INVALID The provided user ID is invalid.
485488
USER_INVALID Invalid user provided.
486489
USER_IS_BLOCKED You were blocked by this user.

compiler/errors/source/406_NOT_ACCEPTABLE.tsv

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ADMIN_RANK_EMOJI_NOT_ALLOWED An admin rank cannot contain emojis.
1010
ADMIN_RANK_INVALID The specified admin rank is invalid.
1111
ADMIN_RIGHTS_EMPTY The chatAdminRights constructor passed in keyboardButtonRequestPeer.peer_type.user_admin_rights has no rights set (i.e. flags is 0).
1212
ALBUM_PHOTOS_TOO_MANY You have uploaded too many profile photos, delete some before retrying.
13-
ALLOW_PAYMENT_REQUIRED This peer only accepts [paid messages &raquo;](https://core.telegram.org/api/paid-messages): this error is only emitted for older layers without paid messages support, so the client must be updated in order to use paid messages. .
13+
ALLOW_PAYMENT_REQUIRED This peer only accepts [paid messages &raquo;](https://core.telegram.org/api/paid-messages): this error is only emitted for older layers without paid messages support, so the client must be updated in order to use paid messages. .
1414
ANONYMOUS_REACTIONS_DISABLED Sorry, anonymous administrators cannot leave reactions or participate in polls.
1515
API_GIFT_RESTRICTED_UPDATE_APP Please update the app to access the gift API.
1616
API_ID_INVALID API ID invalid.
@@ -53,7 +53,7 @@ BROADCAST_FORBIDDEN Channel poll voters and reactions cannot be fetched to preve
5353
BROADCAST_ID_INVALID Broadcast ID invalid.
5454
BROADCAST_PUBLIC_VOTERS_FORBIDDEN You can't forward polls with public voters.
5555
BROADCAST_REQUIRED This method can only be called on a channel, please use stats.getMegagroupStats for supergroups.
56-
BUSINESS_ADDRESS_ACTIVE The user is currently advertising a [Business Location](https://core.telegram.org/api/business#location), the location may only be changed (or removed) using [account.updateBusinessLocation &raquo;](https://core.telegram.org/method/account.updateBusinessLocation). .
56+
BUSINESS_ADDRESS_ACTIVE The user is currently advertising a [Business Location](https://core.telegram.org/api/business#location), the location may only be changed (or removed) using [account.updateBusinessLocation &raquo;](https://core.telegram.org/method/account.updateBusinessLocation). .
5757
BUTTON_DATA_INVALID The data of one or more of the buttons you provided is invalid.
5858
BUTTON_TEXT_INVALID The specified button text is invalid.
5959
BUTTON_TYPE_INVALID The type of one or more of the buttons you provided is invalid.
@@ -134,6 +134,7 @@ DC_ID_INVALID The provided DC ID is invalid.
134134
DH_G_A_INVALID g_a invalid.
135135
DOCUMENT_INVALID The specified document is invalid.
136136
EDIT_BOT_INVITE_FORBIDDEN Normal users can't edit invites that were created by bots.
137+
EDIT_MESSAGE_TEMP_RESTRICTED Message editing is temporarily forbidden for this user due to regulatory restrictions.
137138
EMAIL_HASH_EXPIRED Email hash expired.
138139
EMAIL_INVALID The specified email is invalid.
139140
EMAIL_NOT_SETUP In order to change the login email with emailVerifyPurposeLoginChange, an existing login email must already be set using emailVerifyPurposeLoginSetup.
@@ -329,9 +330,10 @@ PHOTO_SAVE_FILE_INVALID Internal issues, try again later.
329330
PHOTO_THUMB_URL_EMPTY Photo thumbnail URL is empty.
330331
PINNED_DIALOGS_TOO_MUCH Too many pinned dialogs.
331332
PIN_RESTRICTED You can't pin messages.
332-
PLAYMARKET_PURCHASE_USED The Google account logged in the Play Store has already an ongoing Telegram Premium cycle in progress
333+
PLAYMARKET_PURCHASE_USED The Google account logged in the Play Store has already an ongoing Telegram Premium cycle in progress
333334
POLL_ANSWERS_INVALID Invalid poll answers were provided.
334335
POLL_ANSWER_INVALID One of the poll answers is not acceptable.
336+
POLL_COUNTRY_RESTRICTED Users from the current user's country cannot vote in this [country-restricted poll &raquo;](https://core.telegram.org/api/poll#country-restricted-polls).
335337
POLL_MEMBER_RESTRICTED Only channel subscribers can vote in this poll.
336338
POLL_OPTION_DUPLICATE Duplicate poll options provided.
337339
POLL_OPTION_INVALID Invalid poll option provided.

0 commit comments

Comments
 (0)