Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. import vk
  2. from time import sleep
  3. session = vk.AuthSession(user_password='', user_login='', app_id=5726518,
  4.                          scope='wall,docs,messages,photos,music')
  5.  
  6.  
  7. api = vk.API(session, v=5.65)
  8. tid = 244683
  9. chat_id = 101
  10. while True:
  11.     if tid in api.messages.getChat(chat_id=chat_id)['users']:
  12.         api.messages.removeChatUser(chat_id=chat_id, user_id=tid)
  13.     sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement