К содержимому

Начало

Ошибки

Все машинные коды ошибок Min API.

Каждая ошибка содержит code. Список ниже собирается из серверного каталога (lang/en/errors.php) и всегда совпадает с продом. HTTP-статусы описаны в обзоре.

КодСообщение (en)
common.forbiddenForbidden
common.unauthenticatedUnauthenticated
common.not_foundNot found
common.server_errorServer error
common.throttledToo many requests. Try again later.
common.csrfSession expired. Refresh the page and try again.
common.insufficient_permissionsInsufficient permissions
auth.invalid_credentialsInvalid email or password
auth.too_many_attemptsToo many failed attempts. Try again later.
auth.sms_rate_limitedToo many SMS codes. Try again later.
auth.email_rate_limitedToo many email codes. Try again later.
auth.code_invalidInvalid confirmation code.
auth.code_expiredConfirmation code expired. Request a new one.
auth.ticket_invalidSign-in session expired. Start again.
auth.no_active_clientNo active Min session to send the code to.
auth.code_unavailable_in_regionCode login is not available in your region.
auth.identifier_invalidEnter a valid phone number or email.
bannedAccount is banned
auth.invite_invalidInvite code is invalid or already used
auth.invite_requiredRegistration requires an invite code
auth.registration_forbiddenRegistration is not allowed from this IP
auth.registration_ip_limitThe maximum number of accounts from this IP has been reached
auth.oauth_expiredSign-in link expired. Try again.
auth.logged_outLogged out.
validation.failedThe given data was invalid.
password.reset_sentIf an account exists, we sent a password reset email.
password.reset_successPassword changed. Sign in with your new password.
password.reset_invalidPassword reset link is invalid or expired.
password.reset_failedCould not reset password. Request a new link.
password.wrong_currentCurrent password is incorrect.
password.changedPassword changed. All other sessions were signed out.
user.not_foundUser not found
user.unavailableUser is unavailable
privacy.restrictedThis user limits who can do that.
user.wrong_passwordIncorrect password.
user.delete_confirm_invalidType DELETE to confirm.
user.delete_failedCould not delete the account. Try again or contact us.
user.deletedAccount and related data were deleted.
user.avatar_invalidInvalid image file.
user.avatar_too_largeImage is too large. Maximum size: 4000x4000 pixels.
user.avatar_process_failedFailed to process the image.
conversation.channel_not_foundChannel not found
conversation.not_memberForbidden
conversation.bannedYou are banned in this channel
conversation.private_not_editablePrivate chats cannot be edited
conversation.cannot_dm_selfCannot create a chat with yourself
conversation.no_users_to_addNo available users to add
conversation.already_memberUser is already in the conversation
conversation.cannot_remove_ownerCannot remove the owner
conversation.owner_must_transferTransfer ownership or delete the channel first
conversation.new_owner_must_be_memberThe new owner must be a member
conversation.members_groups_channels_onlyMembers can only be added to groups and channels
conversation.remove_members_groups_channels_onlyMembers can only be removed from groups and channels
conversation.subscribe_channels_onlyYou can only subscribe to channels
conversation.preview_channels_onlyPreview is only available for channels
conversation.cannot_pinThis message cannot be pinned
conversation.pin_limitYou can pin at most 5 messages
conversation.search_query_requiredProvide a query or a filter
conversation.search_query_lengthQuery must be 2 to 100 characters
conversation.search_invalid_typeInvalid type
conversation.search_invalid_fromInvalid from date
conversation.search_invalid_toInvalid to date
conversation.search_invalid_chatInvalid chat filter
conversation.search_invalid_authorInvalid author filter
conversation.invite_groups_channels_onlyInvite links are only available for groups and channels
conversation.invite_already_memberYou are already a member of this chat
conversation.invite_not_foundLink not found
conversation.invite_invalidLink is invalid
conversation.username_invalidUsername: 5–32 characters, start with a letter, only a-z, 0-9 and _.
conversation.username_unavailableThis username is not available.
conversation.username_takenThis username is taken.
conversation.username_reservedThis username is temporarily reserved.
conversation.username_change_cooldownUsername can be changed at most once every 14 days.
bot.username_suffixBot usernames must end with "bot".
bot.limit_reachedBot limit reached for this account.
bot.not_foundBot not found.
bot.forbiddenYou do not own this bot.
conversation.mute_xorProvide duration or until, not both.
conversation.mute_invalid_dateInvalid date.
conversation.mute_date_rangeDate must be in the future and within one year.
conversation.mute_invalid_durationAllowed: 1h, 8h, forever.
message.emptyMessage cannot be empty
message.sticker_mixedA sticker cannot be mixed with files or a forward
message.client_id_usedclient_id already used
message.channel_write_forbiddenOnly the owner and admins can post in the channel
message.sticker_unavailableThis emoji cannot be sent as a sticker
message.cannot_forwardMessage cannot be forwarded
user.blockedThis user is blocked
message.emoji_unavailableEmoji is unavailable
message.readers_groups_onlyRead receipts are only available in groups
message.cannot_editNo permission to edit
message.cannot_deleteNo permission to delete
message.attachment_incompleteFile upload was incomplete. Check your connection and try again.
message.attachment_unreadableCould not read the file. Try selecting it again.
message.attachment_too_largeFile is too large. Maximum size: 500 MB.
message.attachment_too_manyYou can send at most 10 files at once.
message.attachment_forbidden_typeThis file type is not allowed.
message.attachment_unsupportedUnsupported file type.
message.attachment_invalid_nameInvalid file name.
message.attachment_invalid_imageFile is not a valid image.
message.attachment_mime_mismatchFile MIME type does not match its contents.
message.attachment_image_too_largeImage is too large. Maximum size: 8000x8000 pixels.
message.attachment_image_failedFailed to process the image.
message.attachment_audio_failedFailed to process the audio.
message.attachment_video_failedFailed to process the video.
message.attachment_failedFailed to process the attachment.
message.attachment_serverThe server could not accept the file. Try again later.
call.unavailableCalls are temporarily unavailable
call.not_in_channelCalls are not available in channels
call.none_activeNo active call
call.already_activeA call is already in progress in this conversation
call.start_failedCould not start the call. Try again.
call.conflictCould not update the call. Try again.
invite.limit_reachedActive invite limit reached (:max).
invite.forbiddenForbidden
emoji.set_not_foundSet not found
emoji.set_limitYou can create at most 10 sets
emoji.emoji_limitA set can have at most 50 emojis
emoji.shortcode_takenThis shortcode already exists in the set
emoji.not_in_setEmoji is not in this set
emoji.set_emptyAn empty set cannot be installed
emoji.install_limitYou can install at most 30 sets created by others
emoji.title_invalidInvalid title.
emoji.shortcode_invalidInvalid shortcode.
emoji.image_unreadableCould not read the image.
emoji.image_typeAllowed: jpeg, png, webp, gif.
emoji.image_sizeMaximum 128×128.
video.invalid_urlInvalid link
video.download_failedDownload failed
webhook.livekit_unconfiguredLiveKit is not configured
webhook.invalid_signatureInvalid webhook signature
webhook.invalid_bodyInvalid body
client.unknown_platformUnknown platform. Expected: :platforms
auth.qr_invalidThis QR code has expired or was already used. Refresh it and scan again.
reminder.time_invalidPick a reminder time at least a minute ahead and within a year.
reminder.limitToo many pending reminders.