ⱮℜᎧÂN MOᕼᗩᗰᗰEᗪ ☬
1.91K subscribers
53 photos
27 videos
83 files
99 links
قناة برمجية تساعد الناس هي قناة تهدف إلى توفير المعلومات والموارد اللازمة لتعلم البرمجة وتطوير المهارات البرمجية

@filemtime
@MROAN8
@M6tbot
Download Telegram
$rep = $message->reply_to_message;
if(preg_match('سويله تاك',$text)){
$text = str_replace('سويله تاك ','',$text);
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"[$text](tg://user?id=".$rep->from->id.")",
'parse_mode'=>'markdown'
]);
}
كود تاك لشخص بالرد على رسالت
--------------
@php88
👍1
if($text == 'هنا الكلمه'){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"[هنا الرد](وهنا الرابط)",
]);
}
هاذه مجرد خلي الكلمه التريده يرد عليها والجراب الرد مالها بين هذن هيج مثلا [هلو](t.me/k5ot
--------------
@php88
$HMOD = explode('كول',$text);
if($HMOD){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>$HMOD[1],
]);
}
مجرد ضيفه الملف البوتات اي بو
--------------
@php88
$ch = "@هنا معرف لقناه";
$join = file_get_contents("https://api.telegram.org/bot".API_KEY."/getChatMember?chat_id=$ch&user_id=".$from_id);
if($message && (strpos($join,'"status":"left"') or strpos($join,'"Bad Request: USER_ID_INVALID"') or strpos($join,'"status":"kicked"'))!== false){
bot('sendMessage', [
'chat_id'=>$chat_id,
'text'=>"المعــذره اشترك في قناة البوت🀄️
- قناة الــبوت @$ch •",
]);
bot("sendmessage",[
"chat_id"=>$sudo,
"text"=>"-اشترك عضو في قــناتك
• معــرفه ؛ @$from_user",
]);
}
مجرد ضيفه الملف البوتات اي بو
--------------
@php88
كود الاشتراك الاجباري
if($text == 'الاعضاء'){
$count = count($get);
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"عدد الاعضاء هو : $count",
]);
}
$bc = explode("اذاعه", $text);
if($bc){
for($y=0;$y<count($get); $y++){
bot('sendMessage', [
'chat_id'=>$get[$y],
'text'=>"$bc[1]",
'parse_mode'=>markdown,
'disable_web_page_preview'=>true,
]);
}
}
هاذه الكود عدد الاعضاء واذاعه بنفس الو
--------------
@php88
<?php
ob_start();
$API_KEY = "توكن";
$ch = "معرف القناه@";
////////////////
define('API_KEY',$API_KEY);
function bot($method,$datas=[]){
$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,$datas);
$res = curl_exec($ch);
if(curl_error($ch)){
var_dump(curl_error($ch));
}else{return json_decode($res);}}
$update = json_decode(file_get_contents('php://input'));
$message = $update->message;
$text = $message->text;
$chat_id = $message->chat->id;
$name = $message->from->first_name;
$from_id = $message->from->id;
$join = file_get_contents("https://api.telegram.org/bot".API_KEY."/getChatMember?chat_id=$ch&user_id=".$from_id);
if($message && (strpos($join,'"status":"left"') or strpos($join,'"Bad Request: USER_ID_INVALID"') or strpos($join,'"status":"kicked"'))!== false){
bot('sendMessage', [
'chat_id'=>$chat_id,
'text'=>"👋🏻┇اهلا بك عزيزي
🔘┇ليمكنك استخدام البوت
⚠️┇عليك الاشتراك في القناة
📡┇٭⁞⸽【 @معرف قناتك 】⸽⁞٭"
]);return false;}
$admin = ايديك;
$u = explode("\n", file_get_contents("mem.txt"));
$mode = file_get_contents('mode.txt');
function re($d,$f,$g){
return str_replace($d, $f, $g);
}
if ($from_id==$admin) {
if($text == "/start" ){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"هلا مطوري",
'resize_keyboard'=>true,
'reply_markup'=>json_encode([
'keyboard'=>[
[['text'=>'ارسال رساله الى الكل 🚀']],
[['text'=>'الاعضاء 👥']]
]
])
]);
}
if ($text == 'ارسال رساله الى الكل 🚀') {
file_put_contents('mode.txt', "bc");
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"ارسال اي شي ليتم نشره"
]);
}
if( $mode=="bc" ){
if($message->forward_from){
for($i=0;$i < count($u); $i++){
bot('forwardMessage',[
'chat_id'=>$u[$i],
'from_chat_id'=>$chat_id,
'message_id'=>$message->message_id
]);
}}
if ($text != "ارسال رساله الى الكل 🚀") {
# code...
for ($i=0; $i < count($u); $i++) {
bot('sendMessage',[
'chat_id'=>$u[$i],
'text'=>"# $text"
]);
}
unlink('mode.txt');
}
if ($message->photo) {
for ($i=0; $i < count($u); $i++) {
bot('sendPhoto',[
'chat_id'=>$u[$i],
'photo'=>$message->photo[0]->file_id,
'caption'=>$message->caption
]);
}
unlink('mode.txt');
}
if ($message->voice) {
for ($i=0; $i < count($u); $i++) {
bot('sendvoice',[
'chat_id'=>$u[$i],
'voice'=>$message->voice->file_id,
'caption'=>$message->caption
]);
}
unlink('mode.txt');
}
}
$c = count($u);
if ($text == 'الاعضاء 👥') {
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"مستخدمين البوت 🤖 الخاص بك :- $c"
]);
}
}
if ($update && !in_array($chat_id, $u)) {
file_put_contents("mem.txt", $chat_id."\n",FILE_APPEND);
}
مو اي واحد يضيفه بي
--------------
@php88
كود كليشه ادمن
$ADMIN = ايديك;
elseif($text == "/admin" && $from_id == $ADMIN){
sendaction($chat_id, typing);
bot('sendmessage', [
'chat_id' => $chat_id,
'text' =>"مرحبا بك سيدي المدير في الاعدادات الخاصه بك",
'parse_mode'=>'html',
'reply_markup'=>json_encode([
'keyboard'=>[
[
['text'=>"اعضاء البوت"],['text'=>"رساله عامه"]
],
],'resize_keyboard'=>true
])
]);
}
elseif($text == "اعضاء البوت" && $from_id == $ADMIN){
sendaction($chat_id,'typing');
$user = file_get_contents("Member.txt");
$member_id = explode("\n",$user);
$member_count = count($member_id) -1;
sendmessage($chat_id , " ْعضو مشترك :$member_count" , "html");
}
elseif($text == "رساله عامه" && $from_id == $ADMIN){
file_put_contents("ali.txt","bc");
sendaction($chat_id,'typing');
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"حسنا اكتب رسالتك الان",
'parse_mode'=>'html',
'reply_markup'=>json_encode([
'keyboard'=>[
[['text'=>'/semo']],
],'resize_keyboard'=>true])
]);
}
elseif($ali == "bc" && $from_id == $ADMIN){
file_put_contents("ali.txt","none");
SendAction($chat_id,'typing');
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"تم ارسال رسالتك الى جميع اعضاء البوت ",
]);
$all_member = fopen( "Member.txt", "r");
while( !feof( $all_member)) {
$user = fgets( $all_member);
SendMessage($user,$text,"html");
}
}
كود اذاعه و عدد مشتركين
--------------
@php88
$sudo = ايديك;
if($text == "اذاعه" and $for == $sudo){
file_put_contents("mode.txt", "bc");
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"عزيــزي⇓
ارســل الكليشه للأذاعــه🎋"
]);
}
$mode = file_get_contents("mode.txt");
if($text != "اذاعه" and $mode=="bc" and $for == $sudo){
for ($i=0; $i < count($groups); $i++) {
bot('sendMessage',[
'chat_id'=>$groups[$i],
'text'=>" $text"
]);
}
unlink("mode.txt");
}
مجرد ضيفه الملف البوت التريد
--------------
@php88
كود اذاعة
if($text == "هلاو"){
bot( sendaudio ,[
chat_id =>$chat_id,
audio =>"رابط بصمه",
reply_to_message_id =>$message->message_id,
]);
}
كود الي يخلي بوت يرد بصمه ⚱️
مين جيب رابط بصمه
تنشر بصمه الي تريد ضيفها ب قناه من تنشر اطي خيارات للبصمه من ضمن خيارات اكو نسخ رابط انسخ
--------------
@php88
كود رد بصمة
$sudo = ايديك;
$rdod = json_decode(file_get_contents("rep.json"),true);
if(preg_match('/^(اضف رد)(.*)/',$text)){
$text = str_replace('اضف رد','',$text);
$text = explode("\n",$text);
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"📣⇨تم اضافــة رد بنجاح"
]);
$rdod[$text[0]] = $text[1]; file_put_contents('rep.json',json_encode($rdod));
}
foreach($rdod as $key => $val){
if($text == $key){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"$rdod[$key]",
'parse_mode'=>"MarkDown",
'disable_web_page_preview'=>true,
'reply_to_message_id'=>$mid
]);
}
مجرد ضيفه الملف البوتات اي بو
--------------
@php88
كود اضف رد
$photo1 = json_decode(file_get_contents("photo.json"),true);
if(preg_match('/^(اضف صورة)(.*)/',$text)){
$text = str_replace('اضف صورة ','',$text);
$text = explode("\n",$text);
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"تم اضافة رد صورة بنجاح! 📂✓"
]);
$photo1[$text[0]] = $text[1]; file_put_contents('photo.json',json_encode($photo1));
}
foreach($photo1 as $photo2 => $photo3){
if($text == $photo2){
bot('sendphoto',[
'chat_id'=>$chat_id,
'photo'=>$photo1[$photo2],
'reply_to_message_id'=>$message->message_id,
]);
}
}
كلش سهل ضيفه بل ملف وتعال للبوت كله اضف صوره ونطي جوه رابط
--------------
@php88
كود تضف صوره
$video1 = json_decode(file_get_contents("video.json"),true);
if(preg_match('/^(اضف فيديو)(.*)/',$text)){
$text = str_replace('اضف فيديو ','',$text);
$text = explode("\n",$text);
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"تم اضافة رد فيديو بنجاح! 📂✓"
]);
$video1[$text[0]] = $text[1]; file_put_contents('video.json',json_encode($video1));
}
foreach($video1 as $video2 => $video3){
if($text == $video2){
bot('sendvideo',[
'chat_id'=>$chat_id,
'video'=>$video1[$video2],
'reply_to_message_id'=>$message->message_id,
]);
}
}
كلش سهل ضيفه بل ملف وتعال للبوت كله اضف فيديو ونطي جوه رابط
--------------
@php88
كود اضف فيديو
$document1 = json_decode(file_get_contents("document.json"),true);
if(preg_match('/^(اضف متحرك)(.*)/',$text)){
$text = str_replace('اضف متحرك ','',$text);
$text = explode("\n",$text);
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"تم اضافة رد متحرك بنجاح! 📂✓"
]);
$document1[$text[0]] = $text[1]; file_put_contents('document.json',json_encode($document1));
}
foreach($document1 as $document2 => $document3){
if($text == $document2){
bot('senddocument',[
'chat_id'=>$chat_id,
'document'=>$document1[$document2],
'reply_to_message_id'=>$message->message_id,
]);
}
}
كلش سهل ضيفه بل ملف وتعال للبوت كله اضف متحرك ونطي جوه رابط
--------------
@php88
كود اضف متحركه
if($text =="الوقت"){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"🇮🇶 البلد : العراق \n" . "💤 السنة : " . date("Y") . "\n" . "Ⓜ️ الشهر : " . date("n") . "\n" . "🛂 اليوم :" . date("j") . "\n" . "⚠️ الساعه :" . date('g', $time) . "\n" . "🌀 الدقيقه :" . date('i', $time) . "\n" . " 💯",
'reply_to_message_id'=>$message->message_id
]);
}
هاذه الكود مال الرقت لازم تكون الحصانه مالتك متعرفه ع الوق
--------------
@php88
كود الوقت
if($text == "الوقت"){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>'الوقت
'.date("h:", $time).''.date("i:", $time).''.date("s", $time).''.date("a", $time).'
التاريخ
'.date("20y/", $time).''.date("n/", $time).''.date("j", $time).'',
'reply_to_message_id'=>$message->message_id,]);}
بس ضيفه الملف البوت التريده
--------------
@php88
كود الوقت2
$sudo = ايديك;
if($text == 'الملف' and $chat_id == $sudo){
bot('sendDocument',[
'chat_id'=>$chat_id,
'document'=>new CURLFile(__FILE__)
]);
}
ضيف هاذه الكود بكل ملفاتك حته بعد من تحتاج ملف بوتك بس تطب عليه وتكله ملف يدزه ال
--------------
@php88
كود جلب الملف
if($text == "ايدي"){
$username = $message->from->username;
$photo = "http://telegram.me/$username";
bot('SendPhoto',[
'chat_id'=>$chat_id,
'photo'=>$photo,
'caption'=>"
💡┇اســمك【 $name 】
- 📫┇معرفــك【 @$username 】
- 📮┇ايديــك【 $from_id 】
- 📯┇ايــدي المجمــوعه 【 $chat_id 】
🎓┇ رسائــلك ⇨ $memb",
'parse_mode'=>"markdown",
]);
}

هاذه الكود يطيك الايدي مالتك وعدد رسائل وكذالك صورتك كود كلش حلو ومرت
--------------
@php88
كود ايدي1
$mid = $message->message_id;
$memb = $update->message->message_id;
$id = $message->from->id;
$us = $update->message->from->username;
if($text == "ايدي" and $you == "creator"){
$get_progile = file_get_contents("https://api.telegram.org/bot$API_KEY/getUserProfilePhotos?user_id=$id&limit=1");
$json = json_decode($get_progile);
$user_photo = $json->result->photos[0][0]->file_id;
bot('sendPhoto',[
'chat_id'=>$chat_id,
'photo'=>$user_photo,
'caption'=>"
🔸 • ايديك : $id
🔸 • معرفك : @$us
🔸 • موقعك ← منشئ ثكيل 🙊💥
🔸 • رسائل المجموعه ← $memb ",
'reply_to_message_id'=>$mid,
]);
}
if($text == "ايدي" and $you == "administrator"){
$get_progile = file_get_contents("https://api.telegram.org/bot$API_KEY/getUserProfilePhotos?user_id=$id&limit=1");
$json = json_decode($get_progile);
$user_photo = $json->result->photos[0][0]->file_id;
bot('sendPhoto',[
'chat_id'=>$chat_id,
'photo'=>$user_photo,
'caption'=>"
🔸 • ايديك : $id
🔸 • معرفك : @$us
🔸 • موقعك ← ادمن طاش 😀🍂
🔸 • رسائل المجموعه ← $memb ",
'reply_to_message_id'=>$mid,
]);
}
if($text == "ايدي" and $you == "member"){
$get_progile = file_get_contents("https://api.telegram.org/bot$API_KEY/getUserProfilePhotos?user_id=$id&limit=1");
$json = json_decode($get_progile);
$user_photo = $json->result->photos[0][0]->file_id;
bot('sendPhoto',[
'chat_id'=>$chat_id,
'photo'=>$user_photo,
'caption'=>"
🔸 • ايديك : $id
🔸 • معرفك : @$us
🔸 • موقعك ← عضو مهتلف 😹
🔸 • رسائل المجموعه ← $memb ",
'reply_to_message_id'=>$mid,
]);
}
هاذه الكود يطيك الايدي مالتك والموقع وعدد رسائل وكذالك صورتك كود كلش حلو ومرت
--------------
@php88
كود ايدي2
$mid = $message->message_id;
$memb = $update->message->message_id;
$id = $message->from->id;
$us = $update->message->from->username;
if($text == "ايدي" and $you == "creator"){
$get_progile = file_get_contents("https://api.telegram.org/bot$API_KEY/getUserProfilePhotos?user_id=$id&limit=1");
$json = json_decode($get_progile);
$user_photo = $json->result->photos[0][0]->file_id;
bot('sendPhoto',[
'chat_id'=>$chat_id,
'photo'=>$user_photo,
'caption'=>"
🔸 • ايديك : $id
🔸 • معرفك : @$us
🔸 • موقعك ← منشئ ثكيل 🙊💥
🔸 • رسائل المجموعه ← $memb ",
'reply_to_message_id'=>$mid,
]);
}
if($text == "ايدي" and $you == "administrator"){
$get_progile = file_get_contents("https://api.telegram.org/bot$API_KEY/getUserProfilePhotos?user_id=$id&limit=1");
$json = json_decode($get_progile);
$user_photo = $json->result->photos[0][0]->file_id;
bot('sendPhoto',[
'chat_id'=>$chat_id,
'photo'=>$user_photo,
'caption'=>"
🔸 • ايديك : $id
🔸 • معرفك : @$us
🔸 • موقعك ← ادمن طاش 😀🍂
🔸 • رسائل المجموعه ← $memb ",
'reply_to_message_id'=>$mid,
]);
}
if($text == "ايدي" and $you == "member"){
$get_progile = file_get_contents("https://api.telegram.org/bot$API_KEY/getUserProfilePhotos?user_id=$id&limit=1");
$json = json_decode($get_progile);
$user_photo = $json->result->photos[0][0]->file_id;
bot('sendPhoto',[
'chat_id'=>$chat_id,
'photo'=>$user_photo,
'caption'=>"
🔸 • ايديك : $id
🔸 • معرفك : @$us
🔸 • موقعك ← عضو مهتلف 😹
🔸 • رسائل المجموعه ← $memb ",
'reply_to_message_id'=>$mid,
]);
}
هاذه الكود يطيك الايدي مالتك والموقع وعدد رسائل وكذالك صورتك كود كلش حلو ومرت
--------------
@php88
كود ايدي2
if($text == "صورتي"){
$username = $message->from->username;
$photo = "http://telegram.me/$username";
bot('SendPhoto',[
'chat_id'=>$chat_id,
'photo'=>$photo,
'caption'=>"عزيزي هاذه صورتك",
]);
}
مجرد ضيفه الملف الحمايه او الردود
--------------
@php88
كود صورتي