D
D
Dan5002020-01-20 11:45:05
Python
Dan500, 2020-01-20 11:45:05

How to get a user's name or other information in a longpoll?

5e25680f97652253529940.png
Wrote event.object.first_name, returns None.
Maybe this is wrong, what function is needed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2020-01-20
@Dan500

longpoll does not return username, only id, you need to use https://vk.com/dev/users.get

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question