Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- import vk_api
- import time
- LOGIN = "79171736575"
- PASSWORD = "SMIRIS'"
- IDs = [341917244, 255750980]
- vk_session = vk_api.VkApi(LOGIN, PASSWORD)
- vk = vk_session.get_api()
- try:
- vk_session.auth()
- except vk_api.AuthError as error_msg:
- print(error_msg)
- for ID in IDs:
- vk.messages.send(user_id=ID, message="РАССЛАБЬСЯ")
- time.sleep(3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement