ⱮℜᎧÂN MOᕼᗩᗰᗰEᗪ ☬
1.91K subscribers
53 photos
27 videos
83 files
99 links
قناة برمجية تساعد الناس هي قناة تهدف إلى توفير المعلومات والموارد اللازمة لتعلم البرمجة وتطوير المهارات البرمجية

@filemtime
@MROAN8
@M6tbot
Download Telegram
if($text){
bot( sendMessage ,[
chat_id =>$chat_id,
text =>"⚠️#المعذرا
┊يوجد صيانه في البوت",
reply_to_message_id =>$message->message_id,
]);
}


#كود_صيانه_استخدمو_من_يوكف_البوت
@php88
if($rep && $text=="/pin" or $text=="تثبيت"){
bot('pinChatMessage',[
'chat_id'=>$chat_id,
'message_id'=>$mid
]);
}
}
--------------
@php88
#كود تثبيت رساله
<?php
/*
---------------------#
--# By => @Mroan8
--# CH => @Mroan1235
--# CH => @php88:
---------------------#
*/

ob_start();
$API_KEY = "TOKEN-BOT";#توكن البوت
echo "<a href='https://api.telegram.org/bot$API_KEY/setwebhook?url=".$_SERVER['SERVER_NAME']."".$_SERVER['SCRIPT_NAME']."'>setwebhook</a>";
define('API_KEY',$API_KEY);
function bot($method,$datas=[]){
$url = "https://api.telegram.org/bot".API_KEY."/".$method;
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch,CURLOPT_POSTFIELDS,$datas);
$res = curl_exec($ch);
if(curl_error($ch)){
var_dump(curl_error($ch));
}else{return json_decode($res);}}

#-----------------(mroan)--------------------#
$update = json_decode(file_get_contents('php://input'));
$message = $update->message;
$text = $message->text;
$chat_id = $message->chat->id;
$name = $message->from->first_name;
$user = $message->from->username;
$message_id = $update->message->message_id;
$from_id = $update->message->from->id;

$info = json_decode(file_get_contents("https://api.telegram.org/bot".API_KEY."/getChatMember?chat_id=@Mroan1235&user_id=".$from_id));
$per = $info->result->status;
if ($per == 'left') {
if (!in_array($chat_id, $us)) {
file_put_contents("gm.txt", $chat_id."\n",FILE_APPEND);
}
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"
⚠️ عليك الأشتراك في القناة اولآ
قناة البوت @mroan1235 !!
"
]);
} else {

★★★★★★★★★★★★

#كود الاتصال بيه الاشتراك الاجباري والويب هوك من تسوي عرض للملف

@php88
$uo=json_decode(file_get_contents("https://api.telegram.org/bot$api/getchat?chat_id=$fromid"))->result;
$io=$uo->first_name;
$word = json_decode(file_get_contents("https://translate.yandex.net/api/v1.5/tr.json/detect?key=trnsl.1.1.20170725T151635Z.31fe7a5603917164.915fed1f5a9aaebef43860694075516e7af7aa47&text=".urlencode($io)))->lang;
$new = $update->message->new_chat_member;



if($new and $word !="ar" and $word !="en"){
bot('SendMessage', [
'chat_id'=>$chatid,
'text'=>"غير مرحب بك هنا : [$io](tg://user?id=$fromid)",
'parse_mode'=>"Markdown",
]);
bot('kickChatMember',[
'chat_id'=>$chatid,
'user_id'=>$fromid,
]);
}

#كود _حضر _للغه_الفارسيه