S
S
Smirnovoleg4562020-12-04 12:50:30
In contact with
Smirnovoleg456, 2020-12-04 12:50:30

How to find out the user_id of a forwarded message?

Help, how to find out the user_id of the forwarded message?
Programming language - Python
Module - vk_api.longpoll VkLongPoll, VkEventType
Please help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex K, 2020-12-04
@Smirnovoleg456

I won’t give out the code in python, but if the only question is how to find out it in general, then:
Judging by the fact that we are talking about user_id, you are using the API version before 5.80. In this case, you need to catch events like `message_new`. In the event object there will be -> `message` object -> `fwd_messages` array -> `user_id` at the array element will be the desired value.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question