Advertisement
Olegos

userbot

Jun 25th, 2021
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1.  
  2. import vk_api
  3. import vk
  4. from vk_api.longpoll import VkLongPoll, VkEventType
  5.  
  6.  
  7. user_token = ''
  8. vk_auth_token = vk_api.VkApi(token=user_token)
  9. longpoll = VkLongPoll(vk_auth_token)
  10. session = vk.Session(access_token=user_token)
  11. call = vk.API(session, v = "5.777")
  12.  
  13. for event in longpoll.listen():
  14.     print(event.raw)
  15.  
  16.  
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement