100% рабочий вариант...
$callbackData = file_get_contents("
php://input");
$ac = json_decode($callbackData, true);
if (isset($ac["message"]))
{
//Информация об отправителе комманды
$idMessage = $ac['message']['message_id'];
$fromGroup = (empty($ac['message']['chat']['id'])) ? 0 : $ac['message']['chat']['id'];
$fromUser = $ac['message']['from']['id'];
$from = ($fromGroup != 0) ? $fromGroup : $fromUser;
$user_info = $ac['message']['from'];
$command = $ac['message']['text'];
} else if (isset($ac["callback_query"])) {
//Информация об отправителе комманды
$idMessage = $ac['callback_query']['message']['message_id'];
$fromGroup = (empty($ac['callback_query']['message']['chat']['id'])) ? 0 : $ac['callback_query']['message']['chat']['id'];
$fromUser = $ac['callback_query']['from']['id'];
$from = ($fromGroup != 0) ? $fromGroup : $fromUser;
$user_info = $ac['callback_query']['from'];
$command = $ac['callback_query']['data'];
$editMessage = true;
}