Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import vk
- from time import sleep
- session = vk.AuthSession(user_password='', user_login='', app_id=5726518,
- scope='wall,docs,messages,photos,music')
- api = vk.API(session, v=5.65)
- tid = 244683
- chat_id = 101
- while True:
- if tid in api.messages.getChat(chat_id=chat_id)['users']:
- api.messages.removeChatUser(chat_id=chat_id, user_id=tid)
- sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement