Advertisement
Guest User

Analgen

a guest
Feb 22nd, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. import time
  2. import random
  3.  
  4. token ='YOU TOKEN'
  5.  
  6. import vkbee
  7. import asyncio
  8.  
  9. loop = asyncio.get_event_loop()
  10. vk_s = vkbee.VkApi(token, loop=loop)
  11. async def main(loop):
  12. _trynum = 0
  13. while True:
  14. _name = ''
  15.  
  16. for x in range(random.randint(23,24)):
  17. _name = _name + random.choice(list('123456789qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_/'))
  18. ok= 'vk.me/join/{0}'.format(_name)
  19. a =await vkbee.VkApi.call(vk_s,'messages.getChatPreview',{'link': ok})
  20. if 'error' in a:
  21. text = '[{0}]not valid ({1})'.format(_trynum,ok)
  22. print (text)
  23. _trynum +=1
  24. time.sleep(0.5)
  25. else:
  26. print (ok)
  27. input('valid')
  28.  
  29. asyncio.get_event_loop().run_until_complete(main(loop))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement