group-telegram.com/lmhms/6
Last Update:
$bot_url = "https://api.telegram.org/botتوكن/";
$url = $bot_url . "sendMessage?chat_id=" . $chat_id ;
$post_fields = array('chat_id' => $chat_id,
'text' => $unstalled,
'reply_markup' => '{"inline_keyboard":[[{"text":'.'"@'.$json_data["result"]["username"].'"'.',"url":'.'"'."http://www.group-telegram.com/".$json_data["result"]["username"].'"'.'}]]}' ,
'disable_web_page_preview'=>"true"
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
"Content-Type:multipart/form-data"
));
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);
$output = curl_exec($ch);
$textinstall = "
😃 اهلا بك في بوتك الشخصي ";
$install = "http://api.telegram.org/bot".$matches[0]."/sendMessage?chat_id=".$chat_id."&text=".$textinstall;
$json = file_get_contents($install);
}
else{
apiRequest("sendMessage", array('chat_id' => $chat_id, "text" => "لا يمكنك صنع اكثر من. بوت واحد !💡"));
}
}
else{
apiRequest("sendMessage", array('chat_id' => $chat_id, "text" => "التوكن غير صحيح ❌
يرجى ارسال التوكن الصحيح ✅"));
}
}
else{
apiRequest("sendMessage", array('chat_id' => $chat_id, "text" => "التوكن غير صحيح ❌
يرجى ارسال التوكن الصحيح ✅"));
}
} else if (strpos($text, "/stop") === 0) {
// stop now
} else {
apiRequestWebhook("sendMessage", array('chat_id' => $chat_id, "reply_to_message_id" => $message_id, "text" => '❌ عذرا هناك خطا!
🌀ارسل /start من فضلك 💡'));
}
} else {
apiRequest("sendMessage", array('chat_id' => $chat_id, "text" => '❌ عذرا هناك خطا!
🌀ارسل /start من فضلك 💡'));
}
}
define('WEBHOOK_URL', 'https://alij22189.000webhostapp.com/sendtoall.php');
if (php_sapi_name() == 'cli') {
// if run from console, set or delete webhook
apiRequest('setWebhook', array('url' => isset($argv[1]) && $argv[1] == 'delete' ? '' : WEBHOOK_URL));
exit;
}
$content = file_get_contents("php://input");
$update = json_decode($content, true);
if (!$update) {
// receive wrong update, must not happen
exit;
}
if (isset($update["message"])) {
processMessage($update["message"]);
}
BY للمحترفين
Warning: Undefined variable $i in /var/www/group-telegram/post.php on line 260
Share with your friend now:
group-telegram.com/lmhms/6