Y
Y
yura112122019-08-02 15:55:49
In contact with
yura11212, 2019-08-02 15:55:49

How to make the bot react to messages in a conversation?

I'm trying to get a bot written in Node.js to respond to commands in conversations. For example, someone wrote "the chance that ...", and he will answer.
I use vk-io 3.2.0, I need to make it so that when I write a message in a conversation, longpoll reacts to it. When I write , only those messages that I write to the bot in the LAN are determined, and not in a general conversation. Maybe there is some kind of event that determines the messages in the conversation? vk.longpoll.on('message', (message) => {}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stockholm Syndrome, 2019-08-02
@yura11212

in a conversation, the bot must have full access to the correspondence

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question