NEP DEVS
الذهاب إلى القناة على Telegram
NEPS DEV WHO WANT TO HELP YOU WITH FOSS PROJECT. WE COLLECT SCRIPTS THIS GROUP IS ONLY FOR EDUCATIONAL PURPOSE
إظهار المزيدلا توجد بيانات
المشتركون
-3724 ساعات
-1357 أيام
-23530 أيام
أرشيف المشاركات
NepTunes Bot Maker - Craft Beats with Ease! 🤖🎶
1. Server Ready 🚀: SSL for a secure connection.
2. Bot in a Blink 🤖: Deploy the PHP music downloader effortlessly.
3. API Harmony 🎵: Seamless NepDevs integration for an extensive music library.
4. SSL Shield 🔐: Activate SSL, ensuring encrypted downloads.
5. Groove & Share 🎉: Spread the musical joy on Telegram! #MusicDownloader #TechTunes
*Crafted with ❤️ by NepCoder* 🚀
TITLE:- LINK DETECTOR AND REMOVER BOT THAT SEND THAT LINK TO ADMIN ID😎
<?php
$token = "YOUR_BOTTOKEN";
$webhookURL = "YOUR_WEBHOOK_URL";
$apiURL = "https://api.telegram.org/bot$token/";
$response = file_get_contents($apiURL . "setWebhook?url=" . urlencode($webhookURL));
if ($response) {
echo "Webhook has been set!";
} else {
echo "Failed to set the webhook!";
}
$update = json_decode(file_get_contents("php://input"), true);
function containsMarkdownLink($message) {
$decoded_message = json_decode('"' . $message . '"');
return preg_match('/\[(.*?)\]\((.*?)\)/', $decoded_message);
}
function containsTextLinkEntity($update) {
$entities = $update["message"]["entities"] ?? [];
foreach ($entities as $entity) {
if ($entity["type"] === "text_link") {
return true;
}
}
return false;
}
if (isset($update["edited_message"])) {
$editedMessage = $update["edited_message"];
$chatID = $editedMessage["chat"]["id"];
$editedText = $editedMessage["text"];
if (
preg_match('/\b(?:https?:\/\/|www\.)\S+\b/i', $editedText) ||
containsMarkdownLink($editedText) ||
containsTextLinkEntity($editedMessage) ||
preg_match('/\b\w+\.(com|net|org|io|etc)\b|\b\w+\.\w+\b/i', $editedText) ||
strpos($editedText, '.') !== false
) {
file_get_contents($apiURL . "deleteMessage?chat_id=$chatID&message_id=" . $editedMessage["message_id"]);
if (isset($editedMessage["from"]["username"])) {
$username = $editedMessage["from"]["username"];
$adminID = YOUR_ADMIN_ID_HERE;
if ($adminID) {
$messageToAdmin = "⚠️ <b>Alert!</b> @$username edited a message and added a link:\n$editedText";
file_get_contents($apiURL . "sendMessage?chat_id=$adminID&text=" . urlencode($messageToAdmin) . "&parse_mode=HTML");
}
}
}
} elseif (isset($update["message"])) {
$message = $update["message"]["text"];
$chatID = $update["message"]["chat"]["id"];
$username = $update["message"]["from"]["username"]; // Get the sender's username
$adminID = ADMIN ID;
$lowercaseMessage = strtolower($message);
if ($message == "/start") {
$welcomeMessage = "🌟 <b>Welcome to the bot!</b>\nTo prevent certain messages, please <b>make me an admin</b> in your channel.";
file_get_contents($apiURL . "sendMessage?chat_id=$chatID&text=" . urlencode($welcomeMessage) . "&parse_mode=HTML");
} else {
if (
strpos($message, '@') === 0 ||
strpos($lowercaseMessage, 't.me/') !== false ||
strpos($lowercaseMessage, 'telegram.me/') !== false ||
preg_match('/\b(?:https?:\/\/|www\.)\S+\b/i', $message) ||
containsMarkdownLink($message) ||
containsTextLinkEntity($update) ||
preg_match('/\b\w+\.(com|net|org|io|etc)\b|\b\w+\.\w+\b/i', $message) ||
strpos($message, '.') !== false
) {
file_get_contents($apiURL . "deleteMessage?chat_id=$chatID&message_id=" . $update["message"]["message_id"]);
if ($username && $adminID) {
$messageToAdmin = "⚠️ <b>Alert!</b> @$username sent a message:\n$message";
file_get_contents($apiURL . "sendMessage?chat_id=$adminID&text=" . urlencode($messageToAdmin) . "&parse_mode=HTML");
}
$warning = "⚠️ <b>Sorry!</b> Links are not allowed in this chat!";
file_get_contents($apiURL . "sendMessage?chat_id=$chatID&text=" . urlencode($warning) . "&parse_mode=HTML");
}
}
}
?>
MADE BY NEPCODER @DEVSNP
SHARE WITH CREDIT
AND GIVE REA❤️CTION
#BOTS
COMING MORE BOTS CODE IN PHP❤️TITLE:-LINK DETECTOR AND REMOVER BOT THAT SEND THAT LINK TO ADMIN ID😎
<?php
$token = "YOUR_BOTTOKEN";
$webhookURL = "YOUR_WEBHOOK_URL";
$apiURL = "https://api.telegram.org/bot$token/";
$response = file_get_contents($apiURL . "setWebhook?url=" . urlencode($webhookURL));
if ($response) {
echo "Webhook has been set!";
} else {
echo "Failed to set the webhook!";
}
$update = json_decode(file_get_contents("php://input"), true);
function containsMarkdownLink($message) {
$decoded_message = json_decode('"' . $message . '"');
return preg_match('/\[(.*?)\]\((.*?)\)/', $decoded_message);
}
function containsTextLinkEntity($update) {
$entities = $update["message"]["entities"] ?? [];
foreach ($entities as $entity) {
if ($entity["type"] === "text_link") {
return true;
}
}
return false;
}
if (isset($update["edited_message"])) {
$editedMessage = $update["edited_message"];
$chatID = $editedMessage["chat"]["id"];
$editedText = $editedMessage["text"];
if (
preg_match('/\b(?:https?:\/\/|www\.)\S+\b/i', $editedText) ||
containsMarkdownLink($editedText) ||
containsTextLinkEntity($editedMessage) ||
preg_match('/\b\w+\.(com|net|org|io|etc)\b|\b\w+\.\w+\b/i', $editedText) ||
strpos($editedText, '.') !== false
) {
file_get_contents($apiURL . "deleteMessage?chat_id=$chatID&message_id=" . $editedMessage["message_id"]);
if (isset($editedMessage["from"]["username"])) {
$username = $editedMessage["from"]["username"];
$adminID = YOUR_ADMIN_ID_HERE;
if ($adminID) {
$messageToAdmin = "⚠️ <b>Alert!</b> @$username edited a message and added a link:\n$editedText";
file_get_contents($apiURL . "sendMessage?chat_id=$adminID&text=" . urlencode($messageToAdmin) . "&parse_mode=HTML");
}
}
}
} elseif (isset($update["message"])) {
$message = $update["message"]["text"];
$chatID = $update["message"]["chat"]["id"];
$username = $update["message"]["from"]["username"]; // Get the sender's username
$adminID = ADMIN ID;
$lowercaseMessage = strtolower($message);
if ($message == "/start") {
$welcomeMessage = "🌟 <b>Welcome to the bot!</b>\nTo prevent certain messages, please <b>make me an admin</b> in your channel.";
file_get_contents($apiURL . "sendMessage?chat_id=$chatID&text=" . urlencode($welcomeMessage) . "&parse_mode=HTML");
} else {
if (
strpos($message, '@') === 0 ||
strpos($lowercaseMessage, 't.me/') !== false ||
strpos($lowercaseMessage, 'telegram.me/') !== false ||
preg_match('/\b(?:https?:\/\/|www\.)\S+\b/i', $message) ||
containsMarkdownLink($message) ||
containsTextLinkEntity($update) ||
preg_match('/\b\w+\.(com|net|org|io|etc)\b|\b\w+\.\w+\b/i', $message) ||
strpos($message, '.') !== false
) {
file_get_contents($apiURL . "deleteMessage?chat_id=$chatID&message_id=" . $update["message"]["message_id"]);
if ($username && $adminID) {
$messageToAdmin = "⚠️ <b>Alert!</b> @$username sent a message:\n$message";
file_get_contents($apiURL . "sendMessage?chat_id=$adminID&text=" . urlencode($messageToAdmin) . "&parse_mode=HTML");
}
$warning = "⚠️ <b>Sorry!</b> Links are not allowed in this chat!";
file_get_contents($apiURL . "sendMessage?chat_id=$chatID&text=" . urlencode($warning) . "&parse_mode=HTML");
}
}
}
?>
MADE BY NEPCODER @DEVSNP
SHARE WITH CREDIT
AND GIVE REA❤️CTION
#BOTS
COMING MORE BOTS CODE IN PHP❤️🚀 Free Fire UID to Name Finder by NepDevs 🚀
Discover the gaming world's best-kept secrets with our PHP script! 🌟
Features:
🔍 Instantly convert Free Fire UIDs to player names
🌐 Explore detailed player profiles with just a click
🤝 Connect with fellow gamers seamlessly
🎮 Enhance your gaming experience with newfound insights
Made with ❤️ by NepDevs (@devsnp)
Title:-Google Image Api php code🫥🫥🫥
<?php
//use in this fromat api.php?image=
if (isset($_GET['image'])) {
$userAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36';
//By @Devsnp
$searchQuery = urlencode($_GET['image']);
$searchUrl = "https://www.google.com/search?q=$searchQuery&tbm=isch";
//By @Devsnp
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $searchUrl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);
//By @Devsnp
$html = curl_exec($ch);
//By @Devsnp
curl_close($ch);
//By @Devsnp
preg_match_all('/<img[^>]+src="([^">]+)"/', $html, $matches);
$imageUrls = $matches[1];
$imageResults = array();
foreach ($imageUrls as $imageUrl) {
$imageResults[] = $imageUrl;
}
header('Content-Type: application/json');
echo json_encode($imageResults, JSON_UNESCAPED_SLASHES);
}
?>
Google Image Scraper Api.Code
In Php❤️❤️😊
Use In Any Hosting👍
Api Url Format:-Api.php?image=imagename
By @DEVSNP
SHARE WITH CREDIT