Skip to content

Commit

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

Expand Down

0 comments on commit 3f81ba4

Please sign in to comment.