⚡️Education_coders⚡️[❤️PHP BOT KODLARI❤️)
3.53K subscribers
36 photos
2 videos
408 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
<?php
$array = ['name' => 'Asliddin', 'age' => 17];
$json = json_encode($array);
echo $json; // Outputs {"name":"Asliddin","age":17}

$decodedArray = json_decode($json, true);
print_r($decodedArray);
?>

Json ishlatish funksiyasi
🔥5
KitobIzlovchi.php
35.3 KB
«📚Kitob Izlovchi Bot» kodi.

🤖 Ushbu kod orqali Hohlagan kitobingizni topishingiz mumkin bo'ladi. MakerBot'larga ham tushadi.

🧑‍💻 Manba: @education_coders
🚀 Tarqatildi: @education_coders
🎉3
save.php
926 B
🌟 Barcha tarmoqlardan video yuklovchi api!

🧑‍💻 Manba: @education_coders
🚀 Tarqatildi: @education_coders
🔥5🤬5
ism.php
763 B
📖 Ism manosi API kod. Gruppada so'rashgan edi.

🌐 APini ishlatish: http://localhost/ism.php?EmeraldDev=Ali

🧑‍💻 Manba: @education_coders
🚀 Tarqatildi: @education_coders
👍5
$ret1 = bot("getChatMember",[
         "chat_id"=>"@Education_Coders", // 1-kanal useri
         "user_id"=>$uid,
         ]);
$ret2 = bot("getChatMember",[
         "chat_id"=>"@Education_Coders", // 2-kanal useri
         "user_id"=>$uid,
         ]);
$stat1 = $ret1->result->status;
$stat2 = $ret2->result->status;
         if(($stat1=="creator" or $stat1=="administrator" or $stat1=="member") and ($stat2=="creator" or $stat2=="administrator" or $stat2=="member")){
}else{
    bot('sendMessage',[
      'chat_id'=>$cid,
      'text'=>"
<b>Assalomu Aleykum <a href='tg://user?id=$uid'>$name</a> Botdan Foydalanish uchun
Quyidagi Kanallarimizga Obuna bo'lishingiz kerak!
A'zo bo'lib /start ni   bosing!
Botni keyin toʻliq ishlatishingiz mumkin!</b>",
         'disable_web_page_preview'=>true,
         'parse_mode'=>'html',
      'reply_markup'=>json_encode([
   'inline_keyboard'=>[
       [['text'=>"📢A'zo Bo'lish🎗","url"=>"https://t.me/Education_Coders"]],
[['text'=>"📢A'zo Bo'lish🎗","url"=>"https://t.me/Education_Coders"]],
]
    ])
    ]);
return false;
  }


Majburiy a'zo funksiyasi. Kanalga a'zo bo'lmasa bot ishlamaydi.
🍓4🤬2
WebhookBot.php
24.1 KB
«🔁 Webhook Bot» kodi

🤖Ushbu kod orqali saytlarga kirish shart emas.

🧑‍💻 Manba: @education_coders
🚀 Tarqatildi: @education_coders
🍓7🤬3🗿2
function getName($id){
$getname = bot('getchat',['chat_id'=>$id])->result->first_name;
if(!empty($getname)){
return $getname;
}else{
return bot('getchat',['chat_id'=>$id])->result->title;
}}

👉 ID orqali chat nomini aniqlab beradi.
🔎 Sample: getName("5813831511");
🔥3🤬3🗿1
if($data == "random"){
$rand = array('1','2','3','4','5','6','7','8','9');
$ra = array_rand($rand, 1);
bot('editMessageText',[
'chat_id'=>$cid2,
'message_id'=>$mid2,
'text'=>"<b>$rand[$ra] raqami tushdi!</b>",
'parse_mode'=>"html",
]);
}


🔁 Random qiladigan funksiya
🥰5🤬42🗿1
Url.php
7 KB
📨 Xabar bot kodi. (Bot kodi tugallanmagan). Siz o'zingiz istagan referallik ssilkangizni botning barcha a'zolariga yuborishingiz mumkin.

🧑‍💻 Manba: @education_coders
🚀 Tarqatildi: @education_coders
3🔥2💯1
📹 Video ustiga thumbnail qo'yish funksiyasi!

$video_file_path = '/path/to/video.mp4'; // or any 
$thumbnail_path = '/path/to/thumbnail.jpg'; // thumbnail image path and filename

// Load video file with FFmpeg
$ffmpeg = FFMpeg\FFMpeg::create();
$video = $ffmpeg->open($video_file_path);

// Get video duration
$duration = $video->getFFProbe()->format($video_file_path)->get('duration');

// Get the thumbnail image at 50% of video duration
$frame = $video->frame(FFMpeg\Coordinate\TimeCode::fromSeconds($duration / 2))->save($thumbnail_path);

// Output the thumbnail image to browser
header('Content-Type: image/jpeg');
echo file_get_contents($thumbnail_path);
👍2🔥2
Fikrbot.php
6.6 KB
💬 Kanalga fikr bildirish bot kodi. Admin paneli mavjud.

🧑‍💻 Manba: @education_coders
🚀 Tarqatildi: @education_coders
🔥5👍2🎉1
Vkm.php
43.2 KB
🎧 Mukammal admin panelga ega VKM bot kodi. Rington bot qilib, ishlatsa ham bo'ladi.

🧑‍💻 Manba: @education_coders
🚀 Tarqatildi: @education_coders
🔥6🎉21👍1
if(isset($message->video)){
bot('deleteMessage',[
'message_id'=>$mid,
'chat_id'=>$chat_id,
]);
bot('SendMessage',[
'chat_id'=>$chat_id,
'text'=>"🎥 <b>Video yubormang!</b>",
'parse_mode'=>"html",
'relpy_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>"👥 Guruhga qo'shish",'url'=>"https://t.me/$bot?startgroup=new"]],
]
])
]);
}

👥 Guruhga video yuborilsa o'chiradigan funksiya.
🔥5👍3🎉3
JoinRequest.php
3 KB
Guruhlarda kirdi chiqdilarni tozalaydi. Kanal va guruhlarga kelgan qo'shilish so'rovlarini avto qabul qiladi.

🧑‍💻 Manba: @education_coders
🚀 Tarqatildi: @education_coders
4💯1
GetStickerID.php
1.5 KB
🎫 Stiker yuborilsa, uning identifikatori aniqlab beradigan bot kodi. Admin paneli mavjud emas.

🧑‍💻 Manba: @education_coders
🚀 Tarqatildi: @education_coders
🔥6
TikTokStat.php
637 B
🔍 TikTok Profil statistikasini aniqlab beruvchi funksiya.

🧑‍💻 Manba: @education_coders
🚀 Tarqatildi: @education_coders
🎉2🍓2
<?php

$token = "bot_tokeni"; // Bot tokenini kiritish kerak
$channelUsername = "kanal_manzili"; // Kanal username'ini kiritish kerak

$url = "https://api.telegram.org/bot{$token}/getChat?chat_id={$channelUsername}";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);

$data = json_decode($response, true);

if ($data['ok']) {
    if ($data['result']['type'] == 'channel') {
        echo "Kanal topildi.";
    } else {
        echo "Kanal topilmadi.";
    }
} else {
    echo "Xato yuz berdi: " . $data['description'];
}


🌐 Kanal mavjud yoki mavjud emasligini aniqlaydigan api.
4💯2
📌 JSON va XML farqlari va ular nima?

Bu ikkita texnologiyalarning eng asosiy katta farqlaridan biri JSON yengil ma'lumot almashish turi, XML esa HTML kabi kengaytirilgan belgilash tili hisoblanadi.

— XML (
https://ru.wikipedia.org/wiki/XML) dan ko'proq Android dasturchilar foydalanib kelishadi.

— JSON (
https://en.wikipedia.org/wiki/JSON) da siz number, array, string va boshqa data typelardan foydalanaolsangiz, XML da ma'lumotlaringiz string holatida bo'lishi kerak.

P/s:
Siz qaysi biridan ko'proq foydalanasiz? Fikrlaringiz yozib qoldirishingiz mumkin!
🔥3
mines.py
39.6 KB
💎 «Diamond signal bot» kodi
💰 Foydalanuvchilarga pullik signal beradi.
📊 Balans, til tanlash, referal tizimi va admin boshqaruvi mavjud.
🖼 Signal – maxsus rasm va koordinatalar bilan birga yuboriladi.

🧑‍💻 Manba: @education_coders
🚀 Tarqatildi: @education_coders
🎉21👍1
info.php
817 B
📃 Telegram kanal haqida ma'lumot olib beradigan APi

🧑‍💻 Manba: @education_coders
🚀 Tarqatildi: @education_coders
🔥5