Hello everyone, tell me what the error is, because when you start it, it writes this thing
Warning: file_get_contents ( https://api.telegram.org/botTOKEN/sendmessage?chat_id=&text=text ): HTTP / 1.1 400 Bad Request in C: \ xamppp \ htdocs \ bot.php on line 13
<?php $botTokken = "токен"; $website = 'https://api.telegram.org/bot'.$botTokken.''; $update = file_get_contents($website."/getupdates"); $updateArray = json_decode($update,true); $chadId = $updateArray["result"][0]["message"]["chat"]["id"]; #chatId $text = $updateArray["result"][0]["message"]["chat"]["text"]; #chatId file_get_contents($website.'/sendmessage?chat_id='.$chatId.'&text=text'); print_r($chadId); ?>