M
M
mrsakura522021-11-05 17:07:05
JavaScript
mrsakura52, 2021-11-05 17:07:05

How to write to a specific VK user?

I have a bot that connects to a database (MongoDB) via mongoose. I want to send a message to a specific user (who has already entered into a dialogue with the group). That is, if the senderId of the admin, the message contains another senderId, then send a message to this id on behalf of the group. How to implement it and what to connect?

There is a question concerning a DB. How can I get a document from the collection and, for example, send it to someone on VK? Also how to get document fields (JSON) by type name, id, peerId, text, etc.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JuraSciix, 2021-11-06
@JuraSciix

Read this documentation carefully: https://vk.com/dev/messages.send

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question