O
O
ojiekcahdp2021-01-10 21:15:17
JavaScript
ojiekcahdp, 2021-01-10 21:15:17

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

1 answer(s)
A
Alexander Semin, 2021-01-11
@ojiekcahdp

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 question

Ask a Question

731 491 924 answers to any question