TG Telegram Group & Channel
ⱮℜᎧÂN MOᕼᗩᗰᗰEᗪ ☬ | United States America (US)
Create: Update:

الي بالبوت
<?php
ob_start();
$API_KEY = '929539849:AAGiaV2miPAZ6houjNS53lN20pCVmIlnLVk'; #توكن البوت
define('API_KEY',$API_KEY);
echo file_get_contents("https://tfhdg.000webhostapp.com/Telegram.php/bot$API_KEY/setwebhook?url=".$_SERVER['SERVER_NAME']."".$_SERVER['SCRIPT_NAME']);

function bot($method, $data = []){
$url = "https://tfhdg.000webhostapp.com/Telegram.php/bot".API_KEY."/" . $method;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$res = curl_exec($ch);
if (curl_error($ch)) {
var_dump(curl_error($ch));
} else {
return json_decode($res);
}
}

هذا ثابت مكان ما رابط مالتي يصير الرابط مالكم
مال هذا الملف بالاستضافة الي تشتغل او السيرفر
<?php
$url = $_SERVER['REQUEST_URI'];



$pattern = '/\/bot(.*?)\//';
preg_match($pattern, $url, $matches);
$token = $matches[1];
$pattern2 = '/\/bot[^\/]+\/([^?]+)/';
$link = $url;
preg_match($pattern2, $link, $matches2);
$method = $matches2[1];




define('API_KEY', $token);

function bot($method, $data = []) {
$url = "https://api.telegram.org/bot" . API_KEY . "/" . $method;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$res = curl_exec($ch);
if (curl_error($ch)) {
var_dump(curl_error($ch));
} else {
return json_decode($res);
}
}
if($_GET){
$e = bot($method, $_GET);
echo json_encode($e,448); // Convert the response object to a JSON string before echoing
}if($_POST){
$e = bot($method, $_POST);
echo json_encode($e,448); // Convert the response object to a JSON string before echoing
}
?>

الي بالبوت
<?php
ob_start();
$API_KEY = '929539849:AAGiaV2miPAZ6houjNS53lN20pCVmIlnLVk'; #توكن البوت
define('API_KEY',$API_KEY);
echo file_get_contents("https://tfhdg.000webhostapp.com/Telegram.php/bot$API_KEY/setwebhook?url=".$_SERVER['SERVER_NAME']."".$_SERVER['SCRIPT_NAME']);

function bot($method, $data = []){
$url = "https://tfhdg.000webhostapp.com/Telegram.php/bot".API_KEY."/" . $method;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$res = curl_exec($ch);
if (curl_error($ch)) {
var_dump(curl_error($ch));
} else {
return json_decode($res);
}
}

هذا ثابت مكان ما رابط مالتي يصير الرابط مالكم
مال هذا الملف بالاستضافة الي تشتغل او السيرفر
<?php
$url = $_SERVER['REQUEST_URI'];



$pattern = '/\/bot(.*?)\//';
preg_match($pattern, $url, $matches);
$token = $matches[1];
$pattern2 = '/\/bot[^\/]+\/([^?]+)/';
$link = $url;
preg_match($pattern2, $link, $matches2);
$method = $matches2[1];




define('API_KEY', $token);

function bot($method, $data = []) {
$url = "https://api.telegram.org/bot" . API_KEY . "/" . $method;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$res = curl_exec($ch);
if (curl_error($ch)) {
var_dump(curl_error($ch));
} else {
return json_decode($res);
}
}
if($_GET){
$e = bot($method, $_GET);
echo json_encode($e,448); // Convert the response object to a JSON string before echoing
}if($_POST){
$e = bot($method, $_POST);
echo json_encode($e,448); // Convert the response object to a JSON string before echoing
}
?>
1👍1


>>Click here to continue<<

ⱮℜᎧÂN MOᕼᗩᗰᗰEᗪ ☬




Share with your best friend
VIEW MORE

United States America Popular Telegram Group (US)