⚡️Education_coders⚡️[❤️PHP BOT KODLARI❤️)
1.34K subscribers
36 photos
2 videos
422 files
64 links
👨‍💻 Dasturchilar va ega:
@emeralddev

🐘 РНР codlar
👨‍💻 Tarqalmagan API codlar
🖥 Kompyuter savodxonligi
🌐 Veb-sayt codlari
🐍 Python bot codlari
📤 Кerakli ilovalar
⚙️ Xizmatlar: @OnlinePortfolio
Download Telegram
function bot($method, $datas = []) {
    $url = "https://api.telegram.org/bot".EmeraldDev."/$method";
    $ch = curl_init();
    curl_setopt_array($ch, [
        CURLOPT_URL => $url,
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_POST => count($datas),
        CURLOPT_POSTFIELDS => http_build_query($datas)
    ]);
    $mh = curl_multi_init();
    curl_multi_add_handle($mh, $ch);
    $running = null;
    do {
        curl_multi_exec($mh, $running);
    } while ($running);
    $res = curl_multi_getcontent($ch);
    curl_multi_remove_handle($mh, $ch);
    curl_multi_close($mh);
    if (curl_error($ch)) {
        var_dump(curl_error($ch));
    } else {
        return json_decode($res);
    }
}


⚙️ Bot tezligini oshirish uchun funksiya ushbu funksiya har bir so'rovni tez yuboradi, javob tez qaytadi va bot tez ishlaydi
🔥21💯1
google.js
2.1 KB
📨 Telegramda Gmail xatlarini qabul qilish. Siz Telegram bot orqali ma'lum bir Gmail jo'natuvchisidan yangi xatlarni ko'rishingiz mumkin.

🧑‍💻 Manba: @education_coders
🚀 Tarqatildi: @education_coders
🔥3
ddos.php
890 B
⚠️ Oddiy DDoS hujumlarni oldini olish (rate limiting) mexanizmini amalga oshiradi.
⚙️ Asosiy vazifasi — bir xil IP manzildan qisqa vaqt ichida juda ko'p so'rov yuborilishini nazorat qilish va cheklash.

🧑‍💻 Manba: @UzCoder_Kanal
🚀 Tarqatildi: @education_coders
🔥4👍1
if(isset($message)){
if($type == "group" or $type == "supergroup"){
}else{
$result = mysqli_query($connect,"SELECT * FROM user_id WHERE user_id = $cid");
$rew = mysqli_fetch_assoc($result);
if($rew){
}else{
$pul = mysqli_fetch_assoc(mysqli_query($connect,"SELECT*FROM kabinet WHERE user_id=$cid"))['pul'];
$a=$pul+5000;
mysqli_query($connect,"UPDATE kabinet SET pul = $a WHERE user_id = $cid");
bot('SendMessage',[
'chat_id'=>$cid,
'text'=>"🎁 <b>Botdan foydalaningiz uchun hisobingizga 5000 so'm qo'shildi. </b>",
'parse_mode'=>'html'
]);
}
}}

🎁 Maker botlarga avtobonus funksiyasi yangi foydalanuvchi botga qo'shilsa bot o'zi hisobiga pul qo'shadi.
🍓5🔥4
method.js
5.1 KB
⚠️ Proksi-server yordamida oddiy ddos scripti.
⚙️ Asosiy vazifasi: maqsadli serverga ko'p sonli so'rovlarni yuborish va uni ishdan chiqarish yoki xizmat ko'rsatishni sekinlashtirish.

🧑‍💻 Manba: @education_coders
🚀 Tarqatildi: @education_coders
🔥3👍1
<?php
$botid = bot('getMe', ['bot'])->result->id;
$newMember = $message->new_chat_member;
$newid = $newMember->id;

if ($newMember && $newid == $botid) {
$chat = bot('getChat', ['chat_id' => $cid]);
$title = $chat->result->title;
$username = $chat->result->username;
$person = bot('getChat', ['chat_id' => $uid])->result->first_name;
$count = bot('getChatMembersCount', ['chat_id' => $cid])->result;

bot('sendMessage', [
'chat_id' => $admin,
'parse_mode' => 'html',
'text' => "📊 <b>Botni guruhga qo'shishdi.

🆔 ID: $cid
Guruh nomi: $title
🌐 Guruh: @$username
👥 Qo'shdi: $person
📋 A'zolar: $count ta

⚠️ Manba: @Education_Coders</b>",
'reply_markup' => json_encode([
'inline_keyboard' => [
[['text' => "$title", 'url' => "https://t.me/$username"]],
]
]),
]);
}
?>


🤖 Kimdur botni ommaviy guruhga qo'shsa adminga
xabar boradigan funksiya.
🔥3😱21
jobs.html
50.1 KB
💻 Ish sahifasi — bu HTML sahifa IT mutaxassislarini ishga taklif qilish uchun mo'ljallangan. Unda vakansiyalar (Frontend, Backend, Dizayn, Marketing) savol-javoblar (FAQ), ariza topshirish formasi va aloqa bo'limi mavjud. Dizayni zamonaviy, animatsiyali va mobilga moslashtirilgan.

🧑‍💻 Manba: @education_coders
🚀 Tarqatildi: @education_coders
1😁6🔥21
websiteinfo.php
1.9 KB
🌐 Ushbu php-ni xostingizga yuklang va veb-saytlarga kirganingiz haqida ma'lumot oling.

📃 Ushbu php kod quyidagilarni to'plashi mumkin: IP, server joylashuvi, mamlakat, mamlakat bayrog'i, server hududi, server kompaniyasi, Http sarlavhalari, sahifa havolalari, DNS.

🧑‍💻 Manba: @education_coders
🚀 Tarqatildi: @education_coders
2🔥2👏1💯1
ExportBot.zip
6.8 KB
🌐 Ushbu bot kodi sizga telegram akkauntlarini ulash va suhbatlar tarixini ID va vaqt bo'yicha eksport qilish imkonini beradi.

🧑‍💻 Manba: @education_coders
🚀 Tarqatildi: @education_coders
👍5🔥3
<?php

$step = file_get_contents("data/$cid.step");
$data = file_get_contents("data/$cid.txt");
mkdir("data");

if(isset($message)){
if($data == null){
$rand = rand(0000,9999);
bot('sendMessage',[
'chat_id'=>$cid,
'text'=>"<b>Quyidagi captcha kodini kiriting:</b>

👉 <code>$rand</code>",
'parse_mode'=>'html',
]);
file_get_contents("data/$cid.step","captcha-$rand");
}
}

if(mb_stripos($step, "captcha-") !== false){
$captcha = explode("-", $step)[1];
if(is_numeric($text) == true){
if($captcha == $text){
bot('sendMessage',[
'chat_id'=>$cid,
'text'=>" <b>Captchadan muvaffaqiyatli o'tdingiz!</b>",
'parse_mode'=>'html',
]);
file_put_contents("data/$cid.txt",'on');
unlink("data/$cid.step");
}else{
bot('sendMessage',[
'chat_id'=>$cid,
'text'=>"<b>Qabul qilinmadi!</b>

Qayta urunib ko'ring:",
'parse_mode'=>'html',
]);
}
}else{
bot('sendMessage',[
'chat_id'=>$cid,
'text'=>"<b>Faqat raqamlardan foydalaning!</b>",
'parse_mode'=>'html',
]);
}
}

?>


🤖 Telegram botlar uchun sodda captcha funksiyasi
🎉6🗿3🔥1
sanoqchi.py
32.1 KB
🔢 «Sanoqchi bot» kodi

⚙️ Vazifasi: Telegram guruhlari uchun a'zo qo'shganlarni hisoblab beruvchi bot. Ya'ni kim guruhga nechta odam qo'shganini hisoblaydi va bu asosda u foydalanuvchiga yozishga ruxsat beradi yoki bekor qilish mumkin.

🧑‍💻 Manba: @education_coders
🚀 Tarqatildi: @education_coders
2👍2🍓2🥰1
maqola.php
1.8 KB
🔎 Wikipedia'dan ma'lumot olib beruvchi API fayl
⚙️ Foydalanish: https://sizningdomen.com/maqola.php?query=Text

🧑‍💻 Manba: @education_coders
🚀 Tarqatildi: @education_coders
🔥3👍2🥰2
$videoUrl = "url"; // Video URL
$duration = getVideoDuration($videoUrl); // Video davomiyligi

function getVideoDuration($url) {
$headers = get_headers($url, 1);
if (isset($headers['Content-Length'])) {
$contentLength = $headers['Content-Length'];
$bitrate = 8000;
$durationInSeconds = ($contentLength * 8) / ($bitrate * 1000);
return gmdate("H:i:s", $durationInSeconds);
} else {
return "Noma'lum";
}
}

echo "Davomiyligi: " . $duration;


🔎 Video davomiyligini aniqlovchi PHP funksiyasi
🔥4🎉2👌1
send.php
1.7 KB
📝 MySQL admin panel. Botga qo'shishga moslangan tayyor PHP kod.

🧑‍💻 Manba: @education_coders
🚀 Tarqatildi: @education_coders
🍓2🔥1🤯1💯1
buyurtma.php
2.4 KB
⚙️ Telegram bot uchun yozilgan bo'lib, buyurtmalarning holatini tekshiruvchi va yangilovchi yangi buyurtma funksiyasi.

🧑‍💻 Manba: @education_coders
🚀 Tarqatildi: @education_coders
🎉3🔥1
index.html
1.9 KB
🎧 Avtomatik tarzda ovozli (audio) faylni ijro etuvchi oddiy veb-interfeys hisoblanadi.
- Sahifada <video> tegi yordamida audio formatdagi fayl qo'yilgan bo'lib, foydalanuvchi hech qanday tugmani bosmasdan turib, matnga asoslangan audio kontentni eshita oladi.
- Audio OpenAI API orqali matndan avtomatik yaratilgan.

🧑‍💻 Manba: @BittaTizim
🚀 Tarqatildi: @education_coders
🔥1💯1
teskari-so'z-bot.zip
2.3 KB
🌐 Bu Telegram PHP bot kodi. Admin paneli mavjud.
- Foydalanuvchilardan matn qabul qiladi va har bir so'zning teskari o'qilganda ham bir xil bo'ladigan so'z ekanligini aniqlab, natijani qaytaradi.

🧑‍💻 Manba: @education_coders
🚀 Tarqatildi: @education_coders
👍1🔥1🥰1🍓1
$update = json_decode(file_get_contents("php://input");
$message = $update->message;
$mid = $message->message_id;
$cid = $message->chat->id;
$text = $message->chat->id;
$step=file_get_contents("step/cid.step");
mkdir("bots");
mkdir("step");

if($text == "bot_ochish"){
bot('sendMessage',[
'chat_id'=>$cid,
'message_id'=>$mid,
'text'=>"Bot API tokenini kiriting:",
'parse_mode'=>"html",
]);
file_put_contents("step/$cid.step",'yangibot');
}

////@Education_Coders & @UzCoder_Kanal

if($step=="yangibot"){
if(mb_stripos($text, ":")!==false){
$kod = file_get_contents("bots/bot.php"); /// ochiladigan bot joylashuvi
$das = str_replace("ADMIN_ID", $cid, $kod");
$das = str_replace("API_TOKEN", $text, $kod);
$user = json_decode(file_get_contents("https://api.telegram.org/bot$tx/getme"))->result->username;
mkdir("bot/$cid/$user");
file_put_contents("bot/$cid/$user/index.php", $das);
$get = json_decode(file_get_contents("https://api.telegram.org/bot$tx/setwebhook?url=https://".$_SERVER['SERVER_NAME']."/bot/botlar/$cid/$user/index.php"))->result;
if($get){
bot('sendMessage',[
'chat_id'=>$cid,
'message_id'=>$mid,
'text'=>"🤖 Botingiz tayyor",
'parse_mode'=>"html",
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>"🤖 Botga o'tish",'url'=>"t.me/$user?start"]],
]
]),
]);
unlink("step/$cid.step");
}
}else{
bot('sendMessage',[
'chat_id'=>$cid,
'message_id'=>$mid,
'text'=>"🤔 Token kiritishda xatolik, qayta urinib ko'ring!",
'parse_mode'=>"html",
}}


⚙️ Bot tokenini olib, avtomatik tarzda unga fayl yaratib, setWebhook orqali ishlaydigan yangi bot tayyorlab beradigan funksiya.
🍓2🔥1💯1🗿1
Ban.zip
1.2 KB
🔕 Foydalanuvchi Telegram kanal yoki guruhdan chiqib ketgan bo'lsa, uni avtomatik tarzda bloklaydigan PHP va PY funksiya.

🧑‍💻 Manba: @education_coders
🚀 Tarqatildi: @education_coders
🍓41🥰1💯1🗿1