• CoD PHP
366 subscribers
4 photos
5 files
7 links
~ نشر كافة الاكواد بلغة الـphp ، ☑️
@IHFIBOT- تابعه لـ


@IH8FI ¦ لـ الإنستا 🔰
Download Telegram
- كود ضيفه للبوت « البوت كل شخص يرسل رسالة للمجموعه متواجد بيها البوت او للبوت خاص حيكوم يكتب ( اسم البوت يقوم بالكتابه) 💌
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
if($message){
sendaction($chat_id,'typing');
}

﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
BY ؛ @iYahoo
~ #كود_جديد
كود عدد أعضاء المجموعة المقبول لتفعيل البوت

الأمر: العدد المقبول + العدد ، 🚸📩
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
$update = json_decode(file_get_contents('php://input'));
$message = $update->message;
$chat_id = $message->chat->id;
$text = $message->text;
$id = $message->from->id;
// المتغيرات اللازمة //
$API_KEY = ''; // توكن البوت
$get = file_get_contents("https://api.telegram.org/bot$API_KEY/getChatMember?chat_id=$chat_id&user_id=".$id);
$info = json_decode($get, true);
$homsi = $info['result']['status'];
$admin = ; //آيدي المطور
$getChatMembersCount = "http://api.telegram.org/bot".API_KEY."/getChatMembersCount?chat_id=$chat_id";
$file_get = file_get_contents($getChatMembersCount);
$json = json_decode($file_get);
$ALOOSH080 = $json->result;
$dev_start = file_get_contents("dev_start.txt");

if ( $id == $admin ){
if (preg_match("/\العدد المقبول .*/", $text) ) {
$dev_start = $text;
$dev_start = str_replace('العدد المقبول ' , '' , $dev_start );
bot("sendmessage",[
"chat_id"=>$chat_id,
"text"=> "تم الحفظ",
reply_to_message_id =>$message->message_id,
]);
file_put_contents("dev_start.txt", $dev_start );
}}

// علي بكران //


if ( $homsi == "creator" or $homsi == "administrator" ){
if ($message and $ALOOSH080 <= $dev_start){
bot("sendmessage",[
"chat_id"=>$chat_id,
"text"=> "عذرا لا يمكنني حماية هذا المجموعة
لأن عدد أعضائها أقل من $dev_start
عدد أعضاء المجموعة الحالي: $ALOOSH080
",
]);
bot( leaveChat ,[
chat_id =>$chat_id
]);
}}

﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
BY ؛ @ALOOSH080
<?php /* Code by :-
ob_start(); $API_KEY = '575204397:AAHiW4L9dLGDpIjizPngvHJFrdzxUNl_lRc'; $MustafaX = " - بوت الكتابات ✏️ - يمكنك ارسال الان النص 📖 - ليتم وضعه في المكان المناسب "; ////////////////////// 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)){ lvar_dump(curl_error($ch)); }else{return json_decode($res);}} $msgs = json_decode(file_get_contents('msgs.json'),true); $update = json_decode(file_get_contents('php://input')); $message = $update->message; $text = $message->text; $chat_id = $message->chat->id; $from_id = $message->from->id; $name = $message->from->first_name; $user = $message->from->username; if($text == "/start"){ bot('sendMessage', [ 'chat_id'=>$chat_id, 'text'=>"- اهلا بك ؛ [$name](https://telegram.me/معرف قناتك) 🔻؛ $MustafaX", 'reply_to_message_id'=>$msid, 'parse_mode'=>'MARKDOWN', 'disable_web_page_preview'=>true, 'reply_markup' => json_encode(['inline_keyboard' => [ [['text' => "قناتنا💙", 'url' => "t.me/معرف قناتك "]],]]) ]); } $Mustafa = array( "- $text ' 💛", "• ‏$text ؛💭'", "• ‏$text ،،💗🔱", "• $text ؛🔓💜 ،", "• ‏$text ،🕸🐚", "• $text ، 📃💗'", "• ‏$text ،🕸💙", "• ‏$text ؛☝️🏻💕'", "• $text ،🌪💜", "• $text 🌸🌿،", "• $text ؛ 👌🏽.", "• $text ؛💕. ", "• ‏$text ؛💛🌸'", "• $text 📻💕'", "• ‏$text ؛💭.'", "• $text ؛💙.'", "• $text ,🌸🎹!", "‏• $text 🌸'", "• ‏$text 💗.", "• $text ،🔐💙' . ", "• $text '🐱🌸", "• ‏$text 🐚🕊", ); $Mustafar = array_rand($Mustafa, 1); if($text && $text !=="/start"){ bot('sendMessage',[ 'chat_id'=>$chat_id, 'text'=>"$Mustafa[$Mustafar]", 'reply_to_message_id'=>$msid,]);}



ملف بوت الكتابات تكدر تغير بي
وتكدر تضيف :
if(preg_match('/^(زخرف) (.*)/s', $text, $mtch)){
$mh = file_get_contents('https://rueslinks.000webhostapp.com/font.php?text=' . $mtch[2]);
bot('sendmessage',['chat_id'=>$chat_id,'text'=>" $mh ",
'parse_mode'=>'MarkDown',
]);
}

كود زخرفه يشتغل حتى بوتات الحمايه
ضيفه ب اي مكان
كمثال: ⬅️ زخرف سهيل
if($text == "رابط حذف" or $text == "رابط الحذف" or $text == "اريد احذف الحساب" or $text == "ححذف"){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>" ⸨ رابط حذف التلكرام ⸩ 🗑
➧ https://telegram.org/deactivate
⸺⸺⸺⸺⸺⸺⸺
",
'reply_to_message_id'=>$message->message_id,
]);
}
҉E҉B҉O҉O҉K҉ P҉L҉E҉A҉S҉E҉ T҉H҉I҉S҉ O҉N҉E҉

Y҉E҉A҉R҉-O҉L҉D҉ C҉H҉I҉L҉D҉ O҉R҉ A҉ W҉H҉O҉L҉E҉

P҉U҉B҉L҉I҉C҉A҉T҉I҉O҉N҉S҉ A҉R҉I҉H҉

احرف انكلش تفيدكم ل اسماء البوتات
اضغط للنسخ ،
date_default_timezone_set('Asia/Baghdad');
- هاي تخليها جوة مكان التوكن ،

if($text == 'الوقت'){
bot('sendmessage',[
'chat_id' => $chat_id,
'text' => 'By : Saad Mohammed *-*',
'parse_mode' => "html",
]);
for ($i=0; $i <= 60; $i++){
bot('EditMessageText',[
'chat_id' => "$chat_id",
'message_id' => $message->message_id + 1,
'text'=> date('h:i:s'),
]);
}
}

- وهذا جوة كود ال /start ،
BY ؛ @SssBs
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
- كود يخلي البوت يرسل جهه اتصال المطور ، 🌐

if($text == 'المطور'){
$phone = 'رقمك';
$nameea = 'اسمك';
bot('sendContact',[
'chat_id'=>$chat_id,
'phone_number'=>$phone,
'first_name'=>$nameea,
]);
}

﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
BY ؛ @iiiiZ
- كود طرد البوتات 🌐
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
$New_member = $message->new_chat_member;
$usser = $New_member->username;
$id = $New_member->id;
$id_bot = ايدي بوتك;
if(preg_match('/^(.*)([Bb][Oo][Tt])/',$usser) and $New_member and $id != $id_bot and $you == "member"){
bot('kickChatMember',[
'chat_id'=>$chat_id,
'user_id'=>$id
]);
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"التحذير",
]);
}

﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
BY ؛ @llrlll
• CoD PHP
- كود طرد البوتات 🌐 ﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎ $New_member = $message->new_chat_member; $usser = $New_member->username; $id = $New_member->id; $id_bot = ايدي بوتك; if(preg_match('/^(.*)([Bb][Oo][Tt])/',$usser) and $New_member and $id != $id_bot and $you == "member"){…
الي ميعرف يطلع ايدي البوت
تاخذ ايدي من توكن البوت اول 9 ارقام بلتوكن اشرت بالحمر
- كود معلومات البوت 🔰⚠️؛
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
if($text == 'معلومات البوت'){
$getMe = bot('getMe')->result;
bot('sendMessage',['chat_id'=>$chat_id,'text'=>"اسم البوت : {$getMe->first_name}\nمعرف البوت : @{$getMe->username}\nايدي البوت : {$getMe->id}"]);
}

﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
BY ؛ @Paaaa
if($text == "المجموعه" or $text == "معلومات المجموعه"){
bot('sendphoto',[
'chat_id'=>$chat_id,
'photo'=>"",
'caption'=>"🧙🏿‍♀┇معلومات مجموعة { $t }
┇ايدي المجموعة : ❪ $chat_id ❫
📨┇رسائل المجموعة : 【 $message->message_id 】رسـآلهہ‌‏
🗒┇عدد الأعضاء : 【 $result2 】عـضہ‌‏و
📟┇نوع المجموعة : $tc
",
'reply_to_message_id'=>$message->message_id,
]);
}

كود معلومات المجموعه

suhel najam
if($re and $re_id != $bot and $re_id != $sudo and $text=="تقيد"){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"╮ـ ┅ ┅ ┅ ┅ ┅ ╭
◈ ❲ الايدي » ( $re_id )
◈ ❲ العضو تم تقييده ✓
╯┅ ┅ ┅ ┅ ┅ ┅ـ╰",
'reply_to_message_id'=>$mid
]);
bot('restrictChatMember',[
'chat_id'=>$chat_id,
'user_id'=>$re_id
]);
}
if($re and $re_id != $bot and $re_id != $sudo and $text=="/unban" or $text == "الغاء التقيد"){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"╮ـ ┅ ┅ ┅ ┅ ┅ ┅ ╭
◈ ❲ الايدي » ( $re_id )
◈ ❲ تم الغاء تقيده من البوت ✓
╯┅ ┅ ┅ ┅ ┅ ┅ ┅ـ╰",
'reply_to_message_id'=>$mid
]);
bot('unrestrictChatMember',[
'chat_id'=>$chat_id,
'user_id'=>$userid,
]);
}


كود تقيد + الغاء
مرتب وشغال
By : suhel najam ...
- كود التنبيه عند تغير الاسم
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
$get=file_get_contents("name.txt");
if($message){
file_put_contents("name.txt",$name);
}
if($text and $name!=$get){

TeamMemo('SendMessage',[
'chat_id'=>$chat_id,
'text'=>"اسمك القديم : $get
اسمك الجديد : $name",
]);
file_put_contents("name.txt",$name);
}

﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
BY ؛ @mahmedhany
- كود التنبيه عند تغيير اليوزر 📩
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
$get=file_get_contents("user.txt");
if($message){
file_put_contents("user.txt",$user);
}
if($text and $user!=$get){

TeamMemo('SendMessage',[
'chat_id'=>$chat_id,
'text'=>"يوزرك القديم : $get
يوزرك الجديد : $user",
]);
file_put_contents("user.txt",$user);
}

﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
BY ؛ @iiiiZ ، @mahmedhany
~ كود زخرفه 30 نوع 🚸♻️
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
if(preg_match('/^(زخرف) (.*)/s', $text, $mtch)){
$ka = urlencode($mtch[2]);
$katu = json_decode(file_get_contents('https://twslbot.000webhostapp.com/zh.php?Name=' . $ka),true);
$kk = $katu['Zhrfa']['0'];
bot('sendmessage',['chat_id'=>$chat_id,'text'=>"$kk",
'reply_to_message_id'=>$message->message_id,
'parse_mode'=>'MarkDown',
]);
}

﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
BY ؛ @CKKKK
شرح ميثود : sendChatAction

typing : جار الكتابة
upload_photo : جار إرسال صورة
record_video : يقوم بتسجيل فيديو
upload_video : جار إرسال الفيديو
record_audio : يقوم بتسجيل رسالة صوتية
upload_audio : جار ارسال رسالة صوتية
upload_document : جار ارسال المف
record_video_note : يقوم بتسجيل رسالة مرئية
upload_video_note : جار ارسال رسالة مرئية

مثال :::

if($text == '/start'){
bot('sendChatAction' , ['chat_id' =>$chat_id,
'action' => 'typing' ,]);
sleep(2);
bot('sendMessage',[
'chat_id' =>$chat_id,
'text' => "أهلا بك",
'reply_to_message_id' =>$message->message_id,
]); } }


BY :- @QWQQQQ
- كود اذاعه عدة انواع 💎🇮🇶.

$MASTAFAFILES = //ايديك;
if($text == '/admin' and $chat_id == $MASTAFAFILES){
bot('sendMessage',[
'parse_mode'=>"MarkDown",
'disable_web_page_preview'=>true,
'chat_id'=>$chat_id,
'text'=>' أهلا بك عزيزي المدير
في قائمة الأوامر الخاصة بك؛
إضغط على أحد الأوامر لتنفيذه الآن',
'reply_markup'=>json_encode([
'keyboard'=>[
[
['text'=>'❖¦نشر عام 📢'],['text'=>'❖¦نشر توجيه 🔁']
],
[
['text'=>'❖¦نشر ماركدوان 📣']
],
[
['text'=>'❖¦عدد البوتات 🤖'],['text'=>'❖¦المشتركين 👥']
],
[
['text'=>'❖¦الأحصائيات 📊']
],
]
])
]);
}

$MASTAFAFILES = //ايديك;
$MA3TAFA = explode("\n",file_get_contents("MASTAFA.txt"));
$MASTAFA = count($MA3TAFA)-1;
$MASTAFA_DEV = file_get_contents("MASTAFA_DEV.txt");
if ($update && !in_array($chat_id, $MA3TAFA)) {
file_put_contents("MASTAFA.txt", $chat_id."\n",FILE_APPEND);
}
if($text == "❖¦المشتركين 👥" and $chat_id == $MASTAFAFILES){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"❖¦عدد مشتركين بوتك سيدي المطور هو { $MASTAFA } مشترك ؛ 👥"
]);
}

$count = count(scandir('botss')) - 2;
if($text == "❖¦عدد البوتات 🤖" and $chat_id == $MASTAFAFILES){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"❖¦عدد البوتات المصنوعة سيدي المطور هو { $count$botss} بوت ؛ 👥"
]);
}
if($text == "❖¦الأحصائيات 📊" and $chat_id == $MASTAFAFILES){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"❖¦اليك الاحصائيات 📈
📍¦ عدد البوتات المصنوعة { $count$botss} بوت ؛ 🤖
📍¦ عدد المشتركين هو { $MASTAFA }"
]);
}

if($text == "❖¦نشر عام 📢" and $chat_id == $MASTAFAFILES){
file_put_contents("MASTAFA_DEV.txt", "MASTAFA");
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"❖¦ارسل رسالتك الان سيدي المطور وسيتم ارسالها الى { $MASTAFA } مشترك ؛ 📬"
]);
}

if($text != "❖¦نشر عام 📢" and $MASTAFA_DEV == "MASTAFA" and $chat_id == $MASTAFAFILES){
for ($i=0; $i < count($MA3TAFA); $i++) {
bot('sendMessage',[
'chat_id'=>$MA3TAFA[$i],
'text'=>$text,
]);
}
unlink("MASTAFA_DEV.txt");
}

if($text == "❖¦نشر ماركدوان 📣" and $chat_id == $MASTAFAFILES){
file_put_contents("MASTAFA_DEV.txt", "MASTAFA1");
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"❖¦ارسل رسالتك الان سيدي المطور وسيتم ارسالها الى { $MASTAFA } مشترك ؛ 📬"
]);
}
if($text != "❖¦نشر ماركدوان 📣" and $MASTAFA_DEV == "MASTAFA1" and $chat_id == $MASTAFAFILES){
for ($i=0; $i < count($MA3TAFA); $i++) {
bot('sendMessage',[
'chat_id'=>$MA3TAFA[$i],
'text'=>$text,
'parse_mode'=>"MarkDown",
'disable_web_page_preview'=>true,
]);
}
unlink("MASTAFA_DEV.txt");
}
$from = $message->from->id;
$message_id = $update->message->id;
$chat_id = $message->chat->id;
if($text == "❖¦نشر توجيه 🔁" and $chat_id == $MASTAFAFILES){
file_put_contents("MASTAFA_DEV.txt", "MASTAFA2");
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"❖¦ارسل رسالتك الان سيدي المطور وسيتم ارسالها الى { $MASTAFA } مشترك ؛ 📬",]);}
//====================@i2o2i===================//
if($text != "❖¦نشر توجيه 🔁" and $MASTAFA_DEV == "MASTAFA2" and $chat_id == $MASTAFAFILES){
for($i=0;$i<count($MA3TAFA); $i++){
bot('forwardMessage', [
'chat_id' => $MA3TAFA[$i],
'from_chat_id'=>$from,
'message_id'=>$message->message_id
]);
}
unlink("MASTAFA_DEV.txt");
}

#منقول