I wrote a script that does not allow the admin of the conversation VC to exclude the user, realized this by the fact that when one is kicked, the fake who came before and came out again invites the first one, and he quits. In the end it turns out that the script does it very quickly and catch and kick fake almost unreal. I implemented it like this:
import vk_api vk_session = vk_api.VkApi("login","password") vk_session.auth() vk = vk_session.get_api() main_join=vk.messages.addChatUser(chat_id=13,user_id=id1) if main_join==1: print("Успешный вход") else: print("Вход не удался") join_user=vk.messages.addChatUser(chat_id=13,user_id=id2) if join_user==1: print("Успешное добавление") else: print("Добавление не удалось") remove_user=vk.messages.removeChatUser(chat_id=13,user_id=id1) if remove_user==1: print("Успешный выход") else: print("Выход не удался") But it turns out that I need to run each time to return to the conversation. So how to do it all, so that I can run once and the script itself can determine when I am kicked.
while True:- gil9red