You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ADMIN_RANK_INVALID The specified admin rank is invalid.
11
11
ADMIN_RIGHTS_EMPTY The chatAdminRights constructor passed in keyboardButtonRequestPeer.peer_type.user_admin_rights has no rights set (i.e. flags is 0).
12
12
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!
13
14
AICOMPOSE_TONE_INVALID The specified tone is invalid.
14
15
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.
15
17
ALBUM_PHOTOS_TOO_MANY You have uploaded too many profile photos, delete some before retrying.
16
18
API_ID_INVALID API ID invalid.
17
19
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:/
44
46
BOT_CHANNELS_NA Bots can't edit admin privileges.
45
47
BOT_COMMAND_DESCRIPTION_INVALID The specified command description is invalid.
46
48
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.
49
50
BOT_DOMAIN_INVALID Bot domain invalid.
50
51
BOT_FALLBACK_UNSUPPORTED The fallback flag can't be set for bots.
51
52
BOT_GAMES_DISABLED Games can't be sent to channels.
@@ -164,6 +165,7 @@ DATE_EMPTY Date empty.
164
165
DC_ID_INVALID The provided DC ID is invalid.
165
166
DH_G_A_INVALID g_a invalid.
166
167
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.
167
169
EFFECT_ID_INVALID The specified effect ID is invalid.
168
170
EMAIL_HASH_EXPIRED Email hash expired.
169
171
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.
188
190
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
191
ENTITY_DATE_FORMAT_INVALID One of the passed messageEntityFormattedDate objects has an invalid format (i.e. an invalid combination of the format flags).
190
192
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. .
191
194
ENTITY_MENTION_USER_INVALID You mentioned an invalid user.
192
195
ERROR_TEXT_EMPTY The provided error message is empty.
193
196
EXPIRES_AT_INVALID The specified `expires_at` timestamp is invalid.
@@ -196,6 +199,7 @@ EXPORT_CARD_INVALID Provided card is invalid.
196
199
EXTENDED_MEDIA_AMOUNT_INVALID The specified `stars_amount` of the passed [inputMediaPaidMedia](https://core.telegram.org/constructor/inputMediaPaidMedia) is invalid.
197
200
EXTENDED_MEDIA_EMPTY The specified extended media is empty.
198
201
EXTENDED_MEDIA_INVALID The specified paid media is invalid.
202
+
EXTENDED_MEDIA_PEER_INVALID Paid media is not allowed for the target peer.
199
203
EXTERNAL_URL_INVALID External URL invalid.
200
204
FIELD_NAME_EMPTY The field with the name FIELD_NAME is missing
201
205
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.
229
233
FOLDER_ID_INVALID Invalid folder ID.
230
234
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`.
231
235
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. .
233
237
FORM_UNSUPPORTED Please update your client.
234
238
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.
235
239
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.
249
253
GRAPH_INVALID_RELOAD Invalid graph token provided, please reload the stats and provide the updated token.
250
254
GRAPH_OUTDATED_RELOAD The graph is outdated, please get a new async token using stats.getBroadcastStats.
251
255
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.
253
257
GROUPCALL_INVALID The specified group call is invalid.
254
258
GROUPCALL_JOIN_MISSING You haven't joined this group call.
255
259
GROUPCALL_NOT_MODIFIED Group call settings weren't modified.
@@ -281,7 +285,7 @@ INPUT_PEERS_EMPTY The specified peer array is empty.
281
285
INPUT_PURPOSE_INVALID The specified payment purpose is invalid.
282
286
INPUT_REQUEST_TOO_LONG The request payload is too long.
283
287
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_INVALIDThe 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.
285
289
INPUT_TEXT_EMPTY The specified text is empty.
286
290
INPUT_TEXT_TOO_LONG The specified text is too long.
287
291
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.
348
352
MSG_WAIT_FAILED A waiting call returned an error.
349
353
MULTI_MEDIA_TOO_LONG Too many media files for album.
350
354
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.
351
356
NEW_SALT_INVALID The new salt is invalid.
352
357
NEW_SETTINGS_EMPTY No password is set on the current account, and no new password was specified in `new_settings`.
353
358
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
450
455
QUIZ_MULTIPLE_INVALID Quizzes can't have the multiple_choice flag set!
451
456
QUOTE_TEXT_INVALID The specified `reply_to`.`quote_text` field is invalid.
452
457
RAISE_HAND_FORBIDDEN You cannot raise your hand.
458
+
RANDOM_ID_DUPLICATE You provided a random ID that was already used.
453
459
RANDOM_ID_EMPTY Random ID empty.
454
460
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).
455
461
RANDOM_ID_INVALID A provided random ID is invalid.
@@ -594,6 +600,7 @@ TASK_ALREADY_EXISTS An email reset was already requested.
594
600
TEMP_AUTH_KEY_ALREADY_BOUND The passed temporary key is already bound to another **perm_auth_key_id**.
595
601
TEMP_AUTH_KEY_EMPTY No temporary auth key provided.
596
602
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.
597
604
THEME_FILE_INVALID Invalid theme file provided.
598
605
THEME_FORMAT_INVALID Invalid theme format provided.
599
606
THEME_INVALID Invalid theme provided.
@@ -630,7 +637,6 @@ TTL_MEDIA_INVALID Invalid media Time To Live was provided.
630
637
TTL_PERIOD_INVALID The specified TTL period is invalid.
631
638
TYPES_EMPTY No top peer type was provided.
632
639
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` »](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. .
634
640
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.
635
641
UNTIL_DATE_INVALID Invalid until date provided.
636
642
URL_EXPIRED The specified OAuth request has expired.
@@ -654,6 +660,7 @@ USER_BLOCKED User blocked.
654
660
USER_BOT Bots can only be admins in channels.
655
661
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.
656
662
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.
657
664
USER_CHANNELS_TOO_MUCH One of the users you tried to add is already in too many channels/supergroups.
658
665
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.
659
666
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).
Copy file name to clipboardExpand all lines: compiler/errors/source/403_FORBIDDEN.tsv
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
idmessage
2
2
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.
3
3
ABOUT_TOO_LONG About string too long.
4
+
ACCESS_DENIED The account was deactivated, or is a bot/service account.
4
5
ACCESS_TOKEN_EXPIRED Access token expired.
5
6
ACCESS_TOKEN_INVALID Access token invalid.
6
7
ADDRESS_INVALID The specified geopoint address is invalid.
@@ -40,6 +41,7 @@ BOT_COMMAND_INVALID The specified command is invalid.
40
41
BOT_DOMAIN_INVALID Bot domain invalid.
41
42
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.
42
43
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. .
43
45
BOT_INLINE_DISABLED This bot can't be used in inline mode.
44
46
BOT_INVALID This is not a valid bot.
45
47
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
198
200
GROUPCALL_ALREADY_DISCARDED The group call was already discarded.
199
201
GROUPCALL_ALREADY_STARTED The groupcall has already started, you can join directly using [phone.joinGroupCall](https://core.telegram.org/method/phone.joinGroupCall).
200
202
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.
202
204
GROUPCALL_INVALID The specified group call is invalid.
203
205
GROUPCALL_JOIN_MISSING You haven't joined this group call.
204
206
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.
481
483
USER_CHANNELS_TOO_MUCH One of the users you tried to add is already in too many channels/supergroups.
482
484
USER_CREATOR You can't leave this channel, because you're its creator.
483
485
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.
ADMIN_RANK_INVALID The specified admin rank is invalid.
11
11
ADMIN_RIGHTS_EMPTY The chatAdminRights constructor passed in keyboardButtonRequestPeer.peer_type.user_admin_rights has no rights set (i.e. flags is 0).
12
12
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 »](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 »](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. .
14
14
ANONYMOUS_REACTIONS_DISABLED Sorry, anonymous administrators cannot leave reactions or participate in polls.
15
15
API_GIFT_RESTRICTED_UPDATE_APP Please update the app to access the gift API.
16
16
API_ID_INVALID API ID invalid.
@@ -53,7 +53,7 @@ BROADCAST_FORBIDDEN Channel poll voters and reactions cannot be fetched to preve
53
53
BROADCAST_ID_INVALID Broadcast ID invalid.
54
54
BROADCAST_PUBLIC_VOTERS_FORBIDDEN You can't forward polls with public voters.
55
55
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 »](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 »](https://core.telegram.org/method/account.updateBusinessLocation). .
57
57
BUTTON_DATA_INVALID The data of one or more of the buttons you provided is invalid.
58
58
BUTTON_TEXT_INVALID The specified button text is invalid.
59
59
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.
134
134
DH_G_A_INVALID g_a invalid.
135
135
DOCUMENT_INVALID The specified document is invalid.
136
136
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.
137
138
EMAIL_HASH_EXPIRED Email hash expired.
138
139
EMAIL_INVALID The specified email is invalid.
139
140
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.
329
330
PHOTO_THUMB_URL_EMPTY Photo thumbnail URL is empty.
330
331
PINNED_DIALOGS_TOO_MUCH Too many pinned dialogs.
331
332
PIN_RESTRICTED You can't pin messages.
332
-
PLAYMARKET_PURCHASE_USEDThe 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
333
334
POLL_ANSWERS_INVALID Invalid poll answers were provided.
334
335
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 »](https://core.telegram.org/api/poll#country-restricted-polls).
335
337
POLL_MEMBER_RESTRICTED Only channel subscribers can vote in this poll.
0 commit comments