Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0.8 версия SDK НЕ поддерживает VK API version 5.126. #215

Closed
alekseybeliyb opened this issue Dec 29, 2020 · 1 comment · May be fixed by #226
Closed

1.0.8 версия SDK НЕ поддерживает VK API version 5.126. #215

alekseybeliyb opened this issue Dec 29, 2020 · 1 comment · May be fixed by #226
Labels
schema Need to fix in VKCOM/vk-api-schema
Milestone

Comments

@alekseybeliyb
Copy link

126 версия API на событие "Входящее сообщение" отправляет следующий json:

{
    "type": "message_new",
    "object": {
        "message": {
            "date": 1609201902,
            "from_id": 1,
            "id": 5944,
            "out": 0,
            "peer_id": 1,
            "text": "Сообщение",
            "conversation_message_id": 5578,
            "fwd_messages": [],
            "important": false,
            "random_id": 0,
            "attachments": [],
            "is_hidden": false
        },
        "client_info": {
            "button_actions": [
                "text",
                "vkpay",
                "open_app",
                "location",
                "open_link",
                "intent_subscribe",
                "intent_unsubscribe"
            ],
            "keyboard": true,
            "inline_keyboard": true,
            "carousel": false,
            "lang_id": 0
        }
    },
    "group_id": 11,
    "event_id": "1",
    "secret": "11"
}

а CallbackApi на событие "message_new" отдаёт объект Message, в котором нет объектов "message" или "client_info".
Изменения в "message_new" произошли в версии 5.103.
image

Таким образом, последняя поддерживаемая версия API - 5.102

@aotd1 aotd1 added the schema Need to fix in VKCOM/vk-api-schema label Apr 21, 2021
@aotd1 aotd1 added this to the 1.0.9 milestone Apr 21, 2021
@aotd1
Copy link
Contributor

aotd1 commented Apr 21, 2021

Fixed in 1.0.9, please check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
schema Need to fix in VKCOM/vk-api-schema
Projects
None yet
2 participants