Skip to content

Commit 914a4ea

Browse files
Automated update of unknown_errors
1 parent 89c5da0 commit 914a4ea

4 files changed

Lines changed: 51 additions & 0 deletions

File tree

compiler/errors/source/400_BAD_REQUEST.tsv

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ 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_TONE_INVALID The specified tone is invalid.
14+
AICOMPOSE_TONE_TITLE_INVALID The specified tone title is invalid.
1315
ALBUM_PHOTOS_TOO_MANY You have uploaded too many profile photos, delete some before retrying.
1416
API_ID_INVALID API ID invalid.
1517
API_ID_PUBLISHED_FLOOD This API id was published somewhere, you can't use it now.
@@ -27,6 +29,7 @@ BALANCE_TOO_LOW The transaction cannot be completed because the current [Telegra
2729
BANK_CARD_NUMBER_INVALID The specified card number is invalid.
2830
BANNED_RIGHTS_INVALID You provided some invalid flags in the banned rights.
2931
BASE_PORT_LOC_INVALID The base port location is invalid
32+
BIRTHDAY_ALREADY The target user already has a birthday set.
3033
BIRTHDAY_INVALID An invalid age was specified, must be between 0 and 150 years.
3134
BOOSTS_EMPTY No boost slots were specified.
3235
BOOSTS_REQUIRED The specified channel must first be [boosted by its users](https://core.telegram.org/api/boost) in order to perform this action.
@@ -41,10 +44,13 @@ BOT_BUSINESS_MISSING The specified bot is not a business bot (the [user](https:/
4144
BOT_CHANNELS_NA Bots can't edit admin privileges.
4245
BOT_COMMAND_DESCRIPTION_INVALID The specified command description is invalid.
4346
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. .
4449
BOT_DOMAIN_INVALID Bot domain invalid.
4550
BOT_FALLBACK_UNSUPPORTED The fallback flag can't be set for bots.
4651
BOT_GAMES_DISABLED Games can't be sent to channels.
4752
BOT_GROUPS_BLOCKED This bot can't be added to groups.
53+
BOT_ID_INVALID The specified bot ID is invalid.
4854
BOT_INLINE_DISABLED This bot can't be used in inline mode.
4955
BOT_INVALID This is not a valid bot.
5056
BOT_INVOICE_INVALID The specified invoice is invalid.
@@ -79,6 +85,7 @@ BUTTON_USER_INVALID The `user_id` passed to inputKeyboardButtonUserProfile is in
7985
BUTTON_USER_PRIVACY_RESTRICTED The privacy setting of the user specified in a [inputKeyboardButtonUserProfile](https://core.telegram.org/constructor/inputKeyboardButtonUserProfile) button do not allow creating such a button.
8086
CALL_ALREADY_ACCEPTED The call was already accepted.
8187
CALL_ALREADY_DECLINED The call was already declined.
88+
CALL_NOT_ACTIVE The specified call is not active.
8289
CALL_OCCUPY_FAILED The call failed because the user is already making another call.
8390
CALL_PEER_INVALID The provided call peer object is invalid.
8491
CALL_PROTOCOL_FLAGS_INVALID Call protocol flags invalid.
@@ -123,11 +130,13 @@ CHAT_REVOKE_DATE_UNSUPPORTED `min_date` and `max_date` are not available for usi
123130
CHAT_SEND_INLINE_FORBIDDEN You can't send inline messages in this group.
124131
CHAT_TITLE_EMPTY No chat title provided.
125132
CHAT_TOO_BIG This method is not available for groups with more than `chat_read_mark_size_threshold` members, [see client configuration »](https://core.telegram.org/api/config#client-configuration).
133+
CHAT_WRITE_FORBIDDEN You can't write in this chat.
126134
CODE_EMPTY The provided code is empty.
127135
CODE_HASH_INVALID Code hash invalid.
128136
CODE_INVALID Code invalid.
129137
COLLECTIBLE_INVALID The specified collectible is invalid.
130138
COLLECTIBLE_NOT_FOUND The specified collectible could not be found.
139+
COLLECTION_ID_INVALID The specified collection ID is invalid.
131140
COLOR_INVALID The specified color palette ID was invalid.
132141
CONNECTION_API_ID_INVALID The provided API id is invalid.
133142
CONNECTION_APP_VERSION_EMPTY App version is empty.
@@ -144,6 +153,7 @@ CONTACT_MISSING The specified user is not a contact.
144153
CONTACT_NAME_EMPTY Contact name empty.
145154
CONTACT_REQ_MISSING Missing contact request.
146155
CREATE_CALL_FAILED An error occurred while creating the call.
156+
CREDENTIAL_INVALID The specified credential is invalid.
147157
CURRENCY_TOTAL_AMOUNT_INVALID The total amount of all prices is invalid.
148158
CUSTOM_REACTIONS_TOO_MANY Too many custom reactions were specified.
149159
DATA_HASH_SIZE_INVALID The size of the specified secureValueErrorData.data_hash is invalid.
@@ -156,6 +166,7 @@ DH_G_A_INVALID g_a invalid.
156166
DOCUMENT_INVALID The specified document is invalid.
157167
EFFECT_ID_INVALID The specified effect ID is invalid.
158168
EMAIL_HASH_EXPIRED Email hash expired.
169+
EMAIL_INSTALL_MISSING Attempting to send a code to the recovery email, but no email is configured.
159170
EMAIL_INVALID The specified email is invalid.
160171
EMAIL_NOT_ALLOWED The specified email cannot be used to complete the operation.
161172
EMAIL_NOT_SETUP In order to change the login email with emailVerifyPurposeLoginChange, an existing login email must already be set using emailVerifyPurposeLoginSetup.
@@ -175,12 +186,15 @@ ENCRYPTION_DECLINED The secret chat was declined.
175186
ENCRYPTION_ID_INVALID The provided secret chat ID is invalid.
176187
ENTITIES_TOO_LONG You provided too many styled message entities.
177188
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.
189+
ENTITY_DATE_FORMAT_INVALID One of the passed messageEntityFormattedDate objects has an invalid format (i.e. an invalid combination of the format flags).
190+
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`).
178191
ENTITY_MENTION_USER_INVALID You mentioned an invalid user.
179192
ERROR_TEXT_EMPTY The provided error message is empty.
180193
EXPIRES_AT_INVALID The specified `expires_at` timestamp is invalid.
181194
EXPIRE_DATE_INVALID The specified expiration date is invalid.
182195
EXPORT_CARD_INVALID Provided card is invalid.
183196
EXTENDED_MEDIA_AMOUNT_INVALID The specified `stars_amount` of the passed [inputMediaPaidMedia](https://core.telegram.org/constructor/inputMediaPaidMedia) is invalid.
197+
EXTENDED_MEDIA_EMPTY The specified extended media is empty.
184198
EXTENDED_MEDIA_INVALID The specified paid media is invalid.
185199
EXTERNAL_URL_INVALID External URL invalid.
186200
FIELD_NAME_EMPTY The field with the name FIELD_NAME is missing
@@ -201,6 +215,7 @@ FILE_PART_X_MISSING Part {value} of the file is missing from storage. Try repeat
201215
FILE_REFERENCE_EMPTY An empty [file reference](https://core.telegram.org/api/file-references) was specified.
202216
FILE_REFERENCE_EXPIRED File reference expired, it must be refetched as described in [the documentation](https://core.telegram.org/api/file-references).
203217
FILE_REFERENCE_INVALID The specified [file reference](https://core.telegram.org/api/file-references) is invalid.
218+
FILE_REFERENCE_X_EMPTY The file reference of the media file at offset {value} in the multi_media array is invalid.
204219
FILE_REFERENCE_X_EXPIRED The file reference of the media file at index {value} in the passed media array expired, it [must be refreshed as specified in the documentation](https://core.telegram.org/api/file-references). .
205220
FILE_REFERENCE_X_INVALID The [file reference](https://core.telegram.org/api/file-references) of the media file at index {value} in the passed media array is invalid.
206221
FILE_TITLE_EMPTY An empty file title was specified.
@@ -265,6 +280,8 @@ INPUT_METHOD_INVALID The specified method is invalid.
265280
INPUT_PEERS_EMPTY The specified peer array is empty.
266281
INPUT_PURPOSE_INVALID The specified payment purpose is invalid.
267282
INPUT_REQUEST_TOO_LONG The request payload is too long.
283+
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.
268285
INPUT_TEXT_EMPTY The specified text is empty.
269286
INPUT_TEXT_TOO_LONG The specified text is too long.
270287
INPUT_USER_DEACTIVATED The specified user was deleted.
@@ -287,8 +304,11 @@ LANG_CODE_NOT_SUPPORTED The specified language code is not supported.
287304
LANG_PACK_INVALID The provided language pack is invalid.
288305
LASTNAME_INVALID The last name is invalid.
289306
LIMIT_INVALID The provided limit is invalid.
307+
LIMIT_PER_POST_INVALID The specified reactions_limit value is invalid.
290308
LINK_NOT_MODIFIED Discussion link not modified.
291309
LOCATION_INVALID The provided location is invalid.
310+
MANAGER_INVALID The specified manager bot is invalid.
311+
MANAGER_PERMISSION_MISSING The specified manager bot does not have the [user](https://core.telegram.org/constructor/user).`bot_can_manage_bots` flag set.
292312
MAX_DATE_INVALID The specified maximum date is invalid.
293313
MAX_ID_INVALID The provided max ID is invalid.
294314
MAX_QTS_INVALID The specified max_qts is invalid.
@@ -315,6 +335,7 @@ MESSAGE_ID_INVALID The provided message id is invalid.
315335
MESSAGE_NOT_MODIFIED The provided message data is identical to the previous message data, the message wasn't modified.
316336
MESSAGE_NOT_READ_YET The specified message wasn't read yet.
317337
MESSAGE_POLL_CLOSED Poll closed.
338+
MESSAGE_REQUIRED A non-empty list of IDs must be passed to `id`.
318339
MESSAGE_TOO_LONG The provided message is too long.
319340
MESSAGE_TOO_OLD The message is too old, the requested information is not available.
320341
METHOD_INVALID The specified method is invalid.
@@ -323,8 +344,10 @@ MONTH_INVALID The number of months specified in inputInvoicePremiumGiftStars.mon
323344
MSG_ID_INVALID Invalid message ID provided.
324345
MSG_TOO_OLD [`chat_read_mark_expire_period` seconds](https://core.telegram.org/api/config#chat-read-mark-expire-period) have passed since the message was sent, read receipts were deleted.
325346
MSG_VOICE_MISSING The specified message is not a voice message.
347+
MSG_VOICE_TOO_LONG The specified voice message is too long to be transcribed.
326348
MSG_WAIT_FAILED A waiting call returned an error.
327349
MULTI_MEDIA_TOO_LONG Too many media files for album.
350+
NAME_INVALID The specified bot name is invalid.
328351
NEW_SALT_INVALID The new salt is invalid.
329352
NEW_SETTINGS_EMPTY No password is set on the current account, and no new password was specified in `new_settings`.
330353
NEW_SETTINGS_INVALID The new password settings are invalid.
@@ -347,6 +370,7 @@ PARTICIPANTS_TOO_FEW Not enough participants.
347370
PARTICIPANT_ID_INVALID The specified participant ID is invalid.
348371
PARTICIPANT_JOIN_MISSING Trying to enable a presentation, when the user hasn't joined the Video Chat with [phone.joinGroupCall](https://core.telegram.org/method/phone.joinGroupCall).
349372
PARTICIPANT_VERSION_OUTDATED The other participant does not use an up to date telegram client with support for calls.
373+
PASSKEY_ORIGIN_MISMATCH Third-party clients currently don't support passkeys even when changing the origin.
350374
PASSWORD_EMPTY The provided password is empty.
351375
PASSWORD_HASH_INVALID The provided password hash is invalid.
352376
PASSWORD_MISSING You must [enable 2FA](https://core.telegram.org/api/srp) before executing this operation.
@@ -392,6 +416,7 @@ PHOTO_THUMB_URL_EMPTY Photo thumbnail URL is empty.
392416
PHOTO_THUMB_URL_INVALID The photo thumb URL is invalid
393417
PINNED_DIALOGS_TOO_MUCH Too many pinned dialogs.
394418
PINNED_TOO_MUCH There are too many pinned topics, unpin some first.
419+
PINNED_TOPIC_NOT_MODIFIED The specified topic is already pinned.
395420
PIN_RESTRICTED You can't pin messages.
396421
PLATFORM_INVALID The provided platform is invalid. Allowed values are "android", "ios", "wp", "bb", "desktop", "web", "ubp", "other".
397422
POLL_ANSWERS_INVALID Invalid poll answers were provided.
@@ -403,11 +428,14 @@ POLL_UNSUPPORTED This layer does not support polls in the invoked method
403428
POLL_VOTE_REQUIRED Cast a vote in the poll before calling this method
404429
PREMIUM_ACCOUNT_REQUIRED A premium account is required to execute this action.
405430
PREMIUM_GIFTCODE_WAS_REFUNDED This gift code can't be redeemed because the giveaway organizer requested a refund
431+
PREMIUM_PURPOSE_INVALID The specified InputStorePaymentPurpose is invalid.
406432
PREMIUM_SUB_ACTIVE_UNTIL_X You already have a premium subscription active until unixtime {value} .
407433
PRICING_CHAT_INVALID The pricing for the [subscription](https://core.telegram.org/api/subscriptions) is invalid, the maximum price is specified in the [`stars_subscription_amount_max` config key »](https://core.telegram.org/api/config#stars-subscription-amount-max).
408434
PRIVACY_KEY_INVALID The privacy key is invalid.
409435
PRIVACY_TOO_LONG Too many privacy rules were specified, the current limit is 1000.
410436
PRIVACY_VALUE_INVALID The specified privacy rule combination is invalid.
437+
PUBLIC_BROADCAST_EXPECTED `channel` only accepts a channel, but a supergroup was passed.
438+
PUBLIC_KEY_INVALID The specified e2e public key is invalid.
411439
PUBLIC_KEY_REQUIRED A public key is required.
412440
PURPOSE_INVALID The specified payment purpose is invalid.
413441
QUERY_ID_EMPTY The query ID is empty.
@@ -442,7 +470,10 @@ REPLY_MESSAGE_ID_INVALID The specified reply-to message ID is invalid.
442470
REPLY_TO_INVALID The specified `reply_to` field is invalid.
443471
REPLY_TO_MONOFORUM_PEER_INVALID The specified inputReplyToMonoForum.monoforum_peer_id is invalid.
444472
REPLY_TO_USER_INVALID The replied-to user is invalid.
473+
REQUEST_MSG_EXPIRED The request specified in request_msg_id has already expired.
445474
REQUEST_TOKEN_INVALID The master DC did not accept the `request_token` from the CDN DC. Continue downloading the file from the master DC using upload.getFile.
475+
RESELL_STARS_TOO_FEW The offered price is too low.
476+
RESELL_STARS_TOO_MUCH The offered price is too high.
446477
RESET_REQUEST_MISSING No password reset is in progress.
447478
RESULTS_TOO_MUCH Too many results were provided.
448479
RESULT_ID_DUPLICATE You provided a duplicate result ID.
@@ -490,11 +521,19 @@ SRP_PASSWORD_CHANGED Password has changed.
490521
STARGIFT_ALREADY_CONVERTED The specified star gift was already converted to Stars.
491522
STARGIFT_ALREADY_REFUNDED The specified star gift was already refunded.
492523
STARGIFT_ALREADY_UPGRADED The specified gift was already upgraded to a collectible gift.
524+
STARGIFT_ATTRIBUTE_INVALID One of the specified star gift attributes is invalid.
493525
STARGIFT_INVALID The passed gift is invalid.
526+
STARGIFT_MESSAGE_INVALID The specified inputInvoiceStarGift.message is invalid.
494527
STARGIFT_NOT_FOUND The specified gift was not found.
528+
STARGIFT_NOT_OWNER You're not the owner of the gift you trying to transfer.
529+
STARGIFT_NOT_UNIQUE You can't transfer a non-collectible gift.
530+
STARGIFT_OBJECT_INVALID The specified star gift object is invalid.
531+
STARGIFT_OFFER_INVALID The specified offer amount is invalid.
532+
STARGIFT_OFFER_NOT_ALLOWED You can't send a purchase offer for this gift.
495533
STARGIFT_OWNER_INVALID You cannot transfer or sell a gift owned by another user.
496534
STARGIFT_PEER_INVALID The specified inputSavedStarGiftChat.peer is invalid.
497535
STARGIFT_RESELL_CURRENCY_NOT_ALLOWED You can't buy the gift using the specified currency (i.e. trying to pay in Stars for TON gifts).
536+
STARGIFT_RESELL_TOO_EARLY_X You will be able to resell this gift in {value} seconds.
498537
STARGIFT_SLUG_INVALID The specified gift slug is invalid.
499538
STARGIFT_TRANSFER_TOO_EARLY_X You cannot transfer this gift yet, wait {value} seconds.
500539
STARGIFT_UPGRADE_UNAVAILABLE A received gift can only be upgraded to a collectible gift if the [messageActionStarGift](https://core.telegram.org/constructor/messageActionStarGift)/[savedStarGift](https://core.telegram.org/constructor/savedStarGift).`can_upgrade` flag is set.
@@ -536,6 +575,7 @@ STORIES_NEVER_CREATED This peer hasn't ever posted any stories.
536575
STORIES_TOO_MUCH You have hit the maximum active stories limit as specified by the [`story_expiring_limit_*` client configuration parameters](https://core.telegram.org/api/config#story-expiring-limit-default): you should buy a [Premium](https://core.telegram.org/api/premium) subscription, delete an active story, or wait for the oldest story to expire.
537576
STORY_ID_EMPTY You specified no story IDs.
538577
STORY_ID_INVALID The specified story ID is invalid.
578+
STORY_LIVE_ALREADY_X This peer already has an active live story, and its ID is equal to {value}.
539579
STORY_NOT_MODIFIED The new story information you passed is equal to the previous story information, thus it wasn't modified.
540580
STORY_PERIOD_INVALID The specified story period is invalid for this account.
541581
STORY_SEND_FLOOD_MONTHLY_X You've hit the monthly story limit as specified by the [`stories_sent_monthly_limit_*` client configuration parameters](https://core.telegram.org/api/config#stories-sent-monthly-limit-default): wait {value} seconds before posting a new story.
@@ -566,6 +606,7 @@ TITLE_INVALID The specified stickerpack title is invalid.
566606
TMP_PASSWORD_DISABLED The temporary password is disabled.
567607
TMP_PASSWORD_INVALID The passed tmp_password is invalid.
568608
TODO_ITEMS_EMPTY A checklist was specified, but no [checklist items](https://core.telegram.org/api/todo) were passed.
609+
TODO_ITEMS_TOO_MUCH You specified too many todo list items.
569610
TODO_ITEM_DUPLICATE Duplicate [checklist items](https://core.telegram.org/api/todo) detected.
570611
TODO_NOT_MODIFIED No todo items were specified, so no changes were made to the todo list.
571612
TOKEN_EMPTY The specified token is empty.
@@ -591,6 +632,7 @@ TYPES_EMPTY No top peer type was provided.
591632
TYPE_CONSTRUCTOR_INVALID The type constructor is invalid
592633
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.
593634
UNTIL_DATE_INVALID Invalid until date provided.
635+
URL_EXPIRED The specified OAuth request has expired.
594636
URL_INVALID Invalid URL provided.
595637
USAGE_LIMIT_INVALID The specified usage limit is invalid.
596638
USERNAMES_ACTIVE_TOO_MUCH The maximum number of active usernames was reached.
@@ -599,6 +641,7 @@ USERNAME_NOT_MODIFIED The username was not modified.
599641
USERNAME_NOT_OCCUPIED The provided username is not occupied.
600642
USERNAME_OCCUPIED The provided username is already occupied.
601643
USERNAME_PURCHASE_AVAILABLE The specified username can be purchased on https://fragment.com.
644+
USERNAME_SUFFIX_MISSING The required `bot` suffix is missing from the passed username.
602645
USERPIC_UPLOAD_REQUIRED You must have a profile picture to publish your geolocation.
603646
USERS_TOO_FEW Not enough users (to create a chat, for example).
604647
USERS_TOO_MUCH The maximum number of users has been exceeded (to create a chat, for example).
@@ -624,6 +667,7 @@ USER_PUBLIC_MISSING Cannot generate a link to stories posted by a peer without a
624667
USER_VOLUME_INVALID The specified user volume is invalid.
625668
VENUE_ID_INVALID The specified venue ID is invalid.
626669
VIDEO_CONTENT_TYPE_INVALID The video's content type is invalid.
670+
VIDEO_DURATION_INVALID The duration of the specified video is invalid.
627671
VIDEO_FILE_INVALID The specified video file is invalid.
628672
VIDEO_PAUSE_FORBIDDEN You cannot pause the video stream.
629673
VIDEO_STOP_FORBIDDEN You cannot stop the video stream.
@@ -635,6 +679,8 @@ WALLPAPER_INVALID The specified wallpaper is invalid.
635679
WALLPAPER_MIME_INVALID The specified wallpaper MIME type is invalid.
636680
WALLPAPER_NOT_FOUND The specified wallpaper could not be found.
637681
WC_CONVERT_URL_INVALID WC convert URL invalid.
682+
WEBAPP_REQ_ID_INVALID The specified webapp_req_id is invalid.
683+
WEBAUTH_TOKEN_EXPIRED The specified auth token has expired.
638684
WEBDOCUMENT_INVALID Invalid webdocument URL provided.
639685
WEBDOCUMENT_MIME_INVALID Invalid webdocument mime type provided.
640686
WEBDOCUMENT_SIZE_TOO_BIG Webdocument is too big!

0 commit comments

Comments
 (0)