Answer the question
In order to leave comments, you need to log in
Why is node-vk-bot-api not working in conversation?
Hello. I am just starting my acquaintance with VK bots. Found *this lib*
const VkBot = require('node-vk-bot-api');
const bot = new VkBot('TOKEN');
bot.command('/start', (ctx) => {
ctx.reply('Hello!');
});
bot.startPolling();
Answer the question
In order to leave comments, you need to log in
I know I'm answering an old question, but still.
It didn't work for me either until I enabled "Event Types".
Community settings → Settings → Working with API → Long Poll API.
There are 2 sections: Settings and Event Types.
in the "Types of events" in the "Messages" section, turn on the necessary checkboxes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question