$keyjson = json_encode($keyarr, JSON_UNESCAPED_UNICODE);
$TGMtoken = '111111:000000000000';
$TGMapi = 'https://api.telegram.org/bot'.$TGMtoken.'/';
file_get_contents($TGMapi . 'sendMessage?chat_id=000(ваш телеграм)&text=Сообщение от пользователя в группе);
$confirmation_token = '58e46a05';
$data = json_decode(file_get_contents('php://input'));
switch ($data->type):
case 'confirmation': echo $confirmation_token; break;
case 'wall_post_new': реакция на событие; echo('ok'); break;
...
endswitch;