The translation was generated automatically and may contain mistakes

Posts Tagged ?2?deprecated version’

On December 1, 2024, we disabled the use of older versions of API, so we recommend switching to the current version 5.199 . If you don’t, the apps and chatbots added to the community may not work properly.

VKontakte sends this message in a response to your server when it detects that the server is expecting an outdated version of API.

JSON
{ "group_id": 12345, "type": "wall_post_new", "event_id": "bcac94ca00d2f069fb6badb4cf0441dac637dcfc", "v": "5.80", "object": { "warning": "You are using a deprecated API version. It will be disabled soon. Read more here: https://dev.vk.com/api/deprecated-version-message" } }

Pay attention! Starting with version 5.101 The event message_new Change the format: instead of { object: message } will come { object: { message, client_info } } . Take this into account when switching to the current version.

Callback API

On how to change the version of API, read in instructions .

If you do not have access to the community, you can change the API version BY sending a message in response to the notification of any event version 5.199 . Instead of 5.199, you can specify another current version.

LongPoll API

To change the API VERSION, use the method groups.setLongPollSettings . Specify the desired version of API in the parameter api_version .

Materials on the topic