Answer the question
In order to leave comments, you need to log in
How to get id messages VK?
In general, you need to get an ID message so that the bot can answer it with an answer. How to get this id? And I’ll say in advance, don’t throw links to documentation, I need code on how to do this.
Here is my current code:
vk.updates.hear(/^(?:вопрос)/iu, msg => {
vk.api.messages.send({
reply_to: //тут нужно указать айди сообщение на которое требуется ответить
message: `ответ`
})
})
Answer the question
In order to leave comments, you need to log in
I answered you in the previous question: How to make the bot respond to the message, namely the answer (reply)?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question