O
O
ojiekcahdp2021-03-13 22:49:40
JavaScript
ojiekcahdp, 2021-03-13 22:49:40

Why can't vk-io see private messages?

In general, I use vk-io,

const { VK } = require('vk-io');
const vk = new VK({
  token: 'токен'
});
vk.updates.hear(/^(?:!test)/iu, async msg => {
console.log(msg)
})

Defines a message only when it was written in a conversation, if it is in private messages, it does not.
How can this be fixed?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question