M
M
mrsakura522021-11-13 19:54:44
In contact with
mrsakura52, 2021-11-13 19:54:44

The wall in VK does not work. What to do?

There is a listener for the like event on the wall:

vk.updates.on('like_add', async function(like) {
    await vk.api.messages.send({
        message: 'Спасибо за лайк!',
        peer_id: like.liker_id,
        random_id: dateUTC
    })
})

Everything this piece of code refers to is present, I use vk-io and the API from vk-io. When like, nothing happens, and the function is not even touched (checked). I read the documentation, but for some reason it doesn't work. I repeat, the token, the dialogue, the permissions in the wall group are all there. vk.updates.on('message') works.

VK-IO version - 4.4.0

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mrsakura52, 2021-11-14
@mrsakura52

I think that I'm importing something incorrectly... What's the right way? The like_add event itself doesn't work...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question