F
F
falsescam2020-07-20 02:24:16
API
falsescam, 2020-07-20 02:24:16

How to get user id for forwarded vk-io message?

vk.updates.hear(/test/, async (context) => {
console.log(context.and what's here);
});

I need to get the id of the user who forwarded the message
vk-io

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wayix, 2020-07-20
@Wayix

if(context.hasForwards) {
        senderId = context.forwards[0].senderId;
    }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question