package
1.10.0
Repository: https://github.com/severecloud/vksdk.git
Documentation: pkg.go.dev

# Functions

AddErrorContext adds a context to an error.
Cause gives the original error.
GetErrorContext returns the error context.
GetType returns the error type.
New creates a no type error.

# Constants

Access denied Make sure that you use correct identifiers and the content is available for the user in the full version of the site.
Access to album denied Make sure you use correct ids (owner_id is always positive for users, negative for communities) and the current user has access to the requested content in the full version of the site.
Access to audio denied Make sure you use correct ids (owner_id is always positive for users, negative for communities) and the current user has access to the requested content in the full version of the site.
Access to comment denied.
Access to group denied Make sure that the current user is a member or admin of the community (for closed and private groups and events).
Access to the groups list is denied due to the user's privacy settings.
Access denied.
Access to the menu of the user denied.
Access to note denied.
You can't comment this note.
Access to page denied.
Access denied.
Unable to process action.
Object deleted.
Some part of the request has not been completed.
Permission denied.
Some ads error occurred.
This album is full You need to delete the odd objects from the album or use another album.
Albums number limit is reached.
Can't set AliExpress tag to this type of object.
Application authorization failed.
This achievement is already unlocked.
Subscription is in invalid status.
Subscription not found.
Assert votes.
User authorization failed Make sure that you use a correct authorization type.
Processing.
Too many auth attempts, try again later.
HTTP authorization failed To avoid this error check if a user has the 'Use secure connection' option enabled with the account.getInfo method.
Validation required Make sure that you don't use a token received with http://vk.com/dev/auth_mobile for a request from the server.
Content blocked.
Servers number limit is reached.
Captcha needed See https://vk.com/dev/captcha_error.
Catalog is not available for this user.
Catalog categories are not available for this user.
Unable to compile code.
Application is disabled.
Donut is disabled.
Email confirmation needed.
In test mode application should be disabled or user should be authorized Switch the app off in Settings: https://vk.com/editapp?id={Your API_ID}.
Flood control You need to decrease the count of identical requests.
Cannot add this user to friends as you put him on blacklist.
Cannot add this user to friends as they have put you on their blacklist.
Cannot add this user to friends as user not found.
Cannot add user himself as friend.
Invalid list id.
Reached the maximum number of lists.
"Application is not installed in community.
Group authorization failed.
Cannot edit creator role.
User needs to enable 2FA for this action.
Invite link is invalid - expired, deleted or not exists.
You need to enable 2FA for this action.
User should be in club.
Too many addresses in club.
Too many officers in club.
Application has insufficient funds.
Invalid screen name.
Out of limits.
Album not found.
Cart is empty.
Comments for this market are closed.
Item already added to album.
Item has bad links in description.
Item not found.
Too late for restore.
Shop not enabled.
Too many albums.
Too many items.
Too many items in album.
You can't change invite link for this chat.
Can't delete this message for everybody.
Can't forward these messages.
You can't see invite link for this chat.
Cannot use this intent.
This is a chat bot feature, change this status in settings.
Chat was disabled.
You are not admin of this chat.
Chat does not exist.
Chat not support.
You don't have access to this chat.
User not found in chat.
Contact not found.
Can't send messages for users without permission.
Can't edit this message, because it's too old.
Can't edit this kind of message.
Can't edit pinned message yet.
Your community can't interact with this peer.
Keyboard format is invalid.
Limits overflow for this intent.
Can't add user to chat, because user has no access to group.
Message request already send.
Can't send messages to this user due to their privacy settings.
Can't sent this message, because it's too big.
Too many forwarded messages.
Message is too long.
Too many posts in messages.
Value of ts or pts is too new.
Value of ts or pts is too old.
Can't send messages for users from blacklist.
Unknown method passed Check the method name: http://vk.com/dev/methods.
Permission to perform this action is allowed only for standalone and OpenAPI applications.
This method was disabled All the methods available now are listed here: http://vk.com/dev/methods.
Permission to perform this action is denied for non-standalone applications If you see this error despite your app has the Standalone type, make sure that you use redirect_uri=https://oauth.vk.com/blank.html.
The mobile number of the user is unknown.
Confirmation required In some cases VK requires to request action confirmation from the user (for Standalone apps only).
Token confirmation required.
Not enough money on owner's balance.
Not found.
NoType error.
Otp app validation needed.
One of the parameters specified was missing or invalid Check the required parameters list and their format on a method description page.
Invalid album id.
Invalid application API ID Find the app in the administrated list in settings: http://vk.com/apps?act=settings And set the correct API_ID in the request.
Access to document is denied.
Access to document deleting is denied.
Invalid document id.
Invalid document title.
Invalid group id.
Invalid hash.
Note not found.
Page not found.
Invalid phone number.
Invalid photo.
Invalid photos.
Invalid server.
Invalid timestamp You may get a correct value with the utils.getServerTime method.
Invalid title.
Invalid user id Make sure that you use a correct id.
Password validation needed.
Permission to perform this action is denied Make sure that your have received required permissions during the authorization.
This phone number is used by another user.
Phone validation needed.
Original photo was changed.
Access to poll denied.
Access denied, please vote first.
Invalid answer id.
Invalid poll id.
Card is connected to post.
Card not found.
Too many cards.
This profile is private.
Rate limit reached More details on rate limits here: https://vk.com/dev/data_limits.
Recaptcha needed.
Invalid request Check the request syntax and used parameters list (it can be found on a method description page).
Runtime error occurred during code invocation.
Couldn't save file.
Internal server error Try again later.
Service is deactivated for user.
Incorrect signature.
User disabled track name broadcast.
Story has already expired.
Incorrect reply privacy.
Token extension required.
Too many requests per second Decrease the request frequency or use the execute method.
Too many feed lists.
Unknown error occurred Try again later.
Upload error.
User is deactivated.
User was deleted or banned.
This video is already added.
Comments for this video are closed.
Not enough votes.
Permission denied.
Access to status replies denied.
Access to wall's comment denied.
Access to wall's post denied.
Access to post comments denied.
Access to adding post denied.
Too many ads posts.
Advertisement post was recently added.
Hyperlinks are forbidden.
Too many replies.
Too many recipients.
Permission denied.

# Type aliases

ErrorType is the type of an error.