Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import vk_api
- import vk
- from vk_api.longpoll import VkLongPoll, VkEventType
- user_token = ''
- vk_auth_token = vk_api.VkApi(token=user_token)
- longpoll = VkLongPoll(vk_auth_token)
- session = vk.Session(access_token=user_token)
- call = vk.API(session, v = "5.777")
- for event in longpoll.listen():
- print(event.raw)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement