M
M
Maxim Recipient2019-06-30 16:28:23
In contact with
Maxim Recipient, 2019-06-30 16:28:23

How to get and use response to vk.api request?

For example, I want to get the user id by command ( https://vk.com/dev/utils.resolveScreenName):
cmd.hear(/^(?:id)\s([^]+)$/i, async (message, bot) => {
vk.api.utils.resolveScreenName({ screen_name: message.args[2] });
});
But how to use the response from the server, and where to find it?
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