P
P
perSeR2021-01-10 16:24:09
In contact with
perSeR, 2021-01-10 16:24:09

How to make the VK bot reply to a message (reply)?

I’m creating my own bot, I made it answer “hello” messages, but I want it to answer with an answer, I read in the documentation that you need to use reply_to, but that’s not the task, I don’t understand where to shove this reply_to, and how to receive message IDs, here my code:

vk.updates.hear(/^(?:привет)/iu, msg => {
  msg.send(`Приветствую`)
})

Thanks in advance!

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