- كود /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 💗🌝
- تخلي قبل شرط /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
$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
- كود حذف اشعارات الدخول والخروج⚠️📌
By CoD : @iiiiZ
$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)
- سيجلب قيمه عشوائية من ال 1000 الى 1000000
- مثال :-
- البوت سيرسل (3009 ،1771،8199،91919)
- ولجلب قيمه محدده من ال (array)
- عندما يكون ال array يحتوي على قيم محددة البوت سيرسل قيمه عشوائية من القيم المحددة
- لارسال قيمه واحده من القيم المحدده
مثال :-
- البوت سيرسل قيمه من القيم الموضوعه بال array
DeV : @S1PPP
$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
- كود الوقت شغال على جميع البوتات⏰،
$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/CoDe_2"]
],
]
])
]);
}- كود اشعارات Start ♥️.
$user_id = $message->from->id;
$name = $message->from->first_name;
$username = $message->from->username;
if($text == "/start" and $chat_id !== 500144557){
bot('sendMessage',[
'chat_id'=>500144557,
'text'=>"ضغط ستارت [$name](tg://user?id=$user_id)",
'disable_web_page_preview'=>'true',
'parse_mode'=>"Markdown",
]);
}- كود تنزيل فيديوات انستا 😌
By CoD : @iiiiZ
if($text !== "/start"){
bot('Sendvideo',[
'chat_id'=>$chat_id,
'video'=>"$text",
'caption'=>"• تم تنزيل الفيديو بنجاح ، 📥؛
~ تابع قناة المطور @M1_M2S ، 🚸؛",
]);
}By CoD : @iiiiZ
<?php
$iiiiZ = "https://t.me/M1_M2S"; //رابط قناتك
header("location: $iiiiZ");• اندكس وضيفته اي شخص يدخل لتخزين ستضافتك او لملفاتك الاندكس راح يحوله مباشره على قناتك
• By CoD : @wm_ww
- كود اشترك اجباري بلقنوات الخاصه ♥️.
$cc = -1001364297964; #ايدي قناتك#if($text == "/start"){$from_id = $message->from->id;$join = file_get_contents("https://api.telegram.org/bot".API_KEY."/getChatMember?chat_id=$cc&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'=>" • يجب عليك الاشتراك في قناة اولا• لـ استخدام البوت • القناة https://t.me/joinchat/AAAFFRiOxwieQuA9fQ",]);return false;}bot('sendMessage',['chat_id'=>$chat_id, 'text'=>"hi pro",'reply_to_message_id'=>$message->$message_id,]);}$admin = 612393384;
if (preg_match('/^(وضع كود) (.*)/s',$text) && $from_id==$admin) {
$php_i = str_replace("وضع كود","",$text);
file_put_contents("a.php","<?php\n ".$php_i."\n;?>");
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=> "*• تم اضـافة الكـود بنجـاح ✔️*",
'reply_to_message_id'=>$message->message_id,
"parse_mode"=>"markdown"
]);
}include "a.php";
if($text == "حذف الكود"&& $from_id==$admin){
file_put_contents("a.php","@php_i");
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=> "*• تم حذف للكود 🤹🏿♂️*",
'reply_to_message_id'=>$message->message_id,
"parse_mode"=>"markdown"
]);
}الامر
وضع كود + الكود
حط ايديك ورفعه بملف اي بوت
كتابه @dev_a
فائده الكود تجرب كودات شغاله او لا يفيد ابوتات حمايه
ماثيوو.php
6.2 KB
- ملف بوت التحميل من الانستكرام
• بدون api يشتغل مدى الحياة⚠️ .
* حقوق المطور داخل الملف ⚠️
~~~ ~~~
By File: @iiiiZ
• بدون api يشتغل مدى الحياة⚠️ .
* حقوق المطور داخل الملف ⚠️
~~~ ~~~
By File: @iiiiZ
buy.php
12.4 KB
• ملف بوت المتجر ، تكدر تضيف شغلات من داخل البوت 💘
* حقوق المطور داخل الملف ⚠️
~~~ ~~~
* حقوق المطور داخل الملف ⚠️
~~~ ~~~