Answer the question
In order to leave comments, you need to log in
How to check for a new message in a community using vk-io?
There is this code written with vk-io :
const vk = new VK({
token: 'TOKEN',
})
vk.updates.on('message_new', (context) => {
console.log(context)
})
vk.updates.start().catch(console.error)
Answer the question
In order to leave comments, you need to log in
const vk = new VK({
token: 'TOKEN',
})
vk.updates.on('new_message', (context) => {
console.log(context)
})
vk.updates.start().catch(console.error)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question