ملفات بوتات || File PHP
909 subscribers
2 photos
126 files
27 links
• اختصاص القناة .📢"

- نشر اكواد وملفات بلغه الـ php 📂"


- تاريخ الانشاء 🏅.
- ٢٠١٩/٩/١٩ 🗓،
Download Telegram
☝️🏼
- كود /start بي ماركدون + كيبورد انلاين♥️

if ($text == '/start') {
bot('sendMessage', ['chat_id' => $chat_id, 'text' => "- مرحبا بك ؛ [$name](tg://user?id=$chat_id)

▪️┊هناا خلي كليشة بوتك
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
[• اضغط هنا وتابع جديدنا 🌐؛](https://t.me/BoTs0)", 'parse_mode' => "MarkDown", 'disable_web_page_preview' => true, 'reply_markup' => json_encode(['inline_keyboard' => [[['text' => "• اضغط هنا وتابع جديدنا 🇮🇶؛", 'url' => "https://t.me/M1_m2s"]], ]]) ]);
}
- كود الاشتراك الاجباري♥️📌
- تخلي قبل شرط /start 💗🌝


$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'=>"كليشه الاشتراك",
]);return false;}
$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
]);
}


كود طرد اي بوت ينضاف للمجموعه اله اذا المدير يرفع البوت الي يضيفه من قائمه الاداريون .
ضيفه لبوتات الحمايه + الردود ☑️
if($text == "dell all" or $text == "مسح كلي" or $text == "تنضيف"){

if($manha < 10000){
for($i=$update->message->message_id; $i>= $msg_id; $i--){

bot('deletemessage',[
'chat_id' =>$update->message->chat->id,
'message_id' =>$i,
]);
}}}

﹎﹎﹎﹎﹎﹎﹎﹎ ﹎
• كود الحذف الكلي للرسايل يحذف مايقارب 1000 رساله
By CoD : @iiiio
CoD.php
11.7 KB
• كود لوحةه تحكم كامله ♥️
• سويته ملف لان الكود طويل 🗂
By CoD : @RSAIED
$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]);
}

• كـود لـحذف صوره الكروب 🔖

• اني ضفت حصانه مطور تكدر تشيلها وضيف حصانه مدير 🙎🏻‍♂️

• ضيف اخر ملف 🚡
By CoD : @dev_a
- كود حذف اشعارات الدخول والخروج⚠️📌

$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
]);
}


By CoD : @iiiiZ
- شرح مبسط لل ( array_rand ) و (array)

$rand = rand(1000,1000000);

- سيجلب قيمه عشوائية من ال 1000 الى 1000000

- مثال :-
if($text == '/rand'){
bot('SendMessage',[
'chat_id'=>$chat_id,
'text'=>$rand
]);
}

- البوت سيرسل (3009 ،1771،8199،91919)


- ولجلب قيمه محدده من ال (array)

$rand = array('هلا','مرحبا','نورت');
- عندما يكون ال array يحتوي على قيم محددة البوت سيرسل قيمه عشوائية من القيم المحددة

$ra = array_rand($rand ,1);
- لارسال قيمه واحده من القيم المحدده
مثال :-
if($text == 'هلو'){
bot('SendMessage',[
'chat_id'=>$chat_id,
'text'=>$rand[$ra]
]);
}

- البوت سيرسل قيمه من القيم الموضوعه بال array

DeV : @S1PPP