$arr_users = $vk->request('messages.getConversationMembers', ['chat_id' => $peer_id]);
if ($message == "Чек" or $message == "чек") {
$vk->sendMessage($peer_id, "Понял, что есть смс");
foreach($arr_users['items'] as $item) {
$vk->sendMessage($peer_id, "как");
if ($item['member_id'] == $id) {
$vk->sendMessage($peer_id, "Нашел в списке конфы");
if (!empty($item['is_admin'])) {
$vk->sendMessage($peer_id, "Админ");
} else {
$vk->sendMessage($peer_id, "Не админ");
}
}
}
}
array(1) { ["error"]=> array(3) { ["error_code"]=> int(100) ["error_msg"]=> string(76) "One of the parameters specified was missing or invalid: peer_id is undefined" ["request_params"]=> array(4) { [0]=> array(2) { ["key"]=> string(6) "method" ["value"]=> string(31) "messages.getConversationMembers" } [1]=> array(2) { ["key"]=> string(5) "oauth" ["value"]=> string(1) "1" } [2]=> array(2) { ["key"]=> string(7) "chat_id" ["value"]=> string(10) "2000000003" } [3]=> array(2) { ["key"]=> string(1) "v" ["value"]=> string(4) "5.85" } } } }
["error_msg"]=> string(76) "One of the parameters specified was missing or invalid: peer_id is undefined"
Array ( [error] => Array ( [error_code] => 100 [error_msg] => One of the parameters specified was missing or invalid: peer_id is undefined [request_params] => Array ( [0] => Array ( [key] => method [value] => messages.getConversationMembers ) [1] => Array ( [key] => oauth [value] => 1 ) [2] => Array ( [key] => chat_id [value] => 2000000003 ) [3] => Array ( [key] => v [value] => 5.85 ) ) ) )
array(4) { ["items"]=> array(36) { [0]=> array(5) { ["member_id"]=> int(454598412) ["invited_by"]=> int(454598412) ["join_date"]=> int(1559166975) ["is_admin"]=> bool(true) ["is_owner"]=> bool(true) } [1]=> array(4) { ["member_id"]=> int(-158645511) ["invited_by"]=> int(134582877) ["join_date"]=> int(1534238649) ["is_admin"]=> bool(true) } [2]=> array(4) { ["member_id"]=> int(-170686219) ["can_kick"]=> bool(true) ["invited_by"]=> int(332668438) ["join_date"]=> int(1547752262) } [3]=> array(4) { ["member_id"]=> int(-170175796) ["invited_by"]=> int(454598412) ["join_date"]=> int(1551894830) ["is_admin"]=> bool(true) } [4]=> array(4) { ["member_id"]=> int(388855008) ["invited_by"]=> int(474762898) ["join_date"]=> int(1556793570) ["is_admin"]=> bool(true) } [5]=> array(4) { ["member_id"]=> int(49188876) ["can_kick"]=> bool(true) ["invited_by"]=> int(474762898) ["join_date"]=> int(1558206999) } [6]=> array(4) { ["member_id"]=> int(167719407) ["can_kick"]=> bool(true) ["invited_by"]=> int(474762898) ["join_date"]=> int(1558207256) } [7]=> array(4) { ["member_id"]=> int(247940079) ["can_kick"]=> bool(true) ["invited_by"]=> int(474762898) ["join_date"]=> int(1558207257) } [8]=> array(4) { ["member_id"]=> int(286482320) ["can_kick"]=> bool(true) ["invited_by"]=> int(474762898) ["join_date"]=> int(1558207257) } [9]=> array(4) { ["member_id"]=> int(432992095) ["can_kick"]=> bool(true) ["invited_by"]=> int(474762898) ["join_date"]=> int(1558207260) } [10]=> array(4) { ["member_id"]=> int(467965747) ["can_kick"]=> bool(true) ["invited_by"]=> int(474762898) ["join_date"]=> int(1558207261) } [11]=> array(4) { ["member_id"]=>