SHARE
TWEET

Untitled

a guest Aug 19th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from vk_api.longpoll import VkLongPoll, VkEventType
  2. import random
  3. import vk_api
  4. import time
  5.  
  6. login, password='+77051918257','Murzilka1'
  7. vk_session = vk_api.VkApi(login, password)
  8. session_api = vk_session.get_api()
  9. success = 0
  10. failed = 0
  11. Type = 'peer_id'
  12. id = input("id\n")
  13. Msg = input("Message\n")
  14. loops = int(input("how many loops?\n"))
  15.  
  16.  
  17. for i in range(loops):
  18. #1
  19.     login, password='+77051918257','Murzilka1'
  20.     vk_session = vk_api.VkApi(login, password)
  21.     vk_session.auth()
  22.     try:
  23.         vk.messages.send(peer_id=id, message=Msg, random_id=get_random_id())
  24.         success+= 1
  25.         print("Success\n")
  26.     except:
  27.         print('failed\n')
  28.         failed+=1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top