diff --git a/sender.php b/sender.php index ac35d35..3b8229a 100644 --- a/sender.php +++ b/sender.php @@ -47,16 +47,13 @@ $owner = $consts[1]; $dev = $consts[2]; -echo "0: "."a"."b"; -echo "1: ".$owner.$dev.$apiToken; - function sendTelegram($chat_id, $message, $apiToken) { $data = [ - 'chat_id' => substr($chat_id, 0, -1), + 'chat_id' => substr($chat_id, 0, -2), 'text' => substr($message, 0, -1), 'parse_mode' => 'HTML' ]; - echo "2: ".$data; + echo "data: ".$data; $response = file_get_contents("https://api.telegram.org/bot".substr($apiToken, 0, -1)."/sendMessage?".http_build_query($data)); };