Skip to content

Commit

Permalink
file_get_contents 12
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxNadeev committed Mar 27, 2024
1 parent 97d30d6 commit 3097314
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sender.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ function sendTelegram($chat_id, $message, $apiToken) {
'text' => $message,
'parse_mode' => 'HTML'
];
echo "data: ".$data["chat_id"].$data["text"].$data["parse_mode"];
$response = file_get_contents("https://api.telegram.org/bot".substr($apiToken, 0, -1)."/sendMessage?".http_build_query($data));
};

Expand Down

0 comments on commit 3097314

Please sign in to comment.