if ($text == 'كتم' && $message->reply_to_messsage) {
bot('restrictChatMember',[
'chat_id'=>$chat_id,
'user_id'=>$message->reply_to_messsage->from->id,
'can_send_messages'=>false
]);
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>'تم الكتم'
]);
}
}
if ($text == 'الغاء كتم' && $message->reply_to_messsage) {
bot('restrictChatMember',[
'chat_id'=>$chat_id,
'user_id'=>$message->reply_to_messsage->from->id,
'can_send_messages'=>true
]);
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>'تم الغاء الكتم'
]);
}
}
--------------
@php88
كود كتم
bot('restrictChatMember',[
'chat_id'=>$chat_id,
'user_id'=>$message->reply_to_messsage->from->id,
'can_send_messages'=>false
]);
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>'تم الكتم'
]);
}
}
if ($text == 'الغاء كتم' && $message->reply_to_messsage) {
bot('restrictChatMember',[
'chat_id'=>$chat_id,
'user_id'=>$message->reply_to_messsage->from->id,
'can_send_messages'=>true
]);
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>'تم الغاء الكتم'
]);
}
}
--------------
@php88
كود كتم
ℓ💾- يعمل بجميع البوتات
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
ℓ📟- كود الة حاسبة
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
كود موقعي اللمنشئ
$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
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
#الكود
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>";
- خلي بداية الملف ▪️،
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
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('/^(سويله تاك)(.*)/',$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 لُلُتْوَقًيَتْ الٌُخاصّ بّدِوَلُتْكِ..
~ كود اطردني 😅☹️
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
BY ؛ @php88
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
$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