- كود شتراك اجباري + العضو من يشترك بلقناة البوت يبلغلك📌♥️،
#توجيه_فقط
$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"]],
]
])
]);
}• كود اذاعـه + عدد مشتركين 🎴
• شغال ١٠٠٪ دايما اضيفه ب ملفاتي ميحتاج تعديل 🥤
• ضيفه لـ اخر الملف 🗃
#هـدوء
- كود اشتراك اجباري 📌💗؛
• تخلي قبل شرط /start
$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 📢..
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 = ايديك;
#هـدوء ❗️
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");
}
}
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
#ᎷΘᎻᎪᎷᎬᎠ_ᎤᎪᏆᏕ𖤍
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
$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,
]);
}﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
#ميمو
if($text == "قفل الخيانه" and $id !==
$sudo){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"عذرآ عزيزي الامر غير صالح في بلدك 💔
ˢᵘʰᵉˡ ᶰᵃʲᵐ ",
'reply_to_message_id'=>$message->message_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
• شكو كروب ١٠ وجوه راح بوت يغادر منه 🤹🏿♂️
• يفيد بوتات حمايه + ردود 🚸
#هدوء ❗️
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
• شكو كروب ١٠ وجوه راح بوت يغادر منه 🤹🏿♂️
• يفيد بوتات حمايه + ردود 🚸
#هدوء ❗️