Answer the question
In order to leave comments, you need to log in
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('Произошла ошибка');
}
});
Answer the question
In order to leave comments, you need to log in
But who is the documentation for? https://vk.com/dev/messages.getById
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question