Why callback comes several times in the telegram bot?

if (!empty($result['callback_query'])) {
 $chat_id = $result['callback_query']['from']['id']; 
 $callback_id = $result['callback_query']['id'];


 $ch = curl_init($website . '/answerCallbackQuery');
 curl_setopt($ch, CURLOPT_HEADER, false);
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
 curl_setopt($ch, CURLOPT_POST, 1);
 curl_setopt($ch, CURLOPT_POSTFIELDS, ($params));
 curl_setopt($ch, THIS, false);
 $result_q = curl_exec($ch);

 'chat_id' => $chat_id,
 'text' => "Here is the callback ". $result_q

Why comes up a few times, like vozvraschaju answerCallbackQuery and should work only once?
March 25th 20 at 13:42
1 answer
March 25th 20 at 13:44
Before that was sending messages, colback did not accept them and they come now?

The message queue can be viewed in getWebhooks
I watched the id of colback. It's the same fresh comes several times. As if he didn't see what I processed a request through answerCallbackQuery and tries to reach the server. - Ocie70 commented on March 25th 20 at 13:47
@Ocie70, code of server response is 200? - Jackson commented on March 25th 20 at 13:50
@Jackson, on the screen the responses from the request answerCallbackQuery - Ocie70 commented on March 25th 20 at 13:53
@Ocie70, maybe in the header somewhere, the time is not right given? On the server time pravednoe? - Jackson commented on March 25th 20 at 13:56

Find more questions by tags TelegramBotsAPIPHP