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


• @IH8FI ¦ لـ الإنستا 🔰
Download Telegram
- كود البحث بألمواقع♥️📌

if($txt != "/start"){
bot('sendMessage',[
'chat_id'=>$chat_id,
'message_id'=>$message_id,
'text'=>"*تم العثور ع نتائج كثيرة 🔔*

اختر الموقع الذي تريد البحث فيه☑️🔍

*By :* @lSDKl",
'parse_mode'=>"Markdown",
'reply_markup'=> json_encode([
'inline_keyboard'=>[
[
['text'=>"App store 🌐", 'url'=>"https://www.apple.com/us/search?q=$txt"],
],
[
['text'=>"Google 📈", 'url'=>"https://www.google.com.iq/search?q=$txt"],
],
[
['text'=>"Youtube 🎥", 'url'=>"https://m.youtube.com/results?q=$txt&sm=3"],
],
[
['text'=>"instagram 📯", 'url'=>"https://www.instagram.com/$txt"],
],

[
['text'=>"Telegram 📪", 'url'=>"https://www.telegram.me/$txt"],
],
[
['text'=>"Github 🐱", 'url'=>"https://github.com/search?utf8=✓&q=$txt"],
],
]
])
]);
}


#توجيه_فقط
- كود الاشتراك الاجباري♥️📌
- تخلي قبل شرط /start 💗🌝


$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'=>"كليشه الاشتراك",
]);return false;}



#توجيه_فقط
if($text=="رتبتي" and $you == "creator"){
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"🎫¦ رتبتك » المنشىء 🏌🏻
🌿
",
'reply_to_message_id'=>$message->message_id,
]);
}
if($text=="رتبتي" and $you == "administrator"){
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"🎫¦ رتبتك » ادمن في البوت 🎖
🌿",
'reply_to_message_id'=>$message->message_id,
]);
}
if($text=="رتبتي" and $you == "member"){
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"🎫¦ رتبتك » فقط عضو 🙍🏼‍♂️
🌿",
'reply_to_message_id'=>$message->message_id,
]);
}


| كـود رتبتي 🚸

لـ بوتات حمايه فقط 👋🏿اذا جان بوتك غير حمايه وبي كود موقعي عادي ضيفه يصير 🎓

#هدوء
$new = array('هله اجه الكروب كله يرحب بي 💋',
'لضل صنم رحمه للكعبه احجي سولف اني اسولف وياك 🤗❤️',
'نورت الكروب 💋',
"هله بريحه هلي بكروبنه $title",
'ضويت الكروب شمعه ❤️',
'الجه الزين كله 💋',
'هلا بيك حبيبي نورت 🌝',
'نورت كلبي 💋',
'صير حباب ولضل ثكيل 🤷🏼‍♀️',
'❤️ نورتنه يروح عمتك ☺️',
'صير خوش عضو بالكروب ترا اطردك 🙃',
'نـَْﮩْْ❀ُུـَ❀﴿💡﴾ـۖؐـورتـ❥',
'مٰ̲ہٰٰنہٰٰوِٰڕٰ حہٰٰبྀ̲ہ؏ۤـٖٓہٰٰمٰ̲ہٰٰڕٰيِٰہٰٰ┊※🌝️‘’💛',);
$reply_new = array_rand($new, 1);


| كود يرحب بـ يدخل للكروب 👋🏻

| يرحب ب اكثر من رد مثل مموجود فوك 👆🏿 تكدر تغير ترحيبات وتضيفله بعد هم 🛰

|هـدوء
$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;
if($message){
$msgs['msgs'][$chat_id][$from_id] = ($msgs['msgs'][$chat_id][$from_id]+1);
file_put_contents('msgs.json', json_encode($msgs));}
if($text == "msg" or $text == "رسائلي"){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>' 〈🔖عدد رسائلك هيه 〉
〈 💁‍♂ ┇ $re_user 〉' .$msgs['msgs'][$chat_id][$from_id],]);}



كود عدد رسائلي▪️
الامر ( رسائلي) او( msg ) 💬.....
.
- كود شتراك اجباري + العضو من يشترك بلقناة البوت يبلغلك📌♥️،

$username = $update->message->from->username;
$reply = $message->reply_to_message->message_id;
$list = file_get_contents("blocklist.txt");
$rep = $message->reply_to_message->forward_from;
$id = $rep->id;
$ch = "@BoTs0";
$sudo = 500144557;
$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'=>"🚸• اشترك اولا،
@BoTs0",
]);
bot("sendmessage",[
"chat_id"=>$sudo,
"text"=>"- العضو قام بألاشتراك في قناة البوت ، 📌
- معلومات العضو الذي قام بألاشتراك ؛

• الاسم ؛ $name
• الايدي ؛ $from_id
• المعرف ؛ @$username
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎ ",
]);
die('مشيولي');
}


#توجيه_فقط
$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],
"reply_to_message_id"=>$message->message_id,
]);
}


| كـود اضف رد 🚠

| ضيفه لـ اي بوت عدك 📥

| هـدوء
ججمـعهہ مـبآرگة ♥️
آلهہم صـلي ع مـحمـد وآلهہ مـحمـد
آسـتغفرآللهہ آلعضـيم 💙🙏
$about = file_get_contents("data/about.txt");

$sudo = 612393384;
if($text == "اوامر" or $text == "/helpailnoor" and $chat_id == $sudo){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"اهلا بك #مطوري

في قائمه الاوامر 📍

اضغط ع المشتركين 💐

لعرض عدد مشتركين ⌛️

و الامر الثاني 🔮

لـ الاذاعه 📥",
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>"المشتركين ✅",'callback_data'=>"count"]],
[['text'=>"ارسال رسالة للكل 🔂",'callback_data'=>"send_all"]],
]
])
]);
}
if($data == "count" and $chat_id2 == $sudo){ //مشتركين البوت = مهمة 1
bot('answercallbackquery',[
'callback_query_id'=>$update->callback_query->id,
'text'=>"عدد مشتركين البوت📬 : $c",
'show_alert'=>true,
]);
}
$mode = file_get_contents("data/mode.txt");
if($data == "send_all" and $chat_id2 == $sudo){
file_put_contents("data/mode.txt","yas");
bot('EditMessageText',[
'chat_id'=>$chat_id2,
'message_id'=>$message_id2,
'text'=>"ارسل رسالتك الان 📩 وسيتم نشرها لـ $c مشترك .
- تستطيع التراجع بالضغط على الغاء . ",
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>"الغاء🚫",'callback_data'=>"off"]],
]
])
]);
}
if($text and $mode == "yas" ){
for ($i=0; $i < count($u); $i++) {
bot('sendMessage',[
'chat_id'=>$u[$i],
'text'=>"$text",
]);
}
}
if($data == "off"){
file_put_contents("data/mode.txt","no");
bot('EditMessageText',[
'chat_id'=>$chat_id2,
'message_id'=>$message_id2,
'text'=>"اهلا بك #مطوري

في قائمه الاوامر 📍

اضغط ع المشتركين 💐

لعرض عدد مشتركين ⌛️

و الامر الثاني 🔮

لـ الاذاعه 📥",
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>"المشتركين ✅",'callback_data'=>"count"]],
[['text'=>"ارسال رسالة للكل 🔂",'callback_data'=>"send_all"]],
]
])
]);
}

• كود اذاعـه + عدد مشتركين 🎴

• شغال ١٠٠٪؜ دايما اضيفه ب ملفاتي ميحتاج تعديل 🥤

• ضيفه لـ اخر الملف 🗃

#هـدوء
- كود اشتراك اجباري 📌💗؛

$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;}


• تخلي قبل شرط /start
if($new_member and !$check and in_array($chat_id,$e)){
if($chat_id != $json_id){
api("sendMessage",[
'chat_id' => $chat_id,
'text' => " نـوورت/ي الكروب حياتي 😻👋🏾",
'reply_to_message_id' => $message_id,

'reply_markup' =>json_encode([
'inline_keyboard' =>[
[["text" =>"$name", "url" =>"https://t.me/$username"]],
]
])
]);
}
}

كود يرحب بالعضو من يدخل للمجموعه
ضيفه ب اخر الملف وتكدر تخلي قناتك او تغير الترحيب ضيفه لبوتات الحمايه + الردود 🔖
CH: @codphp 📢..
$New_member = $message->new_chat_member;
$usser = $New_member->username;
$id = $New_member->id;
$id_bot = your bot id;
if(preg_match('/^(.*)([Bb][Oo][Tt])/',$usser) and $New_member and $id != $id_bot){
bot('kickChatMember',[
'chat_id'=>$chat_id,
'user_id'=>$id
]);
}


كود طرد اي بوت ينضاف للمجموعه اله اذا المدير يرفع البوت الي يضيفه من قائمه الاداريون ضيفه
لبوتات الحمايه + الردود ☑️
•CH @codphp 📢..
• CoD PHP
$New_member = $message->new_chat_member; $usser = $New_member->username; $id = $New_member->id; $id_bot = your bot id; if(preg_match('/^(.*)([Bb][Oo][Tt])/',$usser) and $New_member and $id != $id_bot){ bot('kickChatMember',[ 'chat_id'=>$chat_id, 'user_id'=>$id…
اكتب ب ٣ متغير حط ايديك هيج مراح يفهم انكلش وعباله متغير كامل مو مكان ايدي
• اذا تريد تخلي امر بس مطور بوت يكدر يطلعه لازم ضيف ب صف الشرط 🚸
and $chat_id == $sudo

مثال
if ($text =="علي" and $chat_id == $sudo){

هيج راح يصير هذا الامر بس للمطور + لازم تتاكد من وجود متغير ال $sudo وكون بي ايديك ♥️

• اذا معدك ضيفه فوك وي متغيرات 🛰
$sudo = ايديك;

#هـدوء ❗️
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,
]);
}
$sudo = ايديك;
if($text == 'حذف الصوره'and $chat_id == $sudo){
bot('deleteChatPhoto',['chat_id'=>$chat_id]);
bot('sendMessage',['chat_id'=>$chat_id,'text'=>"تـم حذف صـورة الكروب 🤹🏿‍♂️",
'reply_to_message_id'=>$message->message_id]);
}

• كـود لـحذف صوره الكروب 🔖

• اني ضفت حصانه مطور تكدر تشيلها وضيف حصانه مدير 🙎🏻‍♂️

• ضيف اخر ملف 🚡
• #هدوء|| #ماثيو
- كود حذف اشعارات الدخول والخروج⚠️📌

$mid = $message->message_id;

if($message->new_chat_members){
bot('DeleteMessage',[
'chat_id'=>$chat_id,
'message_id'=>$mid
]);
}

if($message->left_chat_member){
bot('DeleteMessage',[
'chat_id'=>$chat_id,
'message_id'=>$mid
]);
}

﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
#ᎷΘᎻᎪᎷᎬᎠ_ᎤᎪᏆᏕ𖤍
- كود اذاعه وعدد مشتركين بدون تعليك⚠️⚙
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎

$u = explode("\n",file_get_contents("memb.txt"));
$c = count($u)-1;
$modxe = file_get_contents("usr.txt");
$admin = "00"; /* ايدي مالتك */
# بداية الاوامر #
if ($update && !in_array($chat_id, $u)) {
file_put_contents("memb.txt", $chat_id."\n",FILE_APPEND);
}
#﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎#
if ($text == "/admin" and $chat_id == $admin ) {
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"
☑️¦اهلا عزيزي :- المطور .
▫️¦اليك الاوامر الان حدد ماتريده 📩
-
",
'parse_mode'=>"MarkDown",
'disable_web_page_preview'=>true,
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>'رسالة للكل ','callback_data'=>'ce']],
[['text'=>'عدد الاعضاء ','callback_data'=>'co']],
]
])
]);
}
if($data == 'off'){
bot('editMessageText',[
'chat_id'=>$chat_id2,
'message_id'=>$message_id,
'text'=>"
☑️¦اهلا عزيزي :- المطور .
▫️¦اليك الاوامر الان حدد ماتريده 📩
-
",
'parse_mode'=>"MarkDown",
'disable_web_page_preview'=>true,
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>'رسالة للكل ','callback_data'=>'ce']],
[['text'=>'عدد الاعضاء ','callback_data'=>'co']],
]
])
]);
file_put_contents('usr.txt', '');
}
# المشتركين #
if($data == "co" and $update->callback_query->message->chat->id == $admin ){
bot('answercallbackquery',[
'callback_query_id'=>$update->callback_query->id,
'text'=>"
عدد مشتركين البوت📢 :- [ $c ] .
",
'show_alert'=>true,
]);
}
# رسالة للكل #
if($data == "ce" and $update->callback_query->message->chat->id == $admin){
file_put_contents("usr.txt","yas");
bot('EditMessageText',[
'chat_id'=>$update->callback_query->message->chat->id,
'message_id'=>$update->callback_query->message->message_id,
'text'=>"▪️ ارسل رسالتك الان 📩 وسيتم نشرها لـ [ $c ] مشترك .
",
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>' الغاء 🚫 •','callback_data'=>'off']]
]
])
]);
}
if($text and $modxe == "yas" and $chat_id == $admin ){
for ($i=0; $i < count($u); $i++) {
bot('sendMessage',[
'chat_id'=>$u[$i],
'text'=>"$text",
'parse_mode'=>"MarkDown",
'disable_web_page_preview'=>true,

]);
file_put_contents("usr.txt","no");

}
}
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
#ᎷΘᎻᎪᎷᎬᎠ_ᎤᎪᏆᏕ𖤍
- كود جلب بايو api📌⚠️

$user = $update->message->from->username;
$m = file_get_contents
("https://classychannel.maxmizban.stream/fal/bio.php?username=$user");
if($text == "بايو"){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"$m",
'parse_mode'=>"Markdown",
]);
}

﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
«#ᎷΘᎻᎪᎷᎬᎠ_ᎤᎪᏆᏕ𖤍»
• كـود رد 📌
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎

if($text == "هيلاو"){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"هلوات",
'reply_to_message_id'=>$message->message_id,
]);
}

﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
#ᎷΘᎻᎪᎷᎬᎠ_ᎤᎪᏆᏕ𖤍
• كـود رد ماركدون 📌
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎

if($text == "هيلاو"){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"[- هلوات »😻»](t.me/codphp)",
'parse_mode'=>"MarkDown",
'disable_web_page_preview'=>true,
'reply_to_message_id'=>$message->message_id,
]);
}

﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
#ميمو