vknet / vk

Vkontakte API for .NET
https://vknet.github.io/vk/
MIT License
568 stars 222 forks source link

message_new.action.type chat_screenshot #1585

Closed ivanmem closed 1 year ago

ivanmem commented 1 year ago

В MessageAction отсутствует значение chat_screenshot. Вот пример события:

{
    "group_id": 178353368,
    "type": "message_new",
    "event_id": "0e2c52c8a0152d24dc6580389044b7af9b327692",
    "v": "5.131",
    "object": {
        "message": {
            "date": 1693350107,
            "from_id": 658888055,
            "id": 0,
            "out": 0,
            "action": {
                "type": "chat_screenshot",
                "member_id": 658888055
            },
            "attachments": [],
            "conversation_message_id": 22370,
            "fwd_messages": [],
            "important": false,
            "is_hidden": false,
            "peer_id": 2000004691,
            "random_id": 0,
            "text": ""
        },
        "client_info": {
            "button_actions": [
                "text",
                "vkpay",
                "open_app",
                "location",
                "open_link",
                "callback",
                "intent_subscribe",
                "intent_unsubscribe"
            ],
            "keyboard": true,
            "inline_keyboard": true,
            "carousel": true,
            "lang_id": 0
        }
    }
}

Ловлю такую ошибку:

"Message": "Error converting value \"chat_screenshot\" to type 'VkNet.Enums.StringEnums.MessageAction'. Path 'message.action.type', line 8, position 31.",
inyutin-maxim commented 1 year ago

Добавлено к следующему релизу. Либо можете получить обновление из альфа канала: https://www.myget.org/F/vknet