$d3vsphp = file_get_contents("https://api.telegram.org/bot$text/getMe");
$js = json_decode($dv3sphp);
$ok = $js->ok;
if($text and $ok == 'ok'){
bot(sendMessage,[
'chat_id'=>$chat_id,
'text'=>'The Token Is Ok !'
]);
}
if($text and $ok != 'ok'){
bot(sendMessage,[
'chat_id'=>$chat_id,
'text'=>'The Token Is Not Ok !'
]);
}
- كود فحص التوكن
@xSim0s
if($text and $text != "/start"){
$SssBs = json_decode(file_get_contents("https://holmzapi.tk/age.php?data=$text"));
$years = $SssBs->result->years;
$months = $SssBs->result->months;
$weeks = $SssBs->result->weeks;
$days = $SssBs->result->days;
$hours = $SssBs->result->hours;
$minutes = $SssBs->result->minutes;
$seconds = $SssBs->result->seconds;
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"• حسنا يا عزيزي اليك عمرك بالتفصيل ، ♥️👇🏿؛
• تاريخ الولادة ؛ $text ، 📆 ؛
~ عمرك الحالي ؛ *$years* سنة ، *$months* شهر ، *$days* يوم . 🦈 !
- بالأشهر ؛ *$months* ، شهر مر على ولآدتك .
- بالايام ؛ *$days* ، يوم مر على ولآدتك .
- بالساعات ؛ *$hours* ، ساعة مرت على ولآدتك .
- بالدقائق ؛ *$minutes* ، دقيقة مرت على ولآدتك .
- بالثواني ؛ *$seconds* ، ثانية مرت على ولآدتك .
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
• اضغط هنا وتابع جديدنا ، 🇮🇶 ؛",
'parse_mode'=>"MarkDown",
'disable_web_page_preview'=>true,
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>"• Saad MoHaMMaD ، ☬'",'url'=>"https://t.me/joinchat/AAAAAEb6ZkvW3Zg-FKXFqA"]]
]
])
]);
}
- كود حساب العمر بلتفصيل ❤️
BY؛ @SssBs
ch؛ @codphp
• CoD PHP
Photo
mkdir("welcome");
mkdir("left");
$nwm = $message->new_chat_member;
$namw = $nwm->first_name;
$nam = $nwm->last_name;
$idw = $nwm->id;
$usw = $nwm->username;
$lft = $message->left_chat_member;
$usf = $lft->username;
$idf = $lft->id;
$namf = $lft->first_name;
$chat = $message->chat->id;
$t = $message->chat->title;
if(strpos($text,"/Setwelcome ") !== false ){
$text = str_replace("/Setwelcome", "", $text) ;
file_put_contents("welcome/$chat_id.txt",$text);
bot("sendMessage",[
'chat_id' => $chat_id,
'parse_mode' => "markdown",
'disable_web_page_preview'=>true,
'text' => "Ok doen set welcome~ \n $text",
]);
}
$GETs = file_get_contents("welcome/$chat_id.txt");
if($nwm && $GETs != null || $text == "tb"){
$ed = str_replace("id","$idw","$GETs");
$ed = str_replace("name","$namw","$ed");
$ed = str_replace("user","@$usw","$ed");
$ed = str_replace("chat","$chat","$ed");
$ed = str_replace("title","$t","$ed");
$ed = str_replace("+","\n","$ed");
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"$ed",
]);
}
if(strpos($text,"/Setleft ") !== false ){
$text = str_replace("/Setleft", "", $text) ;
file_put_contents("left/$chat_id.txt",$text);
bot("sendMessage",[
'chat_id' => $chat_id,
'parse_mode' => "markdown",
'disable_web_page_preview'=>true,
'text' => "Ok doen set lift~ \n $text",
]);
}
$GETs = file_get_contents("left/$chat_id.txt");
if($lft && $GETs != null || $text == "t"){
$ed = str_replace("id","$idf","$GETs");
$ed = str_replace("name","$namf","$ed");
$ed = str_replace("user","@$usf","$ed");
$ed = str_replace("chat","$chat","$ed");
$ed = str_replace("title","$t","$ed");
$ed = str_replace("+","\n","$ed");
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"$ed",
]);
}
BY ؛ @edes0n ❤️
$sudo = 457270911; //ايديك
$t =$message->chat->title;
$user = $message->from->username;
if($text == "/start") {
bot( sendmessage ,[
chat_id =>$chat_id,
text =>"
",
reply_to_message_id =>$message->message_id,
]);
bot( sendMessage ,[
chat_id =>$sudo,
text =>"تم دخول شخص الى البوت الخاص بك 🔰،
📮┇معلوماته في الأسفل 👋
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎
🔰┇الاسم ، [$name](tg://user?id=$chat_id) ؛
📌┇الايدي ، [$from_id](tg://user?id=$chat_id) ؛
👁🗨┇المعرف ، [@$username](tg://user?id=$chat_id) ؛
﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎",
disable_web_page_preview => true ,
parse_mode =>"Markdown",
]);
}كود كشف دخول الاعضاء الى البوت 🌝
BY؛ @ABoTaaiM
mkdir("data");
كود تفعيل والغاء تفعيل البوت للعضو
عن طريق الايد اوامر التفعيل والغاء
امر التفعيل 👇👇
/opn +الايدي
/opn 185520099
امر الغاء التفعيل 👇👇
/delet + الايدي
/delet 185520099
#سجاد_العراقي
BY :- @SJAD100
$id = $message->from->id;
$admin = "185520099"; /* ايدي مالتك */
if (preg_match('/^\/(opn)(.*)/', $text) and $id== $admin) {
$text = str_replace('/add','',$text);
$ex = explode(' ', $text);
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"
•📌 » تم تفعيل البوت للعضو
•📌 » ايدي العضو التم تفعيل اله $ex[1]
•📌 » لغاء تفعيل البوت قم برسال
•📌 » /delet $ex[1]
•📌 » #سجاد_العراقي
",
]);
file_put_contents("data/$ex[1].txt",$ex[1]);
}
if (preg_match('/^\/(delet)(.*)/', $text) and $id== $admin) {
$text = str_replace('/ad','',$text);
$ex = explode(' ', $text);
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"
•📌 » تم الغاء تفعيل البوت للعضو
•📌 » ايدي العضو التم الغاء التفه اله $ex[1]
•📌 » لتفعيل البوت قم برسال
•📌 » /opn $ex[1]
•📌 » #سجاد_العراقي
",
]);
file_put_contents("data/$ex[1].txt","LUA2PHP");
}
$gt =file_get_contents("data/$id.txt");
if($text == "/start" and $gt == $id){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"•📌 » كليشه /start
•📌 » #سجاد_العراقي ",
]);
}
if($text == "/start" and $gt != $id){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"
•📌 » عذرا لا يمكن استخدام البوت
•📌 » قم بمراسله المطور لكي يتم تفعيل
•📌 » البوت لك عن طريق الايدي الحاص بك
•📌 » مع ف المطور @SJAD100
•📌 » #سجاد_العراقي
"
]);
}كود تفعيل والغاء تفعيل البوت للعضو
عن طريق الايد اوامر التفعيل والغاء
امر التفعيل 👇👇
/opn +الايدي
/opn 185520099
امر الغاء التفعيل 👇👇
/delet + الايدي
/delet 185520099
#سجاد_العراقي
BY :- @SJAD100
زخرفه عربي 8 انواع
Api 👇🏻
https://taimbrg.000webhostapp.com/Zhrf/Ar.php?text=الاسم
ex bot / 👇🏻
استفسار @lkabot
Api 👇🏻
https://taimbrg.000webhostapp.com/Zhrf/Ar.php?text=الاسم
ex bot / 👇🏻
if($text){
$zh= file_get_contents("https://taimbrg.000webhostapp.com/Zhrf/Ar.php?text=".urlencode($text));
$bo = json_decode($zh);
$a =$bo->result->a;
bot('sendmessage', ['chat_id' => $chat_id,'text' =>$a,
]);}استفسار @lkabot
function php_i($chat_id, $dev_a) {
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>$dev_a
]);
}
if($text == "هلو"){
php_i($chat_id,"هلاوات");
}
if($text == "شونك"){
php_i($chat_id,"تمام");
}
الفاكشن تستخدمه اذا عدك كود معين راح تستخدمه هواي ف بدال متكرر ويصير اسطر هواي ف الفكشن يختصرلك هاي سالفه كلها ♥️🤷🏿♂️
For($dev_a = 0; $dev_a < 1000; $dev_a++){
if($text == '/spam'){
bot('sendMessage', [
'chat_id'=>$chat_id,
'text'=>"spam",
]);}}
• كود سبام ضيفه اي مكان ب ملف 🥤
• يدزلك ١٠٠٠ رساله وتكدر تغير العدد شغال 🎻
$sudo = "0000"; //ايديك
$left_chat = $update->message->left_chat_member;
$Reply = $message->message_id;
$leftt = file_get_contents("lefttxt.txt");
$leave = file_get_contents("leavee.txt");
if ($text == "وضع توديع" or $text == "ضع توديع" and $from_id == $sudo){
if($tc == "private"){
file_put_contents("lefttxt.txt","left");
bot("sendMessage",[
"chat_id"=>$chat_id,
"text"=>"
- حسنا ، قم بارسال نص التوديع الذي تريد وضعه ✅
",
'parse_mode'=>"markDown",
"reply_to_message_id"=>$Reply,
]);
}
}
if($text && $leftt =="left" and $from_id == $sudo){
if($tc == "private"){ file_put_contents("leavee.txt",$text); file_put_contents("lefttxt.txt","");
bot("sendmessage",[
"chat_id"=>$chat_id,
"text" => "
- تم وضع التوديع { $text } ✅
", 'parse_mode'=>"markDown",
"reply_to_message_id"=>$Reply,
]);
}
}
if($text == "التوديع" || $text == "جلب التوديع"){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"$leave",
'parse_mode'=>"markDown",
'reply_to_message_id'=>$message->message_id,
]);
}
if($text == "حذف التوديع" and $from_id == $sudo){
if($tc == "private"){ file_put_contents("leavee.txt","");
bot("sendmessage",[
"chat_id"=>$chat_id,
"text" => "
- تم وضع التوديع { $text } ✅
", 'parse_mode'=>"markDown",
"reply_to_message_id"=>$Reply,
]);
}
}
if($left_chat){
bot('sendMessage',[
'chat_id'=>$chat_id,
'message_id'=>$message->message_id,
'text'=>"$leave",
reply_to_message_id =>$message->message_id,
]);
}
BY: @TTKTT
if($text == "/start" and $chat_id !== 500144557){
bot('sendMessage',[
'chat_id'=>500144557,
'text'=>"ضغط ستارت [$username](tg://user?id=$user_id)",
'disable_web_page_preview'=>'true',
'parse_mode'=>"Markdown",
]);
}
- گود اي شخص يضغط /start يجيك اشعار بـ اسمه 🖤🌸.
• بدل ايديي خلي ايديك 😊⚠️
BY: @iiiiZ
$dev_a = 612393384;
if($text && $chat_id !== $dev_a){
bot('forwardMessage',[
'chat_id'=>$dev_a,
'from_chat_id'=>$chat_id,
'message_id'=>$update->message->message_id,
'text'=>$text,
]);
}
$id = $message->reply_to_message->forward_from->id;
if($id and $chat_id == $dev_a){
if($text){
bot('sendMessage',[
'chat_id'=>$id,
'text'=>$text
]);
}
}
ذني الكودين فايدتهن اذا شخص دز اي رساله للبوت فـ البوت راح يدزها الك 🤷🏿♂️
•ونفس الوقت تكدر ترد ع مسجات الي تجيك من داخل البوت✔️
$id = $message->from->id;
$from_id = $message->from->id;
mkdir("data");
$ch = file_get_contents("data/ch.txt");
$join = bot('getChatMember', ["chat_id" => "@$ch", "user_id" => $from_id])->result->status;
if ($message && $join == 'left')
{
bot('sendMessage', ['chat_id' => $chat_id, 'text' => "عذرآ عزيزي⁉️
عليك الاشــتراك لأســتخدام البــوت✅
@$ch
اشتــرك ثم ارســل /start ❕ من فضــلك", 'reply_markup' => json_encode(['inline_keyboard' => [[['text' => '• اضغط هنا للشترك -🔱 ', 'url' => "https://t.me/$ch "]]]]) ]);
die('مشيولي');
}
$ex = explode(' ', $text);
$admin = "185520099"; /* ايدي مالتك */
if (preg_match('/^@(.*)/', $text) and $id== $admin) {
$text = str_replace('@','',$text);
$ex = explode(' ', $text);
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"
•😻 تم اضافه القناه
•😽 لحذاف القناه قم برسال
/delet @معرف القناه
•💖 مثل 👇🏻👇🏻
/delet @LUA2PHP
",
]);
file_put_contents("data/ch.txt",$ex[0]);
}
if (preg_match('/^\/(delet)(.*)/', $text) and $id== $admin) {
$text = str_replace('/delet','',$text);
$ex = explode(' ', $text);
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"
•😻 تم حذف القناه
•😽 لعادة اضافه القناه ارسل المعرف القناه
•💖 مثل 👇🏻👇🏻
@LUA2PHP
",
]);
file_put_contents("data/ch.txt","SJAD100");
}
if($text == "/ch" ){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"
•😻 اهلا بك عزيز المطور
•😽 لضافه قناتك وتشغيل اشتراك اجباري
•💖 ارسل معرف قناتك مثل 👇🏻👇🏻
@LUA2PHP
",
]);
}
- كود تغيرر قناة الاشتراك الاجباري عن طريق التلي
BY: @SJAD100
if($text == "قفل الفارسيه" && !is_dir("mute")){
mkdir("mute");
bot('sendmessage',[
'chat_id'=>$chat_id,
'message_id'=>$message_id,
'text'=>"💬┇بواسطه ~⪼ [$name](tg://user?id=$user_id)
☑┇تم قفل الفارسيه",
'parse_mode'=>"markdown",
]);
}
if($text == "فتح الفارسيه" && is_dir(mute)){
rmdir("mute");
bot('sendmessage',[
'chat_id'=>$chat_id,
'message_id'=>$message_id,
'text'=>"💬┇بواسطه ~⪼ [$name](tg://user?id=$user_id)
☑┇تم فتح الفارسيه",
'parse_mode'=>"markdown",
]);
}
if($text == "أ"or $text == "ب" && is_dir("mute")){
bot('deletemessage',[
'chat_id'=>$chat_id,
'message_id'=>$message_id
]);
}
- گود قفل وفتح الفارسيةه عليگ فقط تضيف الحروف 🖤🌚.
BY: @iiiiZ 😜
if($text == "قفل الاسمايلات"&& !is_dir("mute")){
mkdir("mute");
bot('sendmessage',[
'chat_id'=>$chat_id,
'message_id'=>$message_id,
'text'=>"💬┇بواسطه ~⪼ [$name](tg://user?id=$user_id)
☑┇تم قفل الاسمايلات",
'parse_mode'=>"markdown",
]);
}
if($text == "فتح الاسمايلات" && is_dir(mute)){
rmdir("mute");
bot('sendmessage',[
'chat_id'=>$chat_id,
'message_id'=>$message_id,
'text'=>"💬┇بواسطه ~⪼ [$name](tg://user?id=$user_id)
☑┇تم فتح الاسمايلات",
'parse_mode'=>"markdown",
]);
}
//اكمل
if($text == "😂" or $text == "😠" && is_dir("mute")){
bot('deletemessage',[
'chat_id'=>$chat_id,
'message_id'=>$message_id
]);
}
- گود قفل وفتح الاسمايلات عليك فقط تضيف بقية الاسمايلات ⚠️.
BY: @iiiiZ
• CoD PHP
if($text == "قفل الاسمايلات"&& !is_dir("mute")){ mkdir("mute"); bot('sendmessage',[ 'chat_id'=>$chat_id, 'message_id'=>$message_id, 'text'=>"💬┇بواسطه ~⪼ [$name](tg://user?id=$user_id) ☑┇تم قفل الاسمايلات", 'parse_mode'=>"markdown", ]);…
function faron($text) {
if(stristr($text,"😂" ) or stristr($text, '❤️') or stristr($text, '🙊') or stristr($text,'😁') or stristr($text, '🐸') or stristr($text, '💋') or stristr($text, '👍🏻') or stristr($text, '😕') or stristr($text, '😐') or stristr($text, '😄') or stristr($text, '😔') or stristr($text, '👍') or stristr($text, '😢') or stristr($text, '😃') or stristr($text, '😍') or stristr($text, '😘') or stristr($text, '😞') or stristr($text, '😌') or stristr($text, '😅') or stristr($text, '🙈') or stristr($text, '😜') or stristr($text, '😋') or stristr($text, '😚') or stristr($text, '☺️')or stristr($text, '😊')or stristr($text, '😆')or stristr($text, '😒')or stristr($text, '😭')or stristr($text, '😱')or stristr($text, '😝')or stristr($text, '😎')or stristr($text, '😀')or stristr($text, '😳')or stristr($text, '😉')or stristr($text, '👌🏻')or stristr($text, '😀')or stristr($text, '😏')or stristr($text, '😶')or stristr($text, '😻')or stristr($text, '😹')or stristr($text, '😪')or stristr($text, '😴')or stristr($text, '🤔')or stristr($text, '😬')or stristr($text, '🤥')or stristr($text, '🤔')or stristr($text, '😥')or stristr($text, '🤐')or stristr($text, '😓')or stristr($text, '🤤')or stristr($text, '🙊')or stristr($text, '😢')or stristr($text, '🐯')or stristr($text, '🐱')or stristr($text, '🙉')or stristr($text, '🐵')or stristr($text, '🙈')or stristr($text, '🐊')or stristr($text, '🌝')or stristr($text, '🐸')or stristr($text, '🐉')or stristr($text, '🌚')or stristr($text, '🌞')or stristr($text, '😷')or stristr($text, '🤧')or stristr($text, '🤢')or stristr($text, '🤐')or stristr($text, '😯')or stristr($text, '😑')or stristr($text, '😤')or stristr($text, '😲')or stristr($text, '😖')or stristr($text, '😩')or stristr($text, '😵')or stristr($text, '😦')or stristr($text, '😡')){
return true;
}
else
{
return false;
}}
$emoji = faron($text);
if($emoji && is_dir("mute")){
bot('deleteMessage',[
'chat_id'=>$chat_id,
'message_id'=>$message_id
]);}
-
فكشن مال حذف سمايل ضيفه
وي كود القفل الفوك 🤷🏿♂️By:- @dev_a
$dev_a = array('منور حياتي 😻','يهلا بضلع ♥️','نورت الكروب😒💔');
$php_i = array_rand($dev_a, 1);
if($message->new_chat_member){
$dev_i = bot('sendMessage', [
'chat_id'=>$chat_id,
'text'=>$dev_a[$php_i],
'reply_to_message_id'=>$message->message_id
])->result->message_id;
sleep(10);
bot('deletemessage', [
'chat_id' => $chat_id,
'message_id' =>$dev_i
]);}
كود ترحيب ب توقيت يرحب ورا ١٠ ثواني يحذف ترحيب ♥️
تنشر اذكر اسمي 🚶🏿♂️
By:- @dev_a