Advertisement
faunuss

Untitled

Aug 9th, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. import vk_api
  3. import time
  4. LOGIN = "79171736575"
  5. PASSWORD = "SMIRIS'"
  6. IDs = [341917244, 255750980]
  7.  
  8. vk_session = vk_api.VkApi(LOGIN, PASSWORD)
  9. vk = vk_session.get_api()
  10. try:
  11.     vk_session.auth()
  12. except vk_api.AuthError as error_msg:
  13.     print(error_msg)
  14.  
  15. for ID in IDs:
  16.     vk.messages.send(user_id=ID, message="РАССЛАБЬСЯ")
  17.     time.sleep(3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement