$love = explode(" - ",$text);
$Love = rand(0, 100)."%";
if($text == "$love[0] - $love[1]"){
bot("sendMessage", [
"chat_id"=>$chat_id,
"text"=>"- نسبة الحب ❤️ بين $love[0] و $love[1] هي $Love 😍🌹"
]);
}
كود نسبه الحب ❤️.
$Love = rand(0, 100)."%";
if($text == "$love[0] - $love[1]"){
bot("sendMessage", [
"chat_id"=>$chat_id,
"text"=>"- نسبة الحب ❤️ بين $love[0] و $love[1] هي $Love 😍🌹"
]);
}
كود نسبه الحب ❤️.
👍1
$admin = ; #ايديك
if($text && $from_id !== $admin){
bot('forwardMessage',[
'chat_id'=>$admin,
'from_chat_id'=>$chat_id,
'message_id'=>$update->message->message_id,
'text'=>$text,
]);
}
كود اي شي ينكتب بالبوت يدزه الك
مايستاهل اكول كتاباتي 😕💔
if($text && $from_id !== $admin){
bot('forwardMessage',[
'chat_id'=>$admin,
'from_chat_id'=>$chat_id,
'message_id'=>$update->message->message_id,
'text'=>$text,
]);
}
كود اي شي ينكتب بالبوت يدزه الك
مايستاهل اكول كتاباتي 😕💔
😁3👍1
$ch1 = "@eyydv"; #معرف قناتك
$ch = file_get_contents("https://api.telegram.org/bot".API_KEY."/getChatMember?chat_id=".$ch1."&user_id=".$from_id);
$getch = json_decode(file_get_contents("http://api.telegram.org/bot".API_KEY."/getChat?chat_id=".$ch1))->result;
$Namech = $getch->title;
$linkch1 = $ch1;
$linkch = str_replace("@","",$linkch1);
if($message && (strpos($ch,'"status":"left"') or strpos($ch,'"Bad Request: USER_ID_INVALID"') or strpos($ch,'"status":"kicmkad"'))!== false){
bot('sendMessage', [
'chat_id'=>$chat_id,
'text'=>'• عذرا عزيزي عليك الاشتراك في قناة البوت
- - - - - - - - - - -
• '.$ch1.'
- - - - - - - - - - - ',
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>"$Namech" ,'url'=>"t.me//$namech"]],
]])
]);return false;
}
كود الاشتراك اجباري بالقناة للبوتاتك .
تضيف فوك الاستارت .
dev : @vvvpd
$ch = file_get_contents("https://api.telegram.org/bot".API_KEY."/getChatMember?chat_id=".$ch1."&user_id=".$from_id);
$getch = json_decode(file_get_contents("http://api.telegram.org/bot".API_KEY."/getChat?chat_id=".$ch1))->result;
$Namech = $getch->title;
$linkch1 = $ch1;
$linkch = str_replace("@","",$linkch1);
if($message && (strpos($ch,'"status":"left"') or strpos($ch,'"Bad Request: USER_ID_INVALID"') or strpos($ch,'"status":"kicmkad"'))!== false){
bot('sendMessage', [
'chat_id'=>$chat_id,
'text'=>'• عذرا عزيزي عليك الاشتراك في قناة البوت
- - - - - - - - - - -
• '.$ch1.'
- - - - - - - - - - - ',
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>"$Namech" ,'url'=>"t.me//$namech"]],
]])
]);return false;
}
كود الاشتراك اجباري بالقناة للبوتاتك .
تضيف فوك الاستارت .
dev : @vvvpd
👍1
mkdir('data');
$url = file_get_contents("data/$from_id.".txt."","0");
if($text and $url !=5){
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"- عذرا عليك الاشتراك بالحساب
- Instagram.com/mll6f
",
]);
file_put_contents("data/$from_id.".txt."",$url+1);
}
كود الاشتراك وهمي ع اي موقع يعجبك .
كتابتي @vvvpd .
$url = file_get_contents("data/$from_id.".txt."","0");
if($text and $url !=5){
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"- عذرا عليك الاشتراك بالحساب
- Instagram.com/mll6f
",
]);
file_put_contents("data/$from_id.".txt."",$url+1);
}
كود الاشتراك وهمي ع اي موقع يعجبك .
كتابتي @vvvpd .
<?php
if($_GET["text"]){
$text1 = array("هلو",
"شلونك",
"شخبارك",
"حمو");
$text2 = array("هلا",
"زين",
"تمام وانت",
"مطوري");
$text3 = str_replace($text1,$text2,$_GET["text"]);
echo "$text3";
}
?>
• كود api ردود مرتب تكدر تضيف مثل ما تشوف بالكود .
• سويته طلب من متابعين اترو .
dev: @d666d6
if($_GET["text"]){
$text1 = array("هلو",
"شلونك",
"شخبارك",
"حمو");
$text2 = array("هلا",
"زين",
"تمام وانت",
"مطوري");
$text3 = str_replace($text1,$text2,$_GET["text"]);
echo "$text3";
}
?>
• كود api ردود مرتب تكدر تضيف مثل ما تشوف بالكود .
• سويته طلب من متابعين اترو .
dev: @d666d6
👍1
$mnnlo = json_decode(file_get_contents("mnnlo.json"),1);
$admin = 00;#ايديك
$all = count($mnnlo['id'])-1;
if ($text== "/start" && !in_array($from_id,$mnnlo['id'])){
bot('sendmessage',[
'chat_id'=>$admin,
'text'=>'
٭ تم دخول شخص جديد الى البوت الخاص بك 👾
-----------------------
• معلومات العضو الجديد .
• الاسم : '.$update->message->from->first_name.'
• المعرف : '.$update->message->from->username.'
• الايدي : '.$update->message->from->id.'
-----------------------
• عدد الاعضاء الكلي : '.$all,
]);
file_put_contents("mnnlo.json");
$mnnlo['id'][] = "$update->message->from->id";
file_put_contents("mnnlo.json",json_encode($mnnlo));
}
كود اشعارات الدخول بدون تكرار .
@d666d6
$admin = 00;#ايديك
$all = count($mnnlo['id'])-1;
if ($text== "/start" && !in_array($from_id,$mnnlo['id'])){
bot('sendmessage',[
'chat_id'=>$admin,
'text'=>'
٭ تم دخول شخص جديد الى البوت الخاص بك 👾
-----------------------
• معلومات العضو الجديد .
• الاسم : '.$update->message->from->first_name.'
• المعرف : '.$update->message->from->username.'
• الايدي : '.$update->message->from->id.'
-----------------------
• عدد الاعضاء الكلي : '.$all,
]);
file_put_contents("mnnlo.json");
$mnnlo['id'][] = "$update->message->from->id";
file_put_contents("mnnlo.json",json_encode($mnnlo));
}
كود اشعارات الدخول بدون تكرار .
@d666d6
🔥1
$b = json_decode(file_get_contents("botss.json"),1);
if($text == "احسب رقم"){
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"*• حسنا عزيزي ارسل الاراقام للحسب
للتجميع استخدم -> +
للتنقيص استخدم -> -
للظرب استخدم -> ×
للتقسيم استخدم -> ÷
*",
'parse_mode'=>"MarkDown",
'reply_to_message_id'=>$message->message_id,
]);
$b["info"][$chat_id][$from_id] = "yes";
file_put_contents("botss.json",json_encode($b,32|128|265));
}
if($text != "احسب رقم" and $b["info"][$chat_id][$from_id] == "yes"){
$c = str_replace('÷', '/', $text);
$c = str_replace('×', '*', $text);
$text3 = urlencode($c);
$rs = file_get_contents('http://api.mathjs.org/v1/?expr='.$text3);
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"• تم حساب الرقم
$text = $rs",
'parse_mode'=>"MarkDown",
'reply_to_message_id'=>$message->message_id,
]);
$b["info"][$chat_id][$from_id] = "no";
file_put_contents("botss.json",json_encode($b,32|128|265));
}
كود رياضيات كود موضح .
تنشر اذكر مصدر .
dev : @d666d6
if($text == "احسب رقم"){
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"*• حسنا عزيزي ارسل الاراقام للحسب
للتجميع استخدم -> +
للتنقيص استخدم -> -
للظرب استخدم -> ×
للتقسيم استخدم -> ÷
*",
'parse_mode'=>"MarkDown",
'reply_to_message_id'=>$message->message_id,
]);
$b["info"][$chat_id][$from_id] = "yes";
file_put_contents("botss.json",json_encode($b,32|128|265));
}
if($text != "احسب رقم" and $b["info"][$chat_id][$from_id] == "yes"){
$c = str_replace('÷', '/', $text);
$c = str_replace('×', '*', $text);
$text3 = urlencode($c);
$rs = file_get_contents('http://api.mathjs.org/v1/?expr='.$text3);
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"• تم حساب الرقم
$text = $rs",
'parse_mode'=>"MarkDown",
'reply_to_message_id'=>$message->message_id,
]);
$b["info"][$chat_id][$from_id] = "no";
file_put_contents("botss.json",json_encode($b,32|128|265));
}
كود رياضيات كود موضح .
تنشر اذكر مصدر .
dev : @d666d6
❤4