M
M
Maxim Recipient2019-07-09 20:14:56
In contact with
Maxim Recipient, 2019-07-09 20:14:56

How to get user id using messages.getById method, fwd.messages function?

Please help me implement getting a user ID by forwarding his message!
I understood a little how to do this, but I don’t know how to get the user id and what to enter in the messages.getById method.

updates.hear(/^\кик/i, async (context) => {
if (context.user.permission < 6) return context.send(`У вас нет на это прав!`);
await vk.api.messages.getById({ НЕ ЗНАЮ })
await api.messages.removeChatUser({chat_id: context.chatId, member_id: БЕЗ ПОНЯТИЯ })
return context.send('Готово!');
} catch (e) {
console.log(e)
return context.send('Произошла ошибка');
}
});

Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stockholm Syndrome, 2019-07-09
@StockholmSyndrome

But who is the documentation for? https://vk.com/dev/messages.getById

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question