I enter the message message on the telegram, but as a result, it does not send me anything. Help please fix
https://api.telegram.org/bot".$token;
$updates = file_get_contents("php://input"); $result = (array)json_decode($updates, true); $text = $result["message"]["text"]; $chatId = $result["message"]["from"]["id"]; if($text == "message") { $url = $website; $url .= "/sendMessage?chat_id=".$chat_id."&text=".urlencode($text); $current_board = array(array("1", "2"), array("3", "4")); sendMessageKeyboard($url, $current_board); } else if($text == "ΠΏΠ»Π°ΡΡΠΆ") { $provider_token = "381764678:TEST:5058"; $product_name = "Π‘Π²Π΅ΠΆΠΈΠ΅ ΠΌΠ°Π½Π΄Π°ΡΠΈΠ½Ρ"; //title $product_description = "ΠΠΎΡΡΠ°Π²Π»ΡΠ΅ΠΌ Π½Π΅Π΄ΠΎΡΠΎΠ³ΠΈΠ΅ ΠΌΠ°Π½Π΄Π°ΡΠΈΠ½Ρ ΠΏΠΎ ΠΏΡΠΈΠ΅ΠΌΠ»Π΅ΠΌΠΎΠΉ ΡΠ΅Π½Π΅"; //description $payload = "67192"; //payload ΡΡΠΎ shopId $start_parameter = "352780"; //ΡΡΠΎ shopArticleId $currency = "RUB"; //currency $prices = json_encode(array("label" => "ΠΌΠ°Π½Π΄Π°ΡΠΈΠ½", "amount" => 45)); $url = $website; $url .= "/sendInvoice?chatId=".$chatId."&title=".$product_name."&description=".$product_description; $url .= "&payload=".$payload."&provider_token=".$provider_token.="&start_parameter=".$start_parameter; $url .= "¤cy=".$currency."&prices=".$prices; file_get_contents($url); } else if($text == "/startgame") { $url = $website; $url .= "/sendMessage?chat_id=".$chat_id."&text=".urlencode($message); $current_board = array(array("Π€ΠΈΠ·ΠΈΠΊΠ°", "Π₯ΠΈΠΌΠΈΡ"), array("Π€ΠΈΠ·ΠΈΠΊΠ°", "Π₯ΠΈΠΌΠΈΡ")); sendMessageKeyboard($url, $current_board); } else { sendMessage($website, $chatId, $text); } /*$fp = fopen('file.txt', 'a'); $writing = fwrite($fp, $error); if($writing) { echo 'ΠΠ°Π½Π½ΡΠ΅ ΡΡΠΏΠ΅ΡΠ½ΠΎ Π·Π°Π½Π΅ΡΠ΅Π½Ρ'; } else { echo "ΠΡΠΈΠ±ΠΊΠ° Π·Π°Π³ΡΡΠ·ΠΊΠΈ ΡΠ°ΠΉΠ»Π°"; } fclose($fp); */ function sendMessage($site, $chat_id, $message) { $url = $site; $url .= "/sendMessage?chat_id=".$chat_id."&text=".urlencode($message); file_get_contents($url); } function sendMessageKeyboard($curl, $keyboard) { $reply = json_encode(array("keyboard" => $keyboard, "resize_keyboard" => true, "one_time_keyboard" => true)); $add_url = $curl; $add_url .= "&reply_markup="; $add_url .= $reply; file_get_contents($add_url); } ?> Π²Π²Π΅Π΄ΠΈΡΠ΅ ΡΡΠ΄Π° ΠΊΠΎΠ΄