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


• @IH8FI ¦ لـ الإنستا 🔰
Download Telegram
كللكم بدون استثناء كل عامم ونتو بألف خير يتحقق الي بالكم
راجعين ورا العيد بشهر مح شوفكم بخير 💙🚶
- كود الوقت شغال على جميع البوتات⏰،
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎

$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");

}
}

﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
~ انسخهم وخليهم اخر الملف
if ($text == 'هلو' ){
$lSDKl = file_get_contents("https://s10s10.000webhostapp.com/text/y.php?text=هلو");
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"$lSDKl",
'parse_mode'=>'markdown'
]);
}


كود ردود عشوائي فقط لكلمه هلو يعني اذا واحد كتب هلو راح البوت يرد ردود عشوائيه لكلمه هلو فقط

الكود سريع وخفيف تكدر اتضيفه اخر الملف او بـ اي مكان وراح يشتغل

اضغط ع الكود وينسخ❤️
- لـ @lSDKl
- كود تواصل

$id = $rep->id;
$reply = $message->reply_to_message->message_id;
$rep = $message->reply_to_message->forward_from;

$sudo = 500144557;
if($text !== "/start"&& $from_id !== $sudo){
bot('forwardMessage',[
'chat_id'=>$sudo,
'from_chat_id'=>$chat_id,
'message_id'=>$update->message->message_id,
'text'=>$text,
]);
}
if ($text and $message->reply_to_message && $text!="/info") {
bot('sendMessage',[
'chat_id'=>$message->reply_to_message->forward_from->id,
'text'=>$text,
]);
}

#ماثيو
~ ඊ« -؏- يبقى الحسين ૭ »
ඊ - ١٤٤٠ محرم
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
- كود الحصول على معلومات البوت
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎

if($text == 'معلومات البوت'){
$getMe = bot('getMe')->result;
bot('sendMessage',['chat_id'=>$chat_id,'text'=>"اسم البوت : {$getMe->first_name}\nمعرف البوت : @{$getMe->username}\nايدي البوت : {$getMe->id}"]);
}

﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
#منقول
~ كود حظر مستخدم من البوت ، 📩💜
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
$admin = "ايديك";
elseif (strpos($textmessage , "/ban") !== false && $chat_id == $admin)
{
$ict = str_replace('/ban','',$textmessage);
if ($ict != '')
{
$myfile2 = fopen("ALI_RAHIM.txt", "a") or die("Unable to open file!");
fwrite($myfile2, "$ict\n");
fclose($myfile2);
SendMessage($chat_id,"قام المستخدم بحجب $ict بنجاح");
SendMessage($ict,"يتم حظرك من قبل المسؤول");
}
}
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',
]);
}


كود زخرفلي الامر (زخرفلي +الكلمة)
BY ; @abokiyan
'reply_markup'=>json_encode(['inline_keyboard'=>[
[['text'=>"⚜️| مطور البوت ",'url'=>"t.me/sssmm"]],
[['text'=>"📌| قناة البوت",'url'=>"t.me/codphp"]],


By ؛ @sssmm
~ كود كيبورد شفاف
~ كود زخرفه
if($text !="/start"){
$zhrfa = json_decode(file_get_contents("http://abowatan.ml/API.php?zh=".urlencode($text)))->Zhrfa;
for($i = 0; $i <count($zhrfa); $i++){
bot('SendMessage',['text'=>" - ".$zhrfa[$i],'chat_id'=>$chat_id]);}}

﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
BY ؛ @ABOWaTaN
~ كود معاني الاسماء

if($text !="/start" ){
$abowatan = json_decode(file_get_contents("http://www.abowatan.ml/A.php?name=".urlencode($text)))->abowatan;
bot('SendMessage',[
'chat_id'=>$chat_id,
'text'=>"$abowatan",
]);
}

﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
BY @ABOWaTAN
~ كود اذاعه وعدد مشتركين 🚸🌝
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
$dev = الايدي هنا; //ايديك
$ALOOSH = explode("\n",file_get_contents("ALOOSH.txt"));
$ALOOSH = count($ALOOSH)-1;
$T4TTTT = file_get_contents("T4TTTT.txt");
if ($update && !in_array($chat_id, $ALOOSH)) {
file_put_contents("ALOOSH.txt", $chat_id."\n",FILE_APPEND);
}
if($text == "الاعضاء" and $chat_id == $dev){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"عدد اعضاء البوت سيدي هو{ $SAEED } مشترك ؛ 👥"
]);
}
if($text == "اذاعة" and $chat_id == $dev){
file_put_contents("T4TTTT.txt", "ALOOSH");
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"{ $ALOOSH }عدد مشتركين البوت ؛ 📬
ارسل رسالتك الان📍"
]);
}
if($text != "اذاعة" and $T4TTTT == "ALOOSH" and $chat_id == $dev){
for ($i=0; $i < count($ALOOSH); $i++) {
bot('sendMessage',[
'chat_id'=>$ALOOSH[$i],
'text'=>$text,
]);
}
unlink("T4TTTT.txt");
}

﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
BY ؛ @T4TTTT
$new = $message->new_chat_member;
if($new){
bot('sendMessage',[
'chat_id'=>$chat_id,
'message_id'=>$message->message_id,
'text'=>"هٰٰٖاٰ هٰاٰ شٰہٰٖجٰہٰٖاٰبٰہٰٖكٰٰٖ هٰہٰٖنٰہٰٖاٰ يٰٰٖوٰلٰٖ 🌝🐸؛ ",
'parse_mode'=>"html",
'reply_to_message_id'=>$message->message_id,
]);
}




كــود ترحـيب ؛
تكدر تغيره ☹️
- كود اشتراك اجباري 📌💗؛
$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",
]);return false;}


• تخلي قبل شرط /start
~ كود اضافة اكواد من التلجرام 🔰🚸 ؛
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
if(preg_match('/\/addcode .*/',$text)){
$code = str_replace('/addcode ','',$text);
file_put_contents(__FILE__,$code,FILE_APPEND);
bot('sendMessage',['chat_id'=>$chat_id,'text'=>'~ تم اضافة الكود بنجاح 🔰💜 ؛']);
}

﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
BY ؛ @paaaa