Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
import vk_api
from vk_api.longpoll import VkLongPoll, VkEventType
token = "токен"
vk = vk_api.VkApi(token=token)
session_api = vk.get_api()
longpoll = VkLongPoll(vk)
for event in longpoll.listen():
if event.type == VkEventType.LIKE_ADD:
print(f'Новый лайк от {event.liker_id}')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question