我做了一个按钮,但我无法回答内联键盘上的按钮

When I click on inline keyboard, I can not get no answer our .Help me please? This is my code:

if ($data == "1") {
    $message = 's';
    $url = 'https://api.telegram.org/bot'.$token.'/sendMessage?chat_id='.$user_id.'&text='.$message;
    $update = file_get_contents($url);
    $url = 'https://api.telegram.org/bot'.$token.'/answerCallbackQuery?chat_id='.$user_id .'&callback_query_id='.$chat_id_in;
    $update = file_get_contents($url);

}

$error = error_get_last(); echo "HTTP request failed. Error was: " . $error['message'];

You will see HTTP status code. Something like this : HTTP request failed! HTTP/1.1 404 Not Found

I advise you not to use file_get_content and use CURL (guzzle or other)