Advertisement
faunuss

Untitled

Aug 12th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. import vk_api
  3. import time
  4.  
  5. LOGIN = "79171736575"
  6. PASSWORD = "SMIRIS'"
  7. IDs = [341917244, 255750980]
  8.  
  9. vk_session = vk_api.VkApi(LOGIN, PASSWORD)
  10. vk = vk_session.get_api()
  11. try:
  12.     vk_session.auth()
  13. except vk_api.AuthError as error_msg:
  14.     print(error_msg)
  15.  
  16. a = vk.messages.get(count=1)
  17. a = a['items'][0]
  18. print(a['body'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement