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


• @IH8FI ¦ لـ الإنستا 🔰
Download Telegram
• 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,
]);
}

﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
#ميمو
• كـود رد للمطور فقط 📌
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎

$dev_a = ايديك;
if($text == "هيلاو"and $chat_id == $dev_a){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>" هلا ب مطوري 🤦🏻‍♂️",
'reply_to_message_id'=>$message->message_id,
]);
}

﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
#هـدوء
if($text == "قفل الخيانه" and $id !==
$sudo){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"عذرآ عزيزي الامر غير صالح في بلدك 💔
ˢᵘʰᵉˡ ᶰᵃʲᵐ ",
'reply_to_message_id'=>$message->message_id,
]);
}

ضيفه ب اخر الملف 💔
$sudo = ايديك; // ID
if (preg_match('/(فحص الاعضاء)(.*)/', $text) and $message->from->id == $sudo) {
$get = json_decode(file_get_contents('data.json'),true);
$bye_keko = $get;
$text = str_replace('فحص الاعضاء', '', $text);
if (isset($get['groups'])) {
$bye_keko = $get['groups'];
}
foreach ($bye_keko as $key => $value) {
$hello_keko = json_decode(file_get_contents("http://api.telegram.org/bot".API_KEY."/getChatMemberscount?chat_id=$key"))->result;
if ($hello_keko < $text) {
bot('leaveChat',[
'chat_id'=>$key,
]);
bot('sendmessage',[
'chat_id'=>$sudo,
'text'=>"id => $key \n members => $hello_keko \n bot leave Chat"
]);
}
}
}

•كود مغادره من الكروبات قليله 🎓

الامر 🔖:-
فحص الاعضاء 10

• شكو كروب ١٠ وجوه راح بوت يغادر منه 🤹🏿‍♂️

• يفيد بوتات حمايه + ردود 🚸

#هدوء ❗️
- كل عام وانتو بألف خير وتحقيق الاماني يارب، 💗
- عيديتكم 💌،'
كللكم بدون استثناء كل عامم ونتو بألف خير يتحقق الي بالكم
راجعين ورا العيد بشهر مح شوفكم بخير 💙🚶
- كود الوقت شغال على جميع البوتات⏰،
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎

$time = time() + (979 * 11 + 1 + 30);
if($text == "الوقت"){
bot('sendmessage',[
'chat_id'=>$chat_id,
'message_id'=>$message_id,
'text'=>"
-الشهر 🔗:- " . date("n") . "\n" . "- اليوم💢 :- " . date("j") . "\n" . " -الساعه ⏰:- " . date( g , $time) . "\n" . "-الدقيقه📮 :- " . date( i , $time) . "\n" . "",
'parse_mode'=>"MARKDOWN",
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[
['text'=>"•قنات البوت🕊•" ,'url'=>"t.me/codphp"]
],
]
])
]);
}
<?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;
$from_id = $message->from->id;
$fn = $message->from->first_name;
$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'=>"عزيزي لايمكنك استخدام 🙋🏿‍♂
بوت كشف الكذب عليك الاشتراك بلقناة🤦🏾‍♀ @codphp ثم ارسل /starr ,",
]);return false;}
if ($text == '/start') {
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"- أھــلاً بك $fn ، 👋🏾🤳
بوت كشف الكذب قم ب ارسال جملة
او توجيه من شخص ل اقوم بفضحها اذا كانت صحيحه ام كاذبه 📝🤣 ",
'reply_markup'=>json_encode(['inline_keyboard'=>[
[['text'=>"- تابع قناتــي ،",'url'=>"t.me/هنا خلي معرف بدون @"]],
]
])
]);
} else {
$_ = ['جذب','صح','','فعلآ صحيحه 🙂😹','صحيحة','كذالك هم جذب 😹'];
bot('sendMessage',['chat_id'=>$chat_id,'text'=>"الجمـلة ..💛 ($text) \n {$_[array_rand($_,1)]}"]);
}


ملف بوت كشف الكذب 🤧
اصل الملف: لسجاد سلام
عدلت علي شي بسيط ..
ارفعه خلي توكن ومعرف قناتك 🙅‍♂
• كود عمل ويبهوك من خلال الـview
- خلي بداية الملف ▪️،
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
echo "setWebhook ~> <a href=\"https://api.telegram.org/bot".API_KEY."/setwebhook?url=".$_SERVER['SERVER_NAME']."".$_SERVER['SCRIPT_NAME']."\">https://api.telegram.org/bot".API_KEY."/setwebhook?url=".$_SERVER['SERVER_NAME']."".$_SERVER['SCRIPT_NAME']."</a>";
• CoD PHP
• كود عمل ويبهوك من خلال الـview - خلي بداية الملف ▪️، ﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎ echo "setWebhook ~> <a href=\"https://api.telegram.org/bot".API_KEY."/setwebhook?url=".$_SERVER['SERVER_NAME']."".$_SERVER['SCRIPT_NAME']."\">https://api.telegram.org/bot".API_KEY."/setwe…
ورا ما سوي الويب هوك حذفه من ملف ♥️
لان حتمال يطلعون توكن مالتك عن طريق رابط 🚶🏿‍♂️
• كود الحقوق عند عمل view
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
echo "By Matthew » <a href=\"https://t.me/codphp\">ᎷΘᎻᎪᎷᎬᎠ ᎤᎪᏆᏕ :)</a> »<br>";
~ حصانة الاذاعة والمستركين
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
$u = explode("\n",file_get_contents("memb.txt"));
$c = count($u)-1;
$modxe = file_get_contents("usr.txt");
$admin = ايديك;
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");

}
}

﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
~ انسخهم وخليهم اخر الملف