по ответу на сообщение
if event.object.text == "кик":
vk.method("messages.removeChatUser", {
"chat_id": event.object.peer_id - 2000000000,
"member_id": event.obj.reply_message['from_id']})
по упоминанию/ссылке
def get_user(pattern: str) -> int:
if "[id" in pattern:
return int(pattern.split("|")[0].replace("[id", ""))
if "vk.com/" in pattern:
domen = pattern.split("/")[-1]
print(domen)
return vk.method("users.get", {"user_ids": domen})[0]["id"]
text = event.obj["text"].split(' ')
if (len(text) == 2) and text[0] == "кик":
vk.method("messages.removeChatUser", {"chat_id": event.chat_id, "member_id": get_user(text[1])})