Answer the question
In order to leave comments, you need to log in
The team works, but the person does not kick, what's the problem?
Hello, I have a problem, there is a kick command, it displays messages in the chat that I did not forward the messages, but when I forward it (I tried all the methods), it does not kick, and it replies that everything needs to be sent exactly, I would I wanted to make it so that I had a kick through @ and a forwarded message.
if(in_array($cmd, ['kick', 'кик'])){
if($kickidid == ''){
$vk->sendMessage($peer_id, "@id{$id} ({$first_name}), вы не указали человека, которого нужно исключить (перешлите любое его сообщение)");
}else{
$userInfo_reply = $vk->request("users.get", ["user_ids" => $kickidid]);
$first_name_reply = $userInfo[0]['first_name'];
$vk->sendMessage($peer_id, "@id{$kickidid} ({$first_name_reply}), прощайте");
$vk->request('messages.removeChatUser', ['chat_id' => $chat_id, 'member_id' => $kickidid]);
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question