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

@filemtime
@MROAN8
@M6tbot
Download Telegram
💾- يعمل بجميع البوتات
if(preg_match('/^\/(calc)(.*)/s', $text)){
preg_match('/^\/(calc)(.*)/s', $text, $mtch);
$calc = urlencode($mtch[2]);
$rs = file_get_contents
('http://api.mathjs.org/v1/?expr='.$calc);
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"
🚹- الجواب كالتالي :

- => $rs
",
'parse_mode'=>"MarkDown"
]);
}
ضيفه الاي ملف راح يشتغل
--------------
@php88
📟- كود الة حاسبة
$id = $message->from->id;
$user = $message->from->username;
$name = $message->from->first_name;
if($text=="موقعي" and $you == "creator"){
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"انت منشئ في المجموعةه
معرفك :- @$user
ايديك :- $id
اسمك :- $name
"
]);
}
ضيفه البوتات الحمايه
--------------
@php88
كود موقعي اللمنشئ
if(preg_match('/^(اضافه) (.*)/', $text, $user) and $from_id == $sudo){
for($h=$message_id; $h>=$message_id-$user[2]; $h--){
bot('AddChatuser',[
'chat_id' => $chat_id,
'message_id' =>$h,]);}}

كود اضافه الشخص عن طريق اليوزر🍃
الامر
اضافه+اليوزر
--------------
@php88
$zha = file_get_contents("https://api.telegram.org/bot$API_KEY/getChatMember?chat_id=$chat_id&user_id=".$from_id);
$info = json_decode($zha, true);
$you = $info['result']['status'];
$sudo = ايديك هنا;
$user = $message->from->username;
if($you == "creator" or $you == "administrator" or $from_id == $sudo){
if ($text == "تفعيل" or $text == '/add' and $you == "administrator") {
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"💳┇ﺂيدي المجموعه ∾≻≻ ❪ $chat_id ❫
💌┇عدد الأعضاء ∾≻≻ { $result2 }
☑️┇تم تفعيل المجموعه ❴ $t ❵",
'reply_to_message_id'=>$message->message_id,
]);
bot('sendMessage',[
'chat_id'=>$sudo,
'text'=>"
☑️┇قام احد المدراء بتفعيل البوت 🚸
📲┇معلومات المدير ⬇️;
📡┇معرف المدير ~⪼ @$user
💯┇أسم المدير ~⪼ $name

📊┇معلومات المجموعة ⬇️;
💳┇ايدي المجموعة ~⪼ $chat_id
📉┇اسم المجموعة ~⪼ $t
📈┇عدد أعضاء المجموعة ~⪼ { $result2 }
",
]);
}
}



كود تفعيل ، بالمعلومات ،

اي شخص يفعل تجي معلومات المجموعه بخاص البوت ،
- الـكود الاول♥️

- كود الاذاعه + عدد المشتركين

- الحصانه
$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");

}
}



منقوال للفائده
$reply = $message->reply_to_message;
if($text == 'ضع صورة' and $reply->photo != null){
bot('setChatPhoto',['chat_id'=>$chat_id,'photo'=>$reply->photo[2]->file_id]);
bot('sendMessage',['chat_id'=>$chat_id,'text'=>"تم وضع صورة للمجموعة ",'reply_to_message_id'=>$reply->message_id]);
}
if($text == 'حذف الصورة'){
bot('deleteChatPhoto',['chat_id'=>$chat_id]);
bot('sendMessage',['chat_id'=>$chat_id,'text'=>"تم حذف صورة المجموعة ",'reply_to_message_id'=>$message->message_id]);
}

- طلب احد الاعضاء ،
كود وضع صورة للمجموعه بالرد .
• كود عمل ويبهوك من خلال الـ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>";
👍1
if(preg_match('/^(ايدي @)(.*)/s' , $text, $mtch)){
$uiu = json_decode(file_get_contents('http://www.api-hany.cf/user/'.$mtch[2]),true);
$idd = $uiu["results"]["id"];
$namee = $uiu["results"]["name"];
$userr = $uiu["results"]["user"];
$photoo = $uiu["results"]["photo"];
$bioo = $uiu["results"]["bio"];
$st = $uiu["results"]["status"];
if($photoo == "https://telegram.org/img/t_logo.png\n"){
bot('sendMessage',['chat_id'=>$chat_id,'text'=>"
*Name* : *$namee*
*ID* : *$idd*
*User* : *@$mtch[2]*
*Bio* : *$bioo*
*status* : *$st*",'parse_mode'=>"MarkDown",'disable_web_page_preview'=>true,'reply_to_message_id'=>$msg,
]);
}else{
file_put_contents("mh.jpg",file_get_contents($photoo));
bot('sendphoto',['chat_id'=>$chat_id,'photo'=> new CURLFile("mh.jpg"),'caption' =>"
*Name* : *$namee*
*ID* : *$idd*
*User* : *$userr*
*Bio* : *$bioo*
*status* : *$st*",'parse_mode'=>"MarkDown",'disable_web_page_preview'=>true,'reply_to_message_id'=>$msg,
]);
unlink("mh.jpg");
}
}

كود عرض معلومات بالمعرف فقط🚶‍♂
🔻كود اختبار سرعة البوت 😄

#الكود

if($text == '/testspeed')
{
sendMessage($chat_id,"1️⃣");
SendMessage($chat_id,"2️⃣");
SendMessage($chat_id,"4️⃣");
SendMessage($chat_id,"5️⃣");
SendMessage($chat_id,"6️⃣");
SendMessage($chat_id,"7️⃣");
SendMessage($chat_id,"8️⃣");
SendMessage($chat_id,"9️⃣");
SendMessage($chat_id,"🔟");
var_dump(makereq('sendMessage',[
'chat_id'=>$update->message->chat->id,
'text'=>"البوت بحالة جيد 🙃",
'reply_to_message_id'=>$message_id,
'parse_mode'=>'MarkDown',
]);
}

- الامر تبعه
/testspeed


🆔 @php88
• كود عمل ويبهوك من خلال الـ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>";
👍1
$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'
]);
}
if(preg_match('/^(زخرف) (.*)/s', $text, $mtch)){
$zn =json_decode(file_get_contents("http://www.api-hany.cf/zgrf/ar/".$mtch[2]),true);
$q = $zn["1"];
$w = $zn["2"];
$r = $zn["3"];
$t = $zn["4"];
$y = $zn["5"];
$u = $zn["6"];
$i = $zn["7"];
$o = $zn["8"];
$p = $zn["9"];
$a = $zn["10"];
$s = $zn["11"];
$d = $zn["12"];
$f = $zn["13"];
$g = $zn["14"];
bot('sendMessage',['chat_id'=>$chat_id,'text'=>"1 -
$q\n2 - $w\n3 - $g\n4 - $r\n5 - $t\n6 - $y\n7 - $u\n8 - $i\n9 - $o\n10 - $p\n11 - $a\n12 - $s\n13 - $d\n14 - $f
",'parse_mode' => MarkDown,
'reply_to_message_id' =>$msg,
]);
}

كود زخرفه عربي 14 نوع.
~ كود زخرفه 20 نوع انكليزي 🚸؛
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
if(preg_match('/^(زخرف) (.*)/s', $text, $mtch)){
$mh = file_get_contents('http://www.api-hany.cf/zgrfa/get.php?text=' . $mtch[2]);
bot('sendmessage',['chat_id'=>$chat_id,'text'=>"$mh\n تم زخرفه : $mtch[2] يمكنك الضغط ع الاسم ليتم نسخه",
'parse_mode'=>'MarkDown',
]);
}

﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
if(preg_match('/^(ايدي @)(.*)/s' , $text, $mtch)){
$uiu = json_decode(file_get_contents('http://www.api-hany.cf/info/'.$mtch[2]),true);
$idd = $uiu["results"]["id"];
$namee = $uiu["results"]["name"];
$userr = $uiu["results"]["user"];
$photoo = $uiu["results"]["photo"];
$bioo = $uiu["results"]["bio"];
$st = $uiu["results"]["count"];
if($photoo == "https://telegram.org/img/t_logo.png\n"){
bot('sendMessage',['chat_id'=>$chat_id,'text'=>"
*Name* : *$namee*
*ID* : *$idd*
*User* : *@$mtch[2]*
*Bio* : *$bioo*
*count* : *$st*",'parse_mode'=>"MarkDown",'disable_web_page_preview'=>true,'reply_to_message_id'=>$msg,
]);
}else{
file_put_contents("mh.jpg",file_get_contents($photoo));
bot('sendphoto',['chat_id'=>$chat_id,'photo'=> new CURLFile("mh.jpg"),'caption' =>"
*Name* : *$namee*
*ID* : *$idd*
*User* : *$userr*
*Bio* : *$bioo*
*count* : *$st*",'parse_mode'=>"MarkDown",'disable_web_page_preview'=>true,'reply_to_message_id'=>$msg,
]);
unlink("mh.jpg");
}
}

كود يخرج معلومات قناه او كروب من اليوزر.🚶‍♂
$s = json_decode(file_get_contents('http://www.api-hany.cf/time?GTM=Africa/Cairo&lang=en'),true);
$time = $s["time"];
$date = $s["date"];
$day = $s["day"];
$mon = $s["month"];
$t24 = $s["time24"];
$dayhj = $s["hijri"]["day"];
$monhj = $s["hijri"]["month"];
$yearhj = $s["hijri"]["year"];
if($text == "الوقت"){
bot('sendMessage',['chat_id'=>$chat_id,'text'=>"

🕐┇الوقت -: *$time*
🕐┇الوقت 24 : *$t24*
📅┇التاريخ -: *$date*
📅┇التاريخ الهجري :*$dayhj*/*$monhj*/*$yearhj*
📅┇اليوم : *$day*
📅┇الشهر : *$mon*
",
'parse_mode'=>"MarkDown",'disable_web_page_preview'=>true,
]);
}

كود يخرج الوقت والتاريخ هجري وميلادي.
ملحوظه بسيطه
http://www.api-hany.cf/time?GTM=Africa/Cairo&lang=ar
غير Africa/Cairo لُلُتْوَقًيَتْ الٌُخاصّ بّدِوَلُتْكِ..
~ كود اطردني 😅☹️
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
$dev_start = $message->message_id;
if($text == "اطردني" and $you == "member"){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"🍁¦ لتأكيد طردك من المجموعة قم بأرسال 【 بالتأكيد اطردني 】 .",
'parse_mode'=>'MarkDown'
]);
}
elseif($text == "بالتأكيد اطردني" and $you == "member"){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"🎗¦ تم طردك من المجموعة √ ",
'reply_to_message_id'=>$dev_start
]);
bot('kickChatMember',[
'chat_id'=>$chat_id,
'user_id'=>$id
]);
}

﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
BY ؛ @php88
تفعيل ميزة الاشتراك بلقناة في بوتاتك 🌝❤️

$from_id = $update->message->from->id;


💧 ضع هذا تحت ال $update


$inch = file_get_contents("https://api.telegram.org/bot".API_KEY."/getChatMember?chat_id=@معرف قناتك&user_id=".$from_id);
if(strpos($inch , '"status":"left"') == true ) {
var_dump(makereq('sendMessage',[
'chat_id'=>$update->message->chat->id,
'text'=>"اهلا بك 🌝❤️

💧يـجب الاشتراك في قناتنا

بعد الاشتراك بلقناة ارسل ⤵️

🖱 /start 🖱",
'parse_mode'=>'MarkDown',
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[
['text'=>" الدخول إلى القناة",'url'=>"https://telegram.me/معرف قناتك"]
]
]
])
]));
}
💧ويجب أن يكون البوت اداري 💧
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>$k." ".$smile
]);
$k = $text;
$k=str_replace('қ','q​',$k);
$k=str_replace('я','ya',$k);
$k=str_replace('е','e​',$k);
$k=str_replace('р','r​',$k);
$k=str_replace('т','t​',$k);
$k=str_replace('й','y​',$k);
$k=str_replace('у','u​',$k);
$k=str_replace('и','i​',$k);
$k=str_replace('о','o​',$k);
$k=str_replace('п','p',$k);
$k=str_replace('а','a​',$k);
$k=str_replace('с','s',$k);
$k=str_replace('д','d',$k);
$k=str_replace('ф','f',$k);
$k=str_replace('г','g​',$k);
$k=str_replace('х','h​',$k);
$k=str_replace('ж','j​',$k);
$k=str_replace('к','​k',$k);
$k=str_replace('л','l​',$k);
$k=str_replace('з','z​',$k);
$k=str_replace('ҳ','x',$k);
$k=str_replace('с','c​',$k);
$k=str_replace('в','v',$k);
$k=str_replace('б','b​',$k);
$k=str_replace('н','n​',$k);
$k=str_replace('м','m​',$k);
$k=str_replace('ё','yo​',$k);
$k=str_replace('ғ','g‘​',$k);
$k=str_replace('ъ','‘​',$k);
$k=str_replace('ш','sh',$k);
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>$k." ".$smile
]);
$k = $text;
$k=str_replace('q','қ ​',$k);
$k=str_replace('ya','я',$k);
$k=str_replace('e','е​',$k);
$k=str_replace('r','р​',$k);
$k=str_replace('t','т​',$k);
$k=str_replace('y','й​',$k);
$k=str_replace('u','у​',$k);
$k=str_replace('i','и​',$k);
$k=str_replace('o','о​',$k);
$k=str_replace('p','п​',$k);
$k=str_replace('a','а​',$k);
$k=str_replace('s','с​',$k);
$k=str_replace('d','д​',$k);
$k=str_replace('f','ф​',$k);
$k=str_replace('g','г​',$k);
$k=str_replace('h','х​',$k);
$k=str_replace('j','ж​',$k);
$k=str_replace('k','​к',$k);
$k=str_replace('l','л​',$k);
$k=str_replace('z','з​',$k);
$k=str_replace('x','ҳ',$k);
$k=str_replace('c','с​',$k);
$k=str_replace('v','в',$k);
$k=str_replace('b','б​',$k);
$k=str_replace('n','н​',$k);
$k=str_replace('m','м​',$k);
$k=str_replace('yo','ё​',$k);
$k=str_replace('g‘','ғ​',$k);
$k=str_replace('‘','ъ​',$k);
$k=str_replace('sh','ш',$k);
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>$k." ".$smile
]);
$k = $text;
$k=str_replace('q','🇶​',$k);
$k=str_replace('w','🇼​',$k);
$k=str_replace('e','🇪​',$k);
$k=str_replace('r','🇷​',$k);
$k=str_replace('t','🇹​',$k);
$k=str_replace('y','🇾​',$k);
$k=str_replace('u','🇺​',$k);
$k=str_replace('i','🇮​',$k);
$k=str_replace('o','🇴​',$k);
$k=str_replace('p','🇵​',$k);
$k=str_replace('a','🇦​',$k);
$k=str_replace('s','🇸​',$k);
$k=str_replace('d','🇩​',$k);
$k=str_replace('f','🇫​',$k);
$k=str_replace('g','🇬​',$k);
$k=str_replace('h','🇭​',$k);
$k=str_replace('j','🇯​',$k);
$k=str_replace('k','​🇰',$k);
$k=str_replace('l','🇱​',$k);
$k=str_replace('z','🇿​',$k);
$k=str_replace('x','🇽​',$k);
$k=str_replace('c','🇨​',$k);
$k=str_replace('v','🇻​',$k);
$k=str_replace('b','🇧​',$k);
$k=str_replace('n','🇳​',$k);
$k=str_replace('m','🇲​',$k);
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>$k." ".$smile
]);
$k = $text;
$k=str_replace('q','q​',$k);
$k=str_replace('w','ω​',$k);
$k=str_replace('e','є​',$k);
$k=str_replace('r','я​',$k);
$k=str_replace('t','т​',$k);
$k=str_replace('y','у​',$k);
$k=str_replace('u','υ​',$k);
$k=str_replace('i','ι​',$k);
$k=str_replace('o','σ​',$k);
$k=str_replace('p','ρ​',$k);
$k=str_replace('a','α​',$k);
$k=str_replace('s','ѕ​',$k);
$k=str_replace('d','∂​',$k);
$k=str_replace('f','f​',$k);
$k=str_replace('g','g​',$k);
$k=str_replace('h','н​',$k);
$k=str_replace('j','ʝ​',$k);
$k=str_replace('k','​к',$k);
$k=str_replace('l','ℓ​',$k);
$k=str_replace('z','z​',$k);
$k=str_replace('x','χ​',$k);
$k=str_replace('c','¢​',$k);
$k=str_replace('v','ν​',$k);
$k=str_replace('b','в​',$k);
$k=str_replace('n','и​',$k);
$k=str_replace('m','м​',$k);
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>$k." ".$smile
]);
$k = $text;
$k=str_replace('q','🍳​',$k);
$k=str_replace('w','👐​',$k);
$k=str_replace('e','📧​',$k);
$k=str_replace('r','®​',$k);
$k=str_replace('t','🌴​',$k);
$k=str_replace('y','🌱​',$k);
$k=str_replace('u','​',$k);
$k=str_replace('i','📍',$k);
$k=str_replace('o','​',$k);
$k=str_replace('p','🅿​',$k);
$k=str_replace('a',