Advertisement
ijavamulti

Bot Telegram

Feb 13th, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 94.39 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4. <Abdulaziz>
  5.     «iJava»
  6. */
  7. ob_start();
  8. $API_KEY = '1059909251:AAHOklNPpMccrnFwcsvI94fK1g1Vd6ByZyY'; //add your bot token
  9. $bot_ = "ScriptXbot";
  10. define('API_KEY',$API_KEY);
  11. function bot($method,$datas=[]){
  12.     $url = "https://api.telegram.org/bot".API_KEY."/".$method;
  13.     $ch = curl_init();
  14.     curl_setopt($ch,CURLOPT_URL,$url);
  15.     curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
  16.     curl_setopt($ch,CURLOPT_POSTFIELDS,$datas);
  17.     $res = curl_exec($ch);
  18.     if(curl_error($ch)){
  19.         var_dump(curl_error($ch));
  20.     }else{
  21.         return json_decode($res);
  22.     }
  23. }
  24.  function sendmessage($chat_id, $text, $model){
  25.  bot('sendMessage',[
  26.  'chat_id'=>$chat_id,
  27.  'text'=>$text,
  28.  'parse_mode'=>$mode
  29.  ]);
  30.  }
  31.  function sendphoto($chat_id, $photo, $captionl){
  32.  bot('sendphoto',[
  33.  'chat_id'=>$chat_id,
  34.  'photo'=>$photo,
  35.  'caption'=>$caption,
  36.  ]);
  37.  }
  38.  function sendsticker($chat_id, $photo, $captionl){
  39.  bot('sendsticker',[
  40.  'chat_id'=>$chat_id,
  41.  'sticker'=>$photo,
  42.  'caption'=>$caption,
  43.  ]);
  44.  }
  45.  function sendaudio($chat_id, $audio, $caption){
  46.  bot('sendaudio',[
  47.  'chat_id'=>$chat_id,
  48.  'audio'=>$audio,
  49.  'caption'=>$caption,
  50.  ]);
  51.  }
  52.  function sendvoice($chat_id, $voice, $caption){
  53.  bot('sendvoice',[
  54.  'chat_id'=>$chat_id,
  55.  'voice'=>$voice,
  56.  'caption'=>$caption,
  57.  ]);
  58.  }
  59.  
  60.  function sendaction($chat_id, $action){
  61.  bot('sendchataction',[
  62.  'chat_id'=>$chat_id,
  63.  'action'=>$action
  64.  ]);
  65.  }
  66.    
  67.     function save($filename,$TXTdata)
  68.     {
  69.     $myfile = fopen("data/".$filename, "w") or die("Unable to open file!");
  70.     fwrite($myfile, "$TXTdata");
  71.     fclose($myfile);
  72.     }
  73.  //====================the file by mounir======================//
  74.  
  75. $update = json_decode(file_get_contents('php://input'));
  76. var_dump($update);
  77. $message = $update->message;
  78. $from_id = $message->from->id;
  79. $chat_id = $message->chat->id;
  80. $textid = $message->text->id;
  81. $text = $message->text;
  82. $textmessage = isset($update->message->text)?$update->message->text:'';
  83. $myphoto = $update->message->file_size;
  84. $edit = $update->message->edited_channel_post;
  85. $new_gp_name = $update->message->new_chat_title;
  86. $new_gp_photo = $update->message->new_chat_photo;
  87. $del_gp_photo = $update->message->delete_chat_photo;
  88. $new_member = $update->message->new_chat_member;
  89. $left = $update->message->left_chat_member;
  90. $test = $update->message->contact;
  91. $audio = $update->message->audio;
  92. $location = $update->message->location;
  93. $memb = $update->message->message_id;
  94. $game = $update->message->game;
  95. $name = $update->message->from->first_name;
  96. $gp_name = $update->message->chat->title;
  97. $user = $update->message->from->username;
  98. $for = $update->message->from->id;
  99. $sticker = $update->message->sticker;
  100. $video = $update->message->video;
  101. $photo = $update->message->photo;
  102. $voice = $update->message->voice;
  103. $doc = $update->message->document;
  104. $fwd = $update->message->forward_from;
  105. $fwd_id = $update->message->forward_from->id;
  106. $fwd_to = $update->message->forward_to;
  107. $fwd_user = $update->message->forward_from->username;
  108. $fwd_name = $update->message->forward_from->first_name;
  109. $pin = $update->message->pinned_message;
  110. $re = $update->message->reply_to_message;
  111. $re_id = $update->message->reply_to_message->from->id;
  112. $re_user = $update->message->reply_to_message->from->username;
  113. $user_id = $update->message->from->id;
  114. $re_name = $update->message->reply_to_message->from->first_name;
  115. $re_msgid = $update->message->reply_to_message->message_id;
  116. $re_chatid = $update->message->reply_to_message->chat->id;
  117. $re_fwdid = $update->message->reply_to_message->forward_from->id;
  118. $message_id = $update->message->message_id;
  119. $type = $update->message->chat->type;
  120.  
  121. $cllchatid = $update->callback_query->message->chat->id;
  122. $data = $update->callback_query->data;
  123. $cllmsegid = $update->callback_query->message->message_id;
  124. $cllfor = $update->callback_query->from->id;
  125.  
  126. $gplink = file_get_contents("data/$chat_id/gplink.txt");
  127. $getruels = file_get_contents("data/$chat_id/rules.txt");
  128. $getwelcome = file_get_contents("data/$chat_id/welcome.txt");
  129. $photo1 = file_get_contents("data/$chat_id/photo.txt");
  130. $sticker1 = file_get_contents("data/$chat_id/sticker.txt");
  131. $pin1 = file_get_contents("data/$chat_id/pin.txt");
  132. $doc1 = file_get_contents("data/$chat_id/doc.txt");
  133. $game1 = file_get_contents("data/$chat_id/game.txt");
  134. $fwd1 = file_get_contents("data/$chat_id/fwd.txt");
  135. $voice1 = file_get_contents("data/$chat_id/voice.txt");
  136. $link1 = file_get_contents("data/$chat_id/link.txt");
  137. $audio1 = file_get_contents("data/$chat_id/audio.txt");
  138. $video1 = file_get_contents("data/$chat_id/video.txt");
  139. $text1 = file_get_contents("data/$chat_id/text.txt");
  140. $tag1 = file_get_contents("data/$chat_id/tag.txt");
  141.  
  142. $photo12 = file_get_contents("data/$cllchatid/photo.txt");
  143. $sticker12 = file_get_contents("data/$cllchatid/sticker.txt");
  144. $pin12 = file_get_contents("data/$cllchatid/pin.txt");
  145. $doc12 = file_get_contents("data/$cllchatid/doc.txt");
  146. $game12 = file_get_contents("data/$cllchatid/game.txt");
  147. $fwd12 = file_get_contents("data/$cllchatid/fwd.txt");
  148. $voice12 = file_get_contents("data/$cllchatid/voice.txt");
  149. $link12 = file_get_contents("data/$cllchatid/link.txt");
  150. $audio12 = file_get_contents("data/$cllchatid/audio.txt");
  151. $video12 = file_get_contents("data/$cllchatid/video.txt");
  152. $text12 = file_get_contents("data/$cllchatid/text.txt");
  153. $tag12 = file_get_contents("data/$cllchatid/tag.txt");
  154.  
  155. $warn = file_get_contents("data/$chat_id/warn/warn.txt");
  156. $warn_ = file_get_contents("data/$cllchatid/warn/warn.txt");
  157. $warn_2 = file_get_contents("data/$chat_id/warn/$re_id.txt");
  158. $warn_3 = file_get_contents("data/$chat_id/warn/$re_id.txt");
  159.  
  160.  
  161. $get = file_get_contents("https://api.telegram.org/bot$API_KEY/getChatMember?chat_id=$chat_id&user_id=".$from_id);
  162. $info = json_decode($get, true);
  163. $you = $info['result']['status'];
  164. $you_ = $info['result']['user']['id'];
  165.  
  166. $get_ = file_get_contents("https://api.telegram.org/bot$API_KEY/getChatMember?chat_id=$cllchatid&user_id=".$cllfor);
  167. $info_ = json_decode($get_, true);
  168. $you_ = $info_['result']['status'];
  169. //====================the file by mounir======================//
  170. if($text == '/start'){
  171. sendaction($chat_id,'typing');
  172. bot('sendMessage',[
  173.     'chat_id'=>$chat_id,
  174.     'text'=>"اهلا بك
  175. ‎يمكنك من خلال هذا البوت ان تحمي مجموعتك الخاصة 👁‍🗨
  176. ‎سيحذف لكل رابط + صور + ملصقات + روابط ..الخ  💡
  177. فقط أضف البوت الى المجموعه الخاصة بك ثم ارفعه اداري وأرسل له. /add ✨➖
  178.        🐾➖➖➖➖➖🐾
  179. Welcome Sir ،
  180. You can above this bot security 🚨 your Group
  181. It Delete All Links + Photo + Stickers + Fwds , 💡
  182. Just add a bot to group , up a mod and send it /add ✨➖
  183. ENJOY ⚗️🔱",
  184.     'reply_to_message_id'=>$message->message_id,
  185.     'parse_mode'=>'html',
  186.    'reply_markup'=>json_encode([
  187.       'inline_keyboard'=>[
  188.      [
  189.         ['text'=>"⚛ more «~» اكثر ⚛",'callback_data'=>"start"]
  190.       ]
  191.      
  192.         ]
  193.         ])
  194.   ]);
  195. }
  196.  
  197. if($data == 'start'){
  198.     bot('editmessagetext',[
  199.         'chat_id'=>$cllchatid,
  200.     'message_id'=>$cllmsegid,
  201.     'text'=>"بعض الاوامر التي تساعدك 💡
  202. اختر ماتريده 👁‍🗨
  203.          🐾➖➖➖➖➖🐾
  204. Some Orders help you 💡
  205. Select would you want 👁‍🗨",
  206.  'parse_mode'=>'html',
  207.    'reply_markup'=>json_encode([
  208.       'inline_keyboard'=>[
  209.       [
  210.         ['text'=>"🇮🇶 العربية 🇮🇶",'callback_data'=>"super_"]
  211.       ],
  212.       [
  213.      ['text'=>"اضفني الى مجموعتك ♣️", 'url'=>"https://telegram.me/$bot_?startgroup=start"]
  214.      ],
  215.         [
  216.      ['text'=>"مراسلة المطور 🚶", 'url'=>"t.me/mroan8"]
  217.      ],
  218.        [
  219.         ['text'=>"🇦🇺 English 🇦🇺",'callback_data'=>"super_"]
  220.       ],
  221.        [
  222.     ['text'=>"Add me to your Gp ♣️️", 'url'=>"https://telegram.me/$bot_?startgroup=start"]
  223.     ],
  224.      [
  225.      ['text'=>"support 💡", 'url'=>"t.me/ mroan1235"]
  226.      ],
  227.     ]
  228.     ])
  229.     ]);
  230.     }
  231.  if($photo  && $you != "creator" && $you != "administrator" && !$fwd && $type == "supergroup" && $photo1 == "❌"){
  232. bot('deleteMessage',[
  233. 'chat_id'=>$chat_id,
  234. 'message_id'=>$message->message_id
  235. ]);
  236. }
  237. if($voice   && $you != "creator" && $you != "administrator" && !$fwd && $type == "supergroup" && $voice1 == "❌"){
  238. bot('deleteMessage',[
  239. 'chat_id'=>$chat_id,
  240. 'message_id'=>$message->message_id
  241. ]);
  242. }
  243. if($audio   && $you != "creator" && $you != "administrator" && !$fwd && $type == "supergroup" && $audio1 == "❌"){
  244. bot('deleteMessage',[
  245. 'chat_id'=>$chat_id,
  246. 'message_id'=>$message->message_id
  247. ]);
  248. }
  249. if($video   && $you != "creator" && $you != "administrator" && !$fwd && $type == "supergroup" && $video1 == "❌"){
  250. bot('deleteMessage',[
  251. 'chat_id'=>$chat_id,
  252. 'message_id'=>$message->message_id
  253. ]);
  254. }
  255.  if( !$fwd && $type == "supergroup" && $link1 == "❌" && $you != "creator" && $you != "administrator" ){
  256.  if(preg_match('/^(.*)([Hh]ttp|[Hh]ttps|t.me)(.*)|([Hh]ttp|[Hh]ttps|t.me)(.*)|(.*)([Hh]ttp|[Hh]ttps|t.me)|(.*)[Tt]elegram.me(.*)|[Tt]elegram.me(.*)|(.*)[Tt]elegram.me|(.*)[Tt].me(.*)|[Tt].me(.*)|(.*)[Tt].me/',$text) ){
  257. bot('deleteMessage',[
  258. 'chat_id'=>$chat_id,
  259. 'message_id'=>$message->message_id
  260.   ]);
  261. } }
  262.  if( !$fwd && $type == "supergroup" && $tag1 == "❌" && $you != "creator" && $you != "administrator" ){
  263. if(preg_match('/^(.*)@|@(.*)|(.*)@(.*)|(.*)#(.*)|#(.*)|(.*)#/',$text)  ){
  264. bot('deleteMessage',[
  265. 'chat_id'=>$chat_id,
  266. 'message_id'=>$message->message_id
  267.   ]);
  268. } }
  269. if($doc   && $you != "creator" && $you != "administrator" && !$fwd && $type == "supergroup" && $doc1 == "❌"){
  270. bot('deleteMessage',[
  271. 'chat_id'=>$chat_id,
  272. 'message_id'=>$message->message_id
  273. ]);
  274. }
  275. if($game   && $you != "creator" && $you != "administrator" && !$fwd && $type == "supergroup" && $game1 == "❌"){
  276. bot('deleteMessage',[
  277. 'chat_id'=>$chat_id,
  278. 'message_id'=>$message->message_id
  279. ]);
  280. }
  281. if($sticker   && $you != "creator" && $you != "administrator" && !$fwd && $type == "supergroup" && $sticker1 == "❌"){
  282. bot('deleteMessage',[
  283. 'chat_id'=>$chat_id,
  284. 'message_id'=>$message->message_id
  285. ]);
  286. }
  287. elseif($update->message->forward_from && $you != "creator" && $you != "administrator" ){
  288. if( $fwd1 == "❌"){
  289.     bot('deleteMessage',[
  290.  'chat_id'=>$chat_id,
  291. 'message_id'=>$message->message_id
  292.    ]);
  293.     }
  294.     }
  295. if($text   && $you != "creator" && $you != "administrator" && $type == "supergroup" && $text1 == "❌"){
  296. bot('deleteMessage',[
  297. 'chat_id'=>$chat_id,
  298. 'message_id'=>$message->message_id
  299. ]);
  300. }
  301. if($you == "creator" or $you == "administrator") {
  302. if($re  &&  $text == "/del" ){
  303. bot('deleteMessage',[
  304. 'chat_id'=>$re_chatid,
  305. 'message_id'=>$re_msgid
  306. ]);
  307. }
  308. }
  309.  
  310. //########
  311. /////////////////########
  312.  
  313. if($you == "creator" or $you == "administrator") {
  314. if($text == "/add"){
  315.     mkdir("data");
  316.     mkdir("data/$chat_id");
  317.     file_put_contents("data/$chat_id/game.txt","❌");
  318.     file_put_contents("data/$chat_id/tag.txt","❌");
  319.     file_put_contents("data/$chat_id/photo.txt","❌");
  320.     file_put_contents("data/$chat_id/fwd.txt","❌");
  321.     file_put_contents("data/$chat_id/sticker.txt","❌");
  322.     file_put_contents("data/$chat_id/pin.txt","❌");
  323.     file_put_contents("data/$chat_id/doc.txt","❌");
  324.     file_put_contents("data/$chat_id/link.txt","❌");
  325.     file_put_contents("data/$chat_id/video.txt","❌");
  326.     file_put_contents("data/$chat_id/audio.txt","❌");
  327.     file_put_contents("data/$chat_id/voice.txt","❌");
  328.     file_put_contents("data/$chat_id/text.txt","✅");
  329.     file_put_contents("data/$chat_id/rules.txt", "‼️ لا توجد قوانين هنا 🤦‍♂ من فضلك اكتب /setrules لوضع قوانين 🅿️!");
  330.     sendaction($chat_id, typing);
  331.     bot('sendmessage', [
  332.                 'chat_id' => $chat_id,
  333.                 'text' =>"🐭 تم تفعيل المجموعة بنجاح 😊",
  334.                 'reply_to_message_id'=>$message->message_id,
  335.          'parse_mode'=>'html',
  336.    'reply_markup'=>json_encode([
  337.       'inline_keyboard'=>[
  338.       [
  339.       ['text'=> $name ,'url'=>"http://telegram.me/" . $user]
  340.       ]
  341.    ]
  342.    ])
  343.    ]);
  344.    }    
  345.    }
  346.  if($you == "creator" or $you == "administrator") {
  347. if($text == '/lock all'){
  348.     file_put_contents("data/$chat_id/game.txt","❌");
  349.     file_put_contents("data/$chat_id/photo.txt","❌");
  350.     file_put_contents("data/$chat_id/fwd.txt","❌");
  351.     file_put_contents("data/$chat_id/sticker.txt","❌");
  352.     file_put_contents("data/$chat_id/pin.txt","❌");
  353.     file_put_contents("data/$chat_id/doc.txt","❌");
  354.     file_put_contents("data/$chat_id/link.txt","❌");
  355.     file_put_contents("data/$chat_id/video.txt","❌");
  356.     file_put_contents("data/$chat_id/audio.txt","❌");
  357.     file_put_contents("data/$chat_id/voice.txt","❌");
  358. sendaction($chat_id, typing);
  359.         bot('sendmessage', [
  360.                 'chat_id' => $chat_id,
  361.                 'text' =>"🌐 تم قفل جميع الوسائط 🚷",
  362.                 'reply_to_message_id'=>$message->message_id,
  363.          'parse_mode'=>'html',
  364.    'reply_markup'=>json_encode([
  365.       'inline_keyboard'=>[
  366.      [
  367.       ['text'=> $name ,'url'=>"http://telegram.me/" . $user]
  368.        ]
  369.     ]
  370.     ])
  371.     ]);
  372.     }
  373.     }
  374.  if($you == "creator" or $you == "administrator") {
  375. if($text == '/unlock all'){
  376.     file_put_contents("data/$chat_id/game.txt","✅");
  377.     file_put_contents("data/$chat_id/photo.txt","✅");
  378.     file_put_contents("data/$chat_id/fwd.txt","✅");
  379.     file_put_contents("data/$chat_id/sticker.txt","✅");
  380.     file_put_contents("data/$chat_id/pin.txt","✅");
  381.     file_put_contents("data/$chat_id/doc.txt","✅");
  382.     file_put_contents("data/$chat_id/link.txt","✅");
  383.     file_put_contents("data/$chat_id/video.txt","✅");
  384.     file_put_contents("data/$chat_id/audio.txt","✅");
  385.     file_put_contents("data/$chat_id/voice.txt","✅");
  386. sendaction($chat_id, typing);
  387.         bot('sendmessage', [
  388.                 'chat_id' => $chat_id,
  389.                 'text' =>"🌐 تم فتح جميع الوسائط 🚷",
  390.                 'reply_to_message_id'=>$message->message_id,
  391.          'parse_mode'=>'html',
  392.    'reply_markup'=>json_encode([
  393.       'inline_keyboard'=>[
  394.      [
  395.       ['text'=> $name ,'url'=>"http://telegram.me/" . $user]
  396.       ]
  397.    ]
  398.    ])
  399.    ]);
  400.    }
  401.    }
  402.  if($you == "creator" or $you == "administrator") {
  403. if($text == '/settings'){
  404. sendaction($chat_id, typing);
  405.         bot('sendmessage', [
  406.                 'chat_id' => $chat_id,
  407.                 'text' =>"⚙ اعدادات المجموعة كما يلي يا صديقي 💬
  408.              🔐 مقفول = ❌
  409.              🔓 مفتوح = ✅",
  410.               'reply_to_message_id'=>$message->message_id,
  411.          'parse_mode'=>'html',
  412.    'reply_markup'=>json_encode([
  413.       'inline_keyboard'=>[
  414.       [
  415.       ['text'=>"الصور",'url'=>"http://telegram.me/mroan1235"],['text'=> "$photo1" ,'url'=>"http://telegram.me/mroan1235"]
  416.       ],
  417.       [
  418.       ['text'=>"الروابط",'url'=>"http://telegram.me/mroan1235"],['text'=> "$link1" ,'url'=>"http://telegram.me/mroan1235"]
  419.       ],
  420.       [
  421.       ['text'=>"الاغاني",'url'=>"http://telegram.me/mroan1235"],['text'=> "$audio1" ,'url'=>"http://telegram.me/mran1235"]
  422.       ],
  423.       [
  424.       ['text'=>"البصمات",'url'=>"http://telegram.me/mroan1235"],['text'=> "$voice1" ,'url'=>"http://telegram.me/mroan1235"]
  425.       ],
  426.       [
  427.       ['text'=>"الفيديو",'url'=>"http://telegram.me/mroan1235"],['text'=> "$video1" ,'url'=>"http://telegram.me/mroan1235"]
  428.       ],
  429.       [
  430.       ['text'=>"الملصقات",'url'=>"http://telegram.me/mroan1235"],['text'=> "$sticker1" ,'url'=>"http://telegram.me/mroan1235"]
  431.       ],
  432.    [
  433.       ['text'=>"التوجيه",'url'=>"http://telegram.me/mroan1235"],['text'=> "$fwd1" ,'url'=>"http://telegram.me/mroan1235"]
  434.       ],
  435.       [
  436.       ['text'=>"المحادثة",'url'=>"http://telegram.me/mroan1235"],['text'=> "$text1" ,'url'=>"http://telegram.me/mroan1235"]
  437.       ],
  438.       [
  439.       ['text'=>"الالعاب",'url'=>"http://telegram.me/mroan1235"],['text'=> "$game1" ,'url'=>"http://telegram.me/mroan1235"]
  440.       ],
  441.       [
  442.       ['text'=>"الملفات",'url'=>"http://telegram.me/mroan1235"],['text'=> "$doc1" ,'url'=>"http://telegram.me/mroan1235"]
  443.       ],
  444.       [
  445.       ['text'=>"التثبيت",'url'=>"http://telegram.me/mroan1235"],['text'=> "$pin1" ,'url'=>"http://telegram.me/mroan1235"]
  446.       ]
  447.    ]
  448.    ])
  449.    ]);
  450.    }  
  451.    }
  452. //========================== الطرد ===============
  453. if($you == "creator" or $you == "administrator") {
  454. if($re && $text =="/kick"){
  455. sendaction($chat_id, 'typing');
  456.     bot('KickChatMember',[
  457.     'chat_id'=>$chat_id,
  458.     'user_id'=>$re_id
  459.       ]);
  460. bot('sendmessage',[
  461.     'chat_id'=>$chat_id,
  462.     'text'=>"تم طرد العضو بنجاح 👞",
  463.     'reply_to_message_id'=>$message->message_id,
  464.      'parse_mode'=>'html',
  465.        'reply_markup'=>json_encode([
  466.     'inline_keyboard'=>[
  467.      [
  468.       ['text'=> $re_name ,'url'=>"http://telegram.me/" . $re_user]
  469.       ]
  470.    ]
  471.    ])
  472.    ]);
  473.    }    
  474.    }
  475.  if($you == "creator" or $you == "administrator") {
  476.  if (strpos($textmessage,"/kick") !== false ) {
  477.   $text = explode(" ",$textmessage);
  478.   if ($text['1'] != "") {
  479.   sendaction($chat_id, 'typing');
  480.     bot('KickChatMember',[
  481.     'chat_id'=>$chat_id,
  482.     'user_id'=>$text['1']
  483.       ]);
  484.               bot('sendmessage', [
  485.                 'chat_id' => $chat_id,
  486.              'text'=>"تم طرد العضو بنجاح 👞",
  487.              'reply_to_message_id'=>$message->message_id,
  488.     ]);
  489.     }    
  490.     }
  491.     }
  492.  
  493.  if($you == "creator" or $you == "administrator") {
  494. if($re && $text =="/ban"){
  495. sendaction($chat_id, 'typing');
  496.     bot('KickChatMember',[
  497.     'chat_id'=>$chat_id, // by @wounds1 = mounir
  498.     'user_id'=>$re_id
  499.       ]);
  500. bot('sendmessage',[
  501.     'chat_id'=>$chat_id,
  502.     'text'=>"تم حظر العضو بنجاح 🚫",
  503.     'reply_to_message_id'=>$message->message_id,
  504.      'parse_mode'=>'html',
  505.        'reply_markup'=>json_encode([
  506.     'inline_keyboard'=>[
  507.      [
  508.       ['text'=> $re_name ,'url'=>"http://telegram.me/" . $re_user]
  509.       ]
  510.       ]
  511.    ])
  512.    ]);
  513.    }    
  514.    }
  515.  if($you == "creator" or $you == "administrator") {
  516.  if (strpos($textmessage,"/ban") !== false ) {
  517.   $text = explode(" ",$textmessage);
  518.   if ($text['1'] != "") {
  519.   sendaction($chat_id, 'typing');
  520.     bot('KickChatMember',[
  521.     'chat_id'=>$chat_id,
  522.     'user_id'=>$text['1']
  523.       ]);
  524.               bot('sendmessage', [
  525.                 'chat_id' => $chat_id,
  526.              'text'=>"تم حظر العضو بنجاح  🚫",
  527.              'reply_to_message_id'=>$message->message_id,
  528.      ]);
  529.      }    
  530.      }
  531.      }
  532.  //========================== وضع ترحيب ===============
  533. if ($data == "welcom" ){
  534. if ($you_ == "creator" or $you_ == "administrator"){
  535.      file_put_contents("data/$cllchatid/welcome.txt", "setwelcom");
  536.             bot('editmessagetext',[
  537.         'chat_id'=>$cllchatid,
  538.     'message_id'=>$cllmsegid,
  539.                 'text' =>"_من فضلك ارسل الان الترحيب_ 🔃
  540. *Please now send new  welcome* 🌐",
  541.                          'parse_mode'=>'MARKDOWN',
  542.    'reply_markup'=>json_encode([
  543.       'inline_keyboard'=>[
  544.       [
  545.       ['text'=> "تالع 💡" ,'url'=>"http://telegram.me/mroan1235"]
  546.       ],
  547.          [
  548.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bagg"]
  549.       ]
  550.    ]
  551.    ])
  552.    ]);
  553.    }  
  554.  else{
  555.     bot('answercallbackquery',[
  556.         'callback_query_id'=>$update->callback_query->id,
  557.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  558.         'show_alert'=>true
  559.      ]);
  560.      }
  561.      }
  562.   if ($getwelcome == "setwelcom" ){
  563. if ($you == "creator" or $you == "administrator"){
  564.      file_put_contents("data/$chat_id/welcome.txt", $text);  sendaction($chat_id, typing);
  565.         bot('sendmessage', [
  566.                 'chat_id' => $chat_id,
  567.                 'text' =>" تم الحفظ بنجاح ✅",
  568.                 'reply_to_message_id'=>$message->message_id,
  569.          'parse_mode'=>'MARKDOWN',
  570.    'reply_markup'=>json_encode([
  571.       'inline_keyboard'=>[
  572.      [
  573.       ['text'=> $name ,'url'=>"http://telegram.me/" . $user]
  574.       ],
  575.       [
  576.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bagg"]
  577.       ]
  578.    ]
  579.    ])
  580.    ]);
  581.    }  
  582.    }
  583.    
  584.     if($new_member){
  585. bot('sendMessage',[
  586.     'chat_id'=>$chat_id,
  587.     'text'=>"$welcom",
  588.       'reply_to_message_id'=>$message->message_id,
  589.     'parse_mode'=>'html',
  590.    'reply_markup'=>json_encode([
  591.       'inline_keyboard'=>[
  592.    [
  593.       ['text'=> $name ,'url'=>"http://telegram.me/" . $user]
  594.       ]
  595.         ]
  596.         ])
  597.    ]);
  598.    }
  599.  
  600.  //========================== المساعدة ===============  
  601. if ($you == "creator" or $you == "administrator"){
  602. if($text == '/help'){
  603. sendaction($chat_id, typing);
  604.         bot('sendmessage', [
  605.                 'chat_id' => $chat_id,
  606.                 'text' =>"هذه قائمة الاومر للدمنية فقط 🤠
  607. اضغط على ما تريد وتحكم في اوامر مجموعتك ♋️
  608. عن طريق لمس الكيبورد ✋🏻
  609. This list Just For admins ✨✋🏻
  610. Click to you want and get a order your Gp🚨",
  611.                            'reply_to_message_id'=>$message->message_id,
  612.          'parse_mode'=>'html',
  613.    'reply_markup'=>json_encode([
  614.       'inline_keyboard'=>[
  615.      [
  616.         ['text'=>"🔒 setting media «~»  المديا 🔒",'callback_data'=>"help"]
  617.       ],
  618.       [
  619.     ['text'=>"🕴Mods «~»  الادارة 🕴",'callback_data'=>"ss"]
  620.       ],
  621.    [
  622.     ['text'=>"🎭 mroan8«~»  المطورين 🎭",'callback_data'=>"dev"]
  623.       ]
  624.    ]
  625.    ])
  626.    ]);
  627.    }
  628.    }
  629.   if($data == 'bag'){
  630.   if ($you_ == "creator" or $you_ == "administrator"){
  631.     bot('editmessagetext',[
  632.         'chat_id'=>$cllchatid,
  633.     'message_id'=>$cllmsegid,
  634.     'text'=>" هذه قائمة الاومر للدمنية فقط 🤠
  635. اضغط على ما تريد وتحكم في اوامر مجموعتك ♋️
  636. عن طريق لمس الكيبورد ✋🏻
  637. This list Just For admins ✨✋🏻
  638. Click to you want and get a order your Gp🚨",
  639.  'parse_mode'=>'html',
  640.    'reply_markup'=>json_encode([
  641.       'inline_keyboard'=>[
  642.       [
  643.         ['text'=>"🔒 setting media «~»  المديا 🔒",'callback_data'=>"help"]
  644.       ],
  645.        [
  646.         ['text'=>"🕴Mods «~»  الادارة 🕴",'callback_data'=>"ss"]
  647.       ],
  648.        [
  649.         ['text'=>"🎭 mroan8 «~»  المطورين 🎭",'callback_data'=>"dev"]
  650.        ]
  651.     ]
  652.     ])
  653.     ]);
  654.     }
  655.     else{
  656.     bot('answercallbackquery',[
  657.         'callback_query_id'=>$update->callback_query->id,
  658.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  659.         'show_alert'=>true
  660.        ]);
  661.        }
  662.        }
  663.        elseif ($data == 'mroan8' )
  664.       {
  665. bot('answerCallbackQuery',[
  666. 'callback_query_id'=>$update->callback_query->id,
  667. 'text'=>"مطور البوت 1 mroan8😊",
  668.        ]);
  669.        }  
  670. //==========================تسهيل عمل ويبهوك ===============
  671.  
  672.  elseif (strpos($textmessage,"/setweb") !== false) {
  673.   $text = explode(" ",$textmessage);
  674.   if ($text['2'] != "" && $text['1'] != "") {
  675.     $web = "https://api.telegram.org/bot" . $text['1'] . "/setwebhook?url=" . $text['2'];
  676.     sendaction($chat_id, typing);
  677.         bot('sendmessage', [
  678.                 'chat_id' => $chat_id,
  679.                 'text' =>" تم انشاء ويبهوك بنجاح اضغط على في الاسفل",
  680.          'parse_mode'=>'html',
  681.    'reply_markup'=>json_encode([
  682.       'inline_keyboard'=>[
  683.        [
  684.        ['text'=>"من فضلك اضغط هنا🌐" ,'url'=>"$web"]
  685.       ]
  686.     ]
  687.     ])
  688.     ]);
  689.     }    
  690.     }
  691. //========================== المطور ===============
  692.   if($text == 'المطور' or $text == '/dev')
  693. {
  694.  $phone = '+9647801681195';
  695.  $nameea = 'mroan';
  696. bot('sendContact',[
  697.  'chat_id'=>$chat_id,
  698.  'phone_number'=>$phone,
  699.  'first_name'=>$nameea
  700.      ]);
  701.      }
  702.  //========================== القوانين ===============
  703.  if ($data == "rules" ){
  704. if ($you_ == "creator" or $you_ == "administrator"){
  705.      file_put_contents("data/$cllchatid/rules.txt", "setrules");
  706.             bot('editmessagetext',[
  707.         'chat_id'=>$cllchatid,
  708.     'message_id'=>$cllmsegid,
  709.                 'text' =>"_من فضلك ارسل الان القوانين_ 🔃
  710. *Please now send new go  rules* 🌐",
  711.                          'parse_mode'=>'MARKDOWN',
  712.    'reply_markup'=>json_encode([
  713.       'inline_keyboard'=>[
  714.       [
  715.       ['text'=> "تالع 💡" ,'url'=>"http://telegram.me/mroan1235"]
  716.       ],
  717.       [
  718.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bagg"]
  719.       ]
  720.    ]
  721.    ])
  722.    ]);
  723.    }  
  724.  else{
  725.     bot('answercallbackquery',[
  726.         'callback_query_id'=>$update->callback_query->id,
  727.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  728.         'show_alert'=>true
  729.      ]);
  730.      }
  731.      }
  732.   if ($getruels == "setrules" ){
  733. if ($you == "creator" or $you == "administrator"){
  734.      file_put_contents("data/$chat_id/rules.txt", $text);  sendaction($chat_id, typing);
  735.         bot('sendmessage', [
  736.                 'chat_id' => $chat_id,
  737.                 'text' =>" تم الحفظ بنجاح ✅",
  738.                 'reply_to_message_id'=>$message->message_id,
  739.          'parse_mode'=>'MARKDOWN',
  740.    'reply_markup'=>json_encode([
  741.       'inline_keyboard'=>[
  742.      [
  743.       ['text'=> $name ,'url'=>"http://telegram.me/" . $user]
  744.       ],
  745.       [
  746.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bagg"]
  747.       ]
  748.    ]
  749.    ])
  750.    ]);
  751.    }  
  752.    }
  753.  
  754.  if($text == '/rules'){
  755. sendaction($chat_id, typing);
  756.         bot('sendmessage', [
  757.                 'chat_id' => $chat_id,
  758.                 'text' =>"$getruels",
  759.          'parse_mode'=>'html',
  760.    'reply_markup'=>json_encode([
  761.       'inline_keyboard'=>[
  762.      [
  763.       ['text'=>"تابع 🌐" ,'url'=>"http://telegram.me/mroan1235"]
  764.       ]
  765.    ]
  766.    ])
  767.    ]);
  768.    }
  769.  //==========================الرابط ===============
  770.  if ($data == "setlink" ){
  771. if ($you_ == "creator" or $you_ == "administrator"){
  772.      file_put_contents("data/$cllchatid/gplink.txt", "setlink");
  773.             bot('editmessagetext',[
  774.         'chat_id'=>$cllchatid,
  775.     'message_id'=>$cllmsegid,
  776.                 'text' =>"_من فضلك ارسل الان الرابط_ 🔃
  777. *Please now send new go link* 🌐",
  778.                          'parse_mode'=>'MARKDOWN',
  779.    'reply_markup'=>json_encode([
  780.       'inline_keyboard'=>[
  781.       [
  782.       ['text'=> "تالع 💡" ,'url'=>"http://telegram.me/mroan1235"]
  783.       ],
  784.       [
  785.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bagg"]
  786.       ]
  787.    ]
  788.    ])
  789.    ]);
  790.    }  
  791.  else{
  792.     bot('answercallbackquery',[
  793.         'callback_query_id'=>$update->callback_query->id,
  794.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  795.         'show_alert'=>true
  796.      ]);
  797.      }
  798.      }
  799.   if ($gplink == "setlink" ){
  800. if ($you == "creator" or $you == "administrator"){
  801.      file_put_contents("data/$chat_id/gplink.txt", $text);  sendaction($chat_id, typing);
  802.         bot('sendmessage', [
  803.                 'chat_id' => $chat_id,
  804.                 'text' =>" تم الحفظ بنجاح ✅",
  805.                 'reply_to_message_id'=>$message->message_id,
  806.          'parse_mode'=>'MARKDOWN',
  807.    'reply_markup'=>json_encode([
  808.       'inline_keyboard'=>[
  809.      [
  810.       ['text'=>"تابع 💡" ,'url'=>"http://telegram.me/mroan1235"]
  811.       ],
  812.       [
  813.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bagg"]
  814.       ]
  815.    ]
  816.    ])
  817.    ]);
  818.    }  
  819.    }
  820.  
  821. if($text == '/link'){
  822. sendaction($chat_id, typing);
  823.         bot('sendmessage', [
  824.                 'chat_id' => $chat_id,
  825.               'text' =>"$gplink",
  826.                 'reply_to_message_id'=>$message->message_id,
  827.          'parse_mode'=>'MARKDOWN',
  828.    'reply_markup'=>json_encode([
  829.       'inline_keyboard'=>[
  830.      [
  831.       ['text'=> $name ,'url'=>"http://telegram.me/" . $user]
  832.       ]
  833.    ]
  834.    ])
  835.    ]);
  836.    }  
  837.  //==========================الحظر ===============
  838.  if($message->reply_to_message && $text == "/unban" ){
  839. bot('unbanChatMember',[
  840. 'chat_id'=>$chat_id,
  841. 'user_id'=>$re_id,
  842.    ]);
  843. bot('sendMessage',[
  844. 'chat_id'=>$chat_id,
  845. 'text'=>'💡 العضو تم رفع الحظر عنه 🔚',
  846. 'reply_markup'=>json_encode([
  847. 'inline_keyboard'=>[
  848.      [
  849.      ['text'=>$message->reply_to_message->from->first_name, 'url'=>"https://telegram.me/".$message->reply_to_message->from->username]
  850.      ]
  851.      ]
  852.      ])
  853.      ]);
  854.      }
  855.  if($you == "creator" or $you == "administrator") {
  856.  if (strpos($textmessage,"/unban") !== false ) {
  857.   $text = explode(" ",$textmessage);
  858.   if ($text['1'] != "") {
  859.     bot('unbanChatMember',[
  860.     'chat_id'=>$chat_id,
  861.     'user_id'=>$text['1']
  862.         ]);
  863.               bot('sendmessage', [
  864.                 'chat_id' => $chat_id,
  865.           'text'=>'💡 العضو تم رفع الحظر عنه 🔚',
  866.              'reply_to_message_id'=>$message->message_id,
  867.    ]);  
  868.    }    
  869.    }
  870.    }
  871.  
  872. if($data == 'help'){
  873. sendaction($chat_id, typing);
  874.         bot('editmessagetext',[
  875.              'chat_id'=>$cllchatid,
  876.     'message_id'=>$cllmsegid,
  877.             'text'=>"صديقي هذه لائحة الميديا ⚓️
  878. اضغط على الائحة للتحكم بلقفل والفقتح في الميديا 🚦
  879. الميديا المقفولة == ❌
  880. الميديا المفتوحة == ✅ ",
  881.             'reply_markup'=>json_encode([
  882.                 'inline_keyboard'=>[
  883.                     [
  884.                     ['text'=>"link ~» $link12",'callback_data'=>"link"],['text'=>"الروابط ~» $link12",'callback_data'=>"link"]
  885.                     ],
  886.                     [
  887.                     ['text'=>"sticker ~» $sticker12",'callback_data'=>"sticker"],['text'=>"الملصقات ~» $sticker12",'callback_data'=>"sticker"]
  888.                     ],
  889.                     [
  890.         ['text'=>"photo ~» $photo12",'callback_data'=>"photo"],     ['text'=>"الصور ~» $photo12",'callback_data'=>"photo"]
  891.          ],
  892.       [
  893.          ['text'=>"tag ~» $tag12",'callback_data'=>"tag"],  ['text'=>"التاك ~» $tag12",'callback_data'=>"tag"]
  894.          ],
  895.       [
  896.         ['text'=>"fwd ~» $fwd12",'callback_data'=>"fwd"],   ['text'=>"توجيه ~» $fwd12",'callback_data'=>"fwd"]
  897.          ],
  898.       [
  899.          ['text'=>"game ~» $game12",'callback_data'=>"game"],   ['text'=>"الالعاب ~» $game12",'callback_data'=>"game"]
  900.          ],
  901.       [
  902.         ['text'=>"video ~» $video12",'callback_data'=>"video"],     ['text'=>"الفيديو ~» $video12",'callback_data'=>"video"]
  903.          ],
  904.          [
  905.         ['text'=>"voice ~» $voice12",'callback_data'=>"voice"],     ['text'=>"البصمات ~» $voice12",'callback_data'=>"voice"]
  906.          ],
  907.          [
  908.          ['text'=>"audio ~» $audio12",'callback_data'=>"audio"],    ['text'=>"الاغاني ~» $audio12",'callback_data'=>"audio"]
  909.          ],
  910.            [
  911.          ['text'=>"file ~» $doc12",'callback_data'=>"file"],    ['text'=>"الملفات ~» $doc12",'callback_data'=>"file"]
  912.          ],
  913.          [
  914.          ['text'=>"all ~» $text12",'callback_data'=>"all"],     ['text'=>"المحادثة ~» $text12",'callback_data'=>"all"]
  915.          ],
  916.            [
  917.             ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  918.          ]     
  919.       ]
  920.       ])
  921.       ]);
  922.       }
  923.  if ( $data == "link" && $link12 == "❌") {
  924.   if ($you_ == "creator" or $you_ == "administrator"){
  925.   file_put_contents("data/$cllchatid/link.txt","✅");
  926.         bot('editmessagetext',[
  927.              'chat_id'=>$cllchatid,
  928.     'message_id'=>$cllmsegid,
  929.             'text'=>"صديقي هذه لائحة الميديا ⚓️
  930. اضغط على الائحة للتحكم بلقفل والفقتح في الميديا 🚦
  931. الميديا المقفولة == ❌
  932. الميديا المفتوحة == ✅ ",
  933.             'reply_markup'=>json_encode([
  934.                 'inline_keyboard'=>[
  935.          [
  936.          ['text'=>"link ~» ✅",'callback_data'=>"link"],['text'=>"الروابط ~» ✅",'callback_data'=>"link"]
  937.                     ],
  938.                     [
  939.                     ['text'=>"sticker ~» $sticker12",'callback_data'=>"sticker"],['text'=>"الملصقات ~» $sticker12",'callback_data'=>"sticker"]
  940.                     ],
  941.                     [
  942.          ['text'=>"photo ~» $photo12",'callback_data'=>"photo"],    ['text'=>"الصور ~» $photo12",'callback_data'=>"photo"]
  943.          ],
  944.       [
  945.          ['text'=>"tag ~» $tag12",'callback_data'=>"tag"],  ['text'=>"التاك ~» $tag12",'callback_data'=>"tag"]
  946.          ],
  947.       [
  948.          ['text'=>"fwd ~» $fwd12",'callback_data'=>"fwd"],  ['text'=>"توجيه ~» $fwd12",'callback_data'=>"fwd"]
  949.          ],
  950.       [
  951.          ['text'=>"game ~» $game12",'callback_data'=>"game"],   ['text'=>"الالعاب ~» $game12",'callback_data'=>"game"]
  952.          ],
  953.       [
  954.          ['text'=>"video ~» $video12",'callback_data'=>"video"],    ['text'=>"الفيديو ~» $video12",'callback_data'=>"video"]
  955.          ],
  956.          [
  957.          ['text'=>"voice ~» $voice12",'callback_data'=>"voice"],    ['text'=>"البصمات ~» $voice12",'callback_data'=>"voice"]
  958.          ],
  959.          [
  960.          ['text'=>"audio ~» $audio12",'callback_data'=>"audio"],    ['text'=>"الاغاني ~» $audio12",'callback_data'=>"audio"]
  961.          ],
  962.           [
  963.         ['text'=>"file ~» $doc12",'callback_data'=>"file"],     ['text'=>"الملفات ~» $doc12",'callback_data'=>"file"]
  964.         ],
  965.          [
  966.          ['text'=>"all ~» $text12",'callback_data'=>"all"],     ['text'=>"المحادثة ~» $text12",'callback_data'=>"all"]
  967.          ],
  968.          [
  969.           ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  970.         ]
  971.         ]
  972.       ])
  973.       ]);
  974.       } else{
  975.     bot('answercallbackquery',[
  976.         'callback_query_id'=>$update->callback_query->id,
  977.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  978.         'show_alert'=>true
  979.         ]);
  980. }
  981.  }
  982.  if ( $data == "link" && $link12 == "✅" ) {
  983.   if ($you_ == "creator" or $you_ == "administrator"){
  984.  file_put_contents("data/$cllchatid/link.txt","❌");
  985.          bot('editmessagetext',[
  986.              'chat_id'=>$cllchatid,
  987.     'message_id'=>$cllmsegid,
  988.             'text'=>"صديقي هذه لائحة الميديا ⚓️
  989. اضغط على الائحة للتحكم بلقفل والفقتح في الميديا 🚦
  990. الميديا المقفولة == ❌
  991. الميديا المفتوحة == ✅ ",
  992.             'reply_markup'=>json_encode([
  993.                 'inline_keyboard'=>[
  994.                     [
  995.                         ['text'=>"link ~» ❌",'callback_data'=>"link"],['text'=>"الروابط ~» ❌",'callback_data'=>"link"]
  996.                     ],
  997.                         [
  998.                         ['text'=>"sticker ~» $sticker12",'callback_data'=>"sticker"],['text'=>"الملصقات ~» $sticker12",'callback_data'=>"sticker"]
  999.                     ],
  1000.                     [
  1001.         ['text'=>"photo ~» $photo12",'callback_data'=>"photo"],     ['text'=>"الصور ~» $photo12",'callback_data'=>"photo"]
  1002.          ],
  1003.        [
  1004.         ['text'=>"tag ~» $tag12",'callback_data'=>"tag"],   ['text'=>"التاك ~» $tag12",'callback_data'=>"tag"]
  1005.          ],
  1006.        [
  1007.         ['text'=>"fwd ~» $fwd12",'callback_data'=>"fwd"],   ['text'=>"توجيه ~» $fwd12",'callback_data'=>"fwd"]
  1008.          ],
  1009.        [
  1010.         ['text'=>"game ~» $game12",'callback_data'=>"game"],    ['text'=>"الالعاب ~» $game12",'callback_data'=>"game"]
  1011.          ],
  1012.        [
  1013.         ['text'=>"video ~» $video12",'callback_data'=>"video"],     ['text'=>"الفيديو ~» $video12",'callback_data'=>"video"]
  1014.          ],
  1015.          [
  1016.         ['text'=>"voice ~» $voice12",'callback_data'=>"voice"],     ['text'=>"البصمات ~» $voice12",'callback_data'=>"voice"]
  1017.           ],
  1018.           [
  1019.         ['text'=>"audio ~» $audio12",'callback_data'=>"audio"],     ['text'=>"الاغاني ~» $audio12",'callback_data'=>"audio"]
  1020.          ],
  1021.          [
  1022.         ['text'=>"file ~» $doc12",'callback_data'=>"file"],     ['text'=>"الملفات ~» $doc12",'callback_data'=>"file"]
  1023.          ],
  1024.           [
  1025.         ['text'=>"all ~» $text12",'callback_data'=>"all"],  ['text'=>"المحادثة ~» $text12",'callback_data'=>"all"]
  1026.          ],
  1027.          [
  1028.             ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  1029.           ]    
  1030.        ]
  1031.        ])
  1032.        ]);  
  1033.        }else{
  1034.     bot('answercallbackquery',[
  1035.         'callback_query_id'=>$update->callback_query->id,
  1036.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  1037.         'show_alert'=>true
  1038.         ]);
  1039. }
  1040. }
  1041.  
  1042.  
  1043. if ( $data == "tag" && $tag12 == "❌") {
  1044.  if ($you_ == "creator" or $you_ == "administrator"){
  1045.  file_put_contents("data/$cllchatid/tag.txt","✅");
  1046.         bot('editmessagetext',[
  1047.              'chat_id'=>$cllchatid,
  1048.     'message_id'=>$cllmsegid,
  1049.             'text'=>"صديقي هذه لائحة الميديا ⚓️
  1050. اضغط على الائحة للتحكم بلقفل والفقتح في الميديا 🚦
  1051. الميديا المقفولة == ❌
  1052. الميديا المفتوحة == ✅ ",
  1053.             'reply_markup'=>json_encode([
  1054.                 'inline_keyboard'=>[
  1055.      [
  1056.                         ['text'=>"link ~» $link12",'callback_data'=>"link"],['text'=>"الروابط ~» $link12",'callback_data'=>"link"]
  1057.                     ],
  1058.                                     [
  1059.                         ['text'=>"sticker ~» $sticker12",'callback_data'=>"sticker"],['text'=>"الملصقات ~» $sticker12",'callback_data'=>"sticker"]
  1060.                     ],
  1061.                     [
  1062.     ['text'=>"photo ~» $photo12",'callback_data'=>"photo"],     ['text'=>"الصور ~» $photo12",'callback_data'=>"photo"]
  1063.      ],
  1064.     [
  1065.     ['text'=>"tag ~» ✅",'callback_data'=>"tag"],  ['text'=>"التاك ~» ✅",'callback_data'=>"tag"]
  1066.      ],
  1067.     [
  1068.     ['text'=>"fwd ~» $fwd12",'callback_data'=>"fwd"],   ['text'=>"توجيه ~» $fwd12",'callback_data'=>"fwd"]
  1069.      ],
  1070.     [
  1071.     ['text'=>"game ~» $game12",'callback_data'=>"game"],    ['text'=>"الالعاب ~» $game12",'callback_data'=>"game"]
  1072.      ],
  1073.     [
  1074.     ['text'=>"video ~» $video12",'callback_data'=>"video"],     ['text'=>"الفيديو ~» $video12",'callback_data'=>"video"]
  1075.      ],
  1076.      [
  1077.     ['text'=>"voice ~» $voice12",'callback_data'=>"voice"],     ['text'=>"البصمات ~» $voice12",'callback_data'=>"voice"]
  1078.      ],
  1079.      [
  1080.     ['text'=>"audio ~» $audio12",'callback_data'=>"audio"],     ['text'=>"الاغاني ~» $audio12",'callback_data'=>"audio"]
  1081.      ],
  1082.          [
  1083.     ['text'=>"file ~» $doc12",'callback_data'=>"file"],     ['text'=>"الملفات ~» $doc12",'callback_data'=>"file"]
  1084.      ],
  1085.       [
  1086.     ['text'=>"all ~» $text12",'callback_data'=>"all"],  ['text'=>"المحادثة ~» $text12",'callback_data'=>"all"]
  1087.      ],
  1088.          [
  1089.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  1090.       ]
  1091.        
  1092.                 ]
  1093.             ])
  1094.         ]);
  1095.    
  1096.  } else{
  1097.     bot('answercallbackquery',[
  1098.         'callback_query_id'=>$update->callback_query->id,
  1099.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  1100.         'show_alert'=>true
  1101.         ]);
  1102. }
  1103.  }
  1104.  if ( $data == "tag" && $tag12 == "✅" ) {
  1105.   if ($you_ == "creator" or $you_ == "administrator"){
  1106.  file_put_contents("data/$cllchatid/tag.txt","❌");
  1107.          bot('editmessagetext',[
  1108.              'chat_id'=>$cllchatid,
  1109.     'message_id'=>$cllmsegid,
  1110.             'text'=>"صديقي هذه لائحة الميديا ⚓️
  1111. اضغط على الائحة للتحكم بلقفل والفقتح في الميديا 🚦
  1112. الميديا المقفولة == ❌
  1113. الميديا المفتوحة == ✅ ",
  1114.             'reply_markup'=>json_encode([
  1115.                 'inline_keyboard'=>[
  1116.      [
  1117.                         ['text'=>"link ~» $link12",'callback_data'=>"link"],['text'=>"الروابط ~» $link12",'callback_data'=>"link"]
  1118.                     ],
  1119.                                     [
  1120.                         ['text'=>"sticker ~» $sticker12",'callback_data'=>"sticker"],['text'=>"الملصقات ~» $sticker12",'callback_data'=>"sticker"]
  1121.                     ],
  1122.                     [
  1123.     ['text'=>"photo ~» $photo12",'callback_data'=>"photo"],     ['text'=>"الصور ~» $photo12",'callback_data'=>"photo"]
  1124.      ],
  1125.     [
  1126.     ['text'=>"tag ~» ❌",'callback_data'=>"tag"],  ['text'=>"التاك ~» ❌",'callback_data'=>"tag"]
  1127.      ],
  1128.     [
  1129.     ['text'=>"fwd ~» $fwd12",'callback_data'=>"fwd"],   ['text'=>"توجيه ~» $fwd12",'callback_data'=>"fwd"]
  1130.      ],
  1131.     [
  1132.     ['text'=>"game ~» $game12",'callback_data'=>"game"],    ['text'=>"الالعاب ~» $game12",'callback_data'=>"game"]
  1133.      ],
  1134.     [
  1135.     ['text'=>"video ~» $video12",'callback_data'=>"video"],     ['text'=>"الفيديو ~» $video12",'callback_data'=>"video"]
  1136.      ],
  1137.      [
  1138.     ['text'=>"voice ~» $voice12",'callback_data'=>"voice"],     ['text'=>"البصمات ~» $voice12",'callback_data'=>"voice"]
  1139.      ],
  1140.      [
  1141.     ['text'=>"audio ~» $audio12",'callback_data'=>"audio"],     ['text'=>"الاغاني ~» $audio12",'callback_data'=>"audio"]
  1142.      ],
  1143.          [
  1144.     ['text'=>"file ~» $doc12",'callback_data'=>"file"],     ['text'=>"الملفات ~» $doc12",'callback_data'=>"file"]
  1145.      ],
  1146.       [
  1147.     ['text'=>"all ~» $text12",'callback_data'=>"all"],  ['text'=>"المحادثة ~» $text12",'callback_data'=>"all"]
  1148.      ],
  1149.          [
  1150.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  1151.       ]
  1152.        
  1153.                 ]
  1154.             ])
  1155.         ]);  
  1156.  }else{
  1157.     bot('answercallbackquery',[
  1158.         'callback_query_id'=>$update->callback_query->id,
  1159.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  1160.         'show_alert'=>true
  1161.         ]);
  1162. }
  1163. }
  1164. if ( $data == "photo" && $photo12 == "❌") {
  1165.   if ($you_ == "creator" or $you_ == "administrator"){
  1166.   file_put_contents("data/$cllchatid/photo.txt","✅");
  1167.         bot('editmessagetext',[
  1168.              'chat_id'=>$cllchatid,
  1169.     'message_id'=>$cllmsegid,
  1170.             'text'=>"صديقي هذه لائحة الميديا ⚓️
  1171. اضغط على الائحة للتحكم بلقفل والفقتح في الميديا 🚦
  1172. الميديا المقفولة == ❌
  1173. الميديا المفتوحة == ✅ ",
  1174.             'reply_markup'=>json_encode([
  1175.                 'inline_keyboard'=>[
  1176.      [
  1177.                         ['text'=>"link ~» $link12",'callback_data'=>"link"],['text'=>"الروابط ~» $link12",'callback_data'=>"link"]
  1178.                     ],
  1179.                                     [
  1180.                         ['text'=>"sticker ~» $sticker12",'callback_data'=>"sticker"],['text'=>"الملصقات ~» $sticker12",'callback_data'=>"sticker"]
  1181.                     ],
  1182.                     [
  1183.     ['text'=>"photo ~» ✅",'callback_data'=>"photo"],  ['text'=>"الصور ~» ✅",'callback_data'=>"photo"]
  1184.      ],
  1185.     [
  1186.     ['text'=>"tag ~» $tag12",'callback_data'=>"tag"],   ['text'=>"التاك ~» $tag12",'callback_data'=>"tag"]
  1187.      ],
  1188.     [
  1189.     ['text'=>"fwd ~» $fwd12",'callback_data'=>"fwd"],   ['text'=>"توجيه ~» $fwd12",'callback_data'=>"fwd"]
  1190.      ],
  1191.     [
  1192.     ['text'=>"game ~» $game12",'callback_data'=>"game"],    ['text'=>"الالعاب ~» $game12",'callback_data'=>"game"]
  1193.      ],
  1194.     [
  1195.     ['text'=>"video ~» $video12",'callback_data'=>"video"],     ['text'=>"الفيديو ~» $video12",'callback_data'=>"video"]
  1196.      ],
  1197.      [
  1198.     ['text'=>"voice ~» $voice12",'callback_data'=>"voice"],     ['text'=>"البصمات ~» $voice12",'callback_data'=>"voice"]
  1199.      ],
  1200.      [
  1201.     ['text'=>"audio ~» $audio12",'callback_data'=>"audio"],     ['text'=>"الاغاني ~» $audio12",'callback_data'=>"audio"]
  1202.      ],
  1203.          [
  1204.     ['text'=>"file ~» $doc12",'callback_data'=>"file"],     ['text'=>"الملفات ~» $doc12",'callback_data'=>"file"]
  1205.      ],
  1206.       [
  1207.     ['text'=>"all ~» $text12",'callback_data'=>"all"],  ['text'=>"المحادثة ~» $text12",'callback_data'=>"all"]
  1208.      ],
  1209.          [
  1210.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  1211.       ]
  1212.        
  1213.                 ]
  1214.             ])
  1215.         ]);
  1216.    
  1217.  } else{
  1218.     bot('answercallbackquery',[
  1219.         'callback_query_id'=>$update->callback_query->id,
  1220.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  1221.         'show_alert'=>true
  1222.         ]);
  1223. }
  1224.  }
  1225.  if ( $data == "photo" && $photo12 == "✅" ) {
  1226.   if ($you_ == "creator" or $you_ == "administrator"){
  1227.  file_put_contents("data/$cllchatid/photo.txt","❌");
  1228.          bot('editmessagetext',[
  1229.              'chat_id'=>$cllchatid,
  1230.     'message_id'=>$cllmsegid,
  1231.             'text'=>"صديقي هذه لائحة الميديا ⚓️
  1232. اضغط على الائحة للتحكم بلقفل والفقتح في الميديا 🚦
  1233. الميديا المقفولة == ❌
  1234. الميديا المفتوحة == ✅ ",
  1235.             'reply_markup'=>json_encode([
  1236.                 'inline_keyboard'=>[
  1237.      [
  1238.                         ['text'=>"link ~» $link12",'callback_data'=>"link"],['text'=>"الروابط ~» $link12",'callback_data'=>"link"]
  1239.                     ],
  1240.                                     [
  1241.                         ['text'=>"sticker ~» $sticker12",'callback_data'=>"sticker"],['text'=>"الملصقات ~» $sticker12",'callback_data'=>"sticker"]
  1242.                     ],
  1243.                     [
  1244.     ['text'=>"photo ~» ❌",'callback_data'=>"photo"],  ['text'=>"الصور ~» ❌",'callback_data'=>"photo"]
  1245.      ],
  1246.     [
  1247.     ['text'=>"tag ~» $tag12",'callback_data'=>"tag"],   ['text'=>"التاك ~» $tag12",'callback_data'=>"tag"]
  1248.      ],
  1249.     [
  1250.     ['text'=>"fwd ~» $fwd12",'callback_data'=>"fwd"],   ['text'=>"توجيه ~» $fwd12",'callback_data'=>"fwd"]
  1251.      ],
  1252.     [
  1253.     ['text'=>"game ~» $game12",'callback_data'=>"game"],    ['text'=>"الالعاب ~» $game12",'callback_data'=>"game"]
  1254.      ],
  1255.     [
  1256.     ['text'=>"video ~» $video12",'callback_data'=>"video"],     ['text'=>"الفيديو ~» $video12",'callback_data'=>"video"]
  1257.      ],
  1258.      [
  1259.     ['text'=>"voice ~» $voice12",'callback_data'=>"voice"],     ['text'=>"البصمات ~» $voice12",'callback_data'=>"voice"]
  1260.      ],
  1261.      [
  1262.     ['text'=>"audio ~» $audio12",'callback_data'=>"audio"],     ['text'=>"الاغاني ~» $audio12",'callback_data'=>"audio"]
  1263.      ],
  1264.          [
  1265.     ['text'=>"file ~» $doc12",'callback_data'=>"file"],     ['text'=>"الملفات ~» $doc12",'callback_data'=>"file"]
  1266.      ],
  1267.       [
  1268.     ['text'=>"all ~» $text12",'callback_data'=>"all"],  ['text'=>"المحادثة ~» $text12",'callback_data'=>"all"]
  1269.      ],
  1270.          [
  1271.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  1272.       ]
  1273.        
  1274.                 ]
  1275.             ])
  1276.         ]);  
  1277.  }else{
  1278.     bot('answercallbackquery',[
  1279.         'callback_query_id'=>$update->callback_query->id,
  1280.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  1281.         'show_alert'=>true
  1282.         ]);
  1283. }
  1284. }
  1285.  
  1286.  
  1287.  
  1288. if ( $data == "fwd" && $fwd12 == "❌") {
  1289.   if ($you_ == "creator" or $you_ == "administrator"){
  1290.   file_put_contents("data/$cllchatid/fwd.txt","✅");
  1291.         bot('editmessagetext',[
  1292.              'chat_id'=>$cllchatid,
  1293.     'message_id'=>$cllmsegid,
  1294.             'text'=>"صديقي هذه لائحة الميديا ⚓️
  1295. اضغط على الائحة للتحكم بلقفل والفقتح في الميديا 🚦
  1296. الميديا المقفولة == ❌
  1297. الميديا المفتوحة == ✅ ",
  1298.             'reply_markup'=>json_encode([
  1299.                 'inline_keyboard'=>[
  1300.      [
  1301.                         ['text'=>"link ~» $link12",'callback_data'=>"link"],['text'=>"الروابط ~» $link12",'callback_data'=>"link"]
  1302.                     ],
  1303.                                     [
  1304.                         ['text'=>"sticker ~» $sticker12",'callback_data'=>"sticker"],['text'=>"الملصقات ~» $sticker12",'callback_data'=>"sticker"]
  1305.                     ],
  1306.                     [
  1307.     ['text'=>"photo ~» $photo12",'callback_data'=>"photo"],     ['text'=>"الصور ~» $photo12",'callback_data'=>"photo"]
  1308.      ],
  1309.     [
  1310.     ['text'=>"tag ~» $tag12",'callback_data'=>"tag"],   ['text'=>"التاك ~» $tag12",'callback_data'=>"tag"]
  1311.      ],
  1312.     [
  1313.     ['text'=>"fwd ~» ✅",'callback_data'=>"fwd"],  ['text'=>"توجيه ~» ✅",'callback_data'=>"fwd"]
  1314.      ],
  1315.     [
  1316.     ['text'=>"game ~» $game12",'callback_data'=>"game"],    ['text'=>"الالعاب ~» $game12",'callback_data'=>"game"]
  1317.      ],
  1318.     [
  1319.     ['text'=>"video ~» $video12",'callback_data'=>"video"],     ['text'=>"الفيديو ~» $video12",'callback_data'=>"video"]
  1320.      ],
  1321.      [
  1322.     ['text'=>"voice ~» $voice12",'callback_data'=>"voice"],     ['text'=>"البصمات ~» $voice12",'callback_data'=>"voice"]
  1323.      ],
  1324.      [
  1325.     ['text'=>"audio ~» $audio12",'callback_data'=>"audio"],     ['text'=>"الاغاني ~» $audio12",'callback_data'=>"audio"]
  1326.      ],
  1327.          [
  1328.     ['text'=>"file ~» $doc12",'callback_data'=>"file"],     ['text'=>"الملفات ~» $doc12",'callback_data'=>"file"]
  1329.      ],
  1330.       [
  1331.     ['text'=>"all ~» $text12",'callback_data'=>"all"],  ['text'=>"المحادثة ~» $text12",'callback_data'=>"all"]
  1332.      ],
  1333.          [
  1334.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  1335.       ]
  1336.        
  1337.                 ]
  1338.             ])
  1339.         ]);
  1340.    
  1341.  } else{
  1342.     bot('answercallbackquery',[
  1343.         'callback_query_id'=>$update->callback_query->id,
  1344.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  1345.         'show_alert'=>true
  1346.         ]);
  1347. }
  1348.  }
  1349.  if ( $data == "fwd" && $fwd12 == "✅" ) {
  1350.   if ($you_ == "creator" or $you_ == "administrator"){
  1351.  file_put_contents("data/$cllchatid/fwd.txt","❌");
  1352.          bot('editmessagetext',[
  1353.              'chat_id'=>$cllchatid,
  1354.     'message_id'=>$cllmsegid,
  1355.             'text'=>"صديقي هذه لائحة الميديا ⚓️
  1356. اضغط على الائحة للتحكم بلقفل والفقتح في الميديا 🚦
  1357. الميديا المقفولة == ❌
  1358. الميديا المفتوحة == ✅ ",
  1359.             'reply_markup'=>json_encode([
  1360.                 'inline_keyboard'=>[
  1361.      [
  1362.                         ['text'=>"link ~» $link12",'callback_data'=>"link"],['text'=>"الروابط ~» $link12",'callback_data'=>"link"]
  1363.                     ],
  1364.                                     [
  1365.                         ['text'=>"sticker ~» $sticker12",'callback_data'=>"sticker"],['text'=>"الملصقات ~» $sticker12",'callback_data'=>"sticker"]
  1366.                     ],
  1367.                     [
  1368.     ['text'=>"photo ~» $photo12",'callback_data'=>"photo"],     ['text'=>"الصور ~» $photo12",'callback_data'=>"photo"]
  1369.      ],
  1370.     [
  1371.     ['text'=>"tag ~» $tag12",'callback_data'=>"tag"],   ['text'=>"التاك ~» $tag12",'callback_data'=>"tag"]
  1372.      ],
  1373.     [
  1374.     ['text'=>"fwd ~» ❌",'callback_data'=>"fwd"],  ['text'=>"توجيه ~» ❌",'callback_data'=>"fwd"]
  1375.      ],
  1376.     [
  1377.     ['text'=>"game ~» $game12",'callback_data'=>"game"],    ['text'=>"الالعاب ~» $game12",'callback_data'=>"game"]
  1378.      ],
  1379.     [
  1380.     ['text'=>"video ~» $video12",'callback_data'=>"video"],     ['text'=>"الفيديو ~» $video12",'callback_data'=>"video"]
  1381.      ],
  1382.      [
  1383.     ['text'=>"voice ~» $voice12",'callback_data'=>"voice"],     ['text'=>"البصمات ~» $voice12",'callback_data'=>"voice"]
  1384.      ],
  1385.      [
  1386.     ['text'=>"audio ~» $audio12",'callback_data'=>"audio"],     ['text'=>"الاغاني ~» $audio12",'callback_data'=>"audio"]
  1387.      ],
  1388.          [
  1389.     ['text'=>"file ~» $doc12",'callback_data'=>"file"],     ['text'=>"الملفات ~» $doc12",'callback_data'=>"file"]
  1390.      ],
  1391.       [
  1392.     ['text'=>"all ~» $text12",'callback_data'=>"all"],  ['text'=>"المحادثة ~» $text12",'callback_data'=>"all"]
  1393.      ],
  1394.          [
  1395.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  1396.       ]
  1397.        
  1398.                 ]
  1399.             ])
  1400.         ]);  
  1401.  }else{
  1402.     bot('answercallbackquery',[
  1403.         'callback_query_id'=>$update->callback_query->id,
  1404.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  1405.         'show_alert'=>true
  1406.         ]);
  1407. }
  1408. }
  1409.  
  1410.  
  1411.  
  1412.  
  1413.  
  1414.  
  1415. if ( $data == "game" && $game12 == "❌") {
  1416.   if ($you_ == "creator" or $you_ == "administrator"){
  1417.   file_put_contents("data/$cllchatid/game.txt","✅");
  1418.         bot('editmessagetext',[
  1419.              'chat_id'=>$cllchatid,
  1420.     'message_id'=>$cllmsegid,
  1421.             'text'=>"صديقي هذه لائحة الميديا ⚓️
  1422. اضغط على الائحة للتحكم بلقفل والفقتح في الميديا 🚦
  1423. الميديا المقفولة == ❌
  1424. الميديا المفتوحة == ✅ ",
  1425.             'reply_markup'=>json_encode([
  1426.                 'inline_keyboard'=>[
  1427.      [
  1428.                         ['text'=>"link ~» $link12",'callback_data'=>"link"],['text'=>"الروابط ~» $link12",'callback_data'=>"link"]
  1429.                     ],
  1430.                                     [
  1431.                         ['text'=>"sticker ~» $sticker12",'callback_data'=>"sticker"],['text'=>"الملصقات ~» $sticker12",'callback_data'=>"sticker"]
  1432.                     ],
  1433.                     [
  1434.     ['text'=>"photo ~» $photo12",'callback_data'=>"photo"],     ['text'=>"الصور ~» $photo12",'callback_data'=>"photo"]
  1435.      ],
  1436.     [
  1437.     ['text'=>"tag ~» $tag12",'callback_data'=>"tag"],   ['text'=>"التاك ~» $tag12",'callback_data'=>"tag"]
  1438.      ],
  1439.     [
  1440.     ['text'=>"fwd ~» $fwd12",'callback_data'=>"fwd"],   ['text'=>"توجيه ~» $fwd12",'callback_data'=>"fwd"]
  1441.      ],
  1442.     [
  1443.     ['text'=>"game ~» ✅",'callback_data'=>"game"],    ['text'=>"الالعاب ~» ✅",'callback_data'=>"game"]
  1444.      ],
  1445.     [
  1446.     ['text'=>"video ~» $video12",'callback_data'=>"video"],     ['text'=>"الفيديو ~» $video12",'callback_data'=>"video"]
  1447.      ],
  1448.      [
  1449.     ['text'=>"voice ~» $voice12",'callback_data'=>"voice"],     ['text'=>"البصمات ~» $voice12",'callback_data'=>"voice"]
  1450.      ],
  1451.      [
  1452.     ['text'=>"audio ~» $audio12",'callback_data'=>"audio"],     ['text'=>"الاغاني ~» $audio12",'callback_data'=>"audio"]
  1453.      ],
  1454.          [
  1455.     ['text'=>"file ~» $doc12",'callback_data'=>"file"],     ['text'=>"الملفات ~» $doc12",'callback_data'=>"file"]
  1456.      ],
  1457.       [
  1458.     ['text'=>"all ~» $text12",'callback_data'=>"all"],  ['text'=>"المحادثة ~» $text12",'callback_data'=>"all"]
  1459.      ],
  1460.          [
  1461.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  1462.       ]
  1463.        
  1464.                 ]
  1465.             ])
  1466.         ]);
  1467.    
  1468.  } else{
  1469.     bot('answercallbackquery',[
  1470.         'callback_query_id'=>$update->callback_query->id,
  1471.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  1472.         'show_alert'=>true
  1473.         ]);
  1474. }
  1475.  }
  1476.  if ( $data == "game" && $game12 == "✅" ) {
  1477.   if ($you_ == "creator" or $you_ == "administrator"){
  1478.  file_put_contents("data/$cllchatid/game.txt","❌");
  1479.          bot('editmessagetext',[
  1480.              'chat_id'=>$cllchatid,
  1481.     'message_id'=>$cllmsegid,
  1482.             'text'=>"صديقي هذه لائحة الميديا ⚓️
  1483. اضغط على الائحة للتحكم بلقفل والفقتح في الميديا 🚦
  1484. الميديا المقفولة == ❌
  1485. الميديا المفتوحة == ✅ ",
  1486.             'reply_markup'=>json_encode([
  1487.                 'inline_keyboard'=>[
  1488.      [
  1489.                         ['text'=>"link ~» $link12",'callback_data'=>"link"],['text'=>"الروابط ~» $link12",'callback_data'=>"link"]
  1490.                     ],
  1491.                                     [
  1492.                         ['text'=>"sticker ~» $sticker12",'callback_data'=>"sticker"],['text'=>"الملصقات ~» $sticker12",'callback_data'=>"sticker"]
  1493.                     ],
  1494.                     [
  1495.     ['text'=>"photo ~» $photo12",'callback_data'=>"photo"],     ['text'=>"الصور ~» $photo12",'callback_data'=>"photo"]
  1496.      ],
  1497.     [
  1498.     ['text'=>"tag ~» $tag12",'callback_data'=>"tag"],   ['text'=>"التاك ~» $tag12",'callback_data'=>"tag"]
  1499.      ],
  1500.     [
  1501.     ['text'=>"fwd ~» $fwd12",'callback_data'=>"fwd"],   ['text'=>"توجيه ~» $fwd12",'callback_data'=>"fwd"]
  1502.      ],
  1503.     [
  1504.     ['text'=>"game ~» ❌",'callback_data'=>"game"],    ['text'=>"الالعاب ~» ❌",'callback_data'=>"game"]
  1505.      ],
  1506.     [
  1507.     ['text'=>"video ~» $video12",'callback_data'=>"video"],     ['text'=>"الفيديو ~» $video12",'callback_data'=>"video"]
  1508.      ],
  1509.      [
  1510.     ['text'=>"voice ~» $voice12",'callback_data'=>"voice"],     ['text'=>"البصمات ~» $voice12",'callback_data'=>"voice"]
  1511.      ],
  1512.      [
  1513.     ['text'=>"audio ~» $audio12",'callback_data'=>"audio"],     ['text'=>"الاغاني ~» $audio12",'callback_data'=>"audio"]
  1514.      ],
  1515.          [
  1516.     ['text'=>"file ~» $doc12",'callback_data'=>"file"],     ['text'=>"الملفات ~» $doc12",'callback_data'=>"file"]
  1517.      ],
  1518.       [
  1519.     ['text'=>"all ~» $text12",'callback_data'=>"all"],  ['text'=>"المحادثة ~» $text12",'callback_data'=>"all"]
  1520.      ],
  1521.          [
  1522.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  1523.       ]
  1524.        
  1525.                 ]
  1526.             ])
  1527.         ]);  
  1528.  }else{
  1529.     bot('answercallbackquery',[
  1530.         'callback_query_id'=>$update->callback_query->id,
  1531.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  1532.         'show_alert'=>true
  1533.         ]);
  1534. }
  1535. }
  1536.  
  1537. if ( $data == "video" && $video12 == "❌") {
  1538.   if ($you_ == "creator" or $you_ == "administrator"){
  1539.   file_put_contents("data/$cllchatid/video.txt","✅");
  1540.         bot('editmessagetext',[
  1541.              'chat_id'=>$cllchatid,
  1542.     'message_id'=>$cllmsegid,
  1543.             'text'=>"صديقي هذه لائحة الميديا ⚓️
  1544. اضغط على الائحة للتحكم بلقفل والفقتح في الميديا 🚦
  1545. الميديا المقفولة == ❌
  1546. الميديا المفتوحة == ✅ ",
  1547.             'reply_markup'=>json_encode([
  1548.                 'inline_keyboard'=>[
  1549.      [
  1550.                         ['text'=>"link ~» $link12",'callback_data'=>"link"],['text'=>"الروابط ~» $link12",'callback_data'=>"link"]
  1551.                     ],
  1552.                                     [
  1553.                         ['text'=>"sticker ~» $sticker12",'callback_data'=>"sticker"],['text'=>"الملصقات ~» $sticker12",'callback_data'=>"sticker"]
  1554.                     ],
  1555.                     [
  1556.     ['text'=>"photo ~» $photo12",'callback_data'=>"photo"],     ['text'=>"الصور ~» $photo12",'callback_data'=>"photo"]
  1557.      ],
  1558.     [
  1559.     ['text'=>"tag ~» $tag12",'callback_data'=>"tag"],   ['text'=>"التاك ~» $tag12",'callback_data'=>"tag"]
  1560.      ],
  1561.     [
  1562.     ['text'=>"fwd ~» $fwd12",'callback_data'=>"fwd"],   ['text'=>"توجيه ~» $fwd12",'callback_data'=>"fwd"]
  1563.      ],
  1564.     [
  1565.     ['text'=>"game ~» $game12",'callback_data'=>"game"],    ['text'=>"الالعاب ~» $game12",'callback_data'=>"game"]
  1566.      ],
  1567.     [
  1568.     ['text'=>"video ~» ✅",'callback_data'=>"video"],  ['text'=>"الفيديو ~» ✅",'callback_data'=>"video"]
  1569.      ],
  1570.      [
  1571.     ['text'=>"voice ~» $voice12",'callback_data'=>"voice"],     ['text'=>"البصمات ~» $voice12",'callback_data'=>"voice"]
  1572.      ],
  1573.      [
  1574.     ['text'=>"audio ~» $audio12",'callback_data'=>"audio"],     ['text'=>"الاغاني ~» $audio12",'callback_data'=>"audio"]
  1575.      ],
  1576.          [
  1577.     ['text'=>"file ~» $doc12",'callback_data'=>"file"],     ['text'=>"الملفات ~» $doc12",'callback_data'=>"file"]
  1578.      ],
  1579.       [
  1580.     ['text'=>"all ~» $text12",'callback_data'=>"all"],  ['text'=>"المحادثة ~» $text12",'callback_data'=>"all"]
  1581.      ],
  1582.          [
  1583.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  1584.       ]
  1585.        
  1586.                 ]
  1587.             ])
  1588.         ]);
  1589.    
  1590.  } else{
  1591.     bot('answercallbackquery',[
  1592.         'callback_query_id'=>$update->callback_query->id,
  1593.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  1594.         'show_alert'=>true
  1595.         ]);
  1596. }
  1597.  }
  1598.  if ( $data == "video" && $video12 == "✅" ) {
  1599.   if ($you_ == "creator" or $you_ == "administrator"){
  1600.  file_put_contents("data/$cllchatid/video.txt","❌");
  1601.          bot('editmessagetext',[
  1602.              'chat_id'=>$cllchatid,
  1603.     'message_id'=>$cllmsegid,
  1604.             'text'=>"صديقي هذه لائحة الميديا ⚓️
  1605. اضغط على الائحة للتحكم بلقفل والفقتح في الميديا 🚦
  1606. الميديا المقفولة == ❌
  1607. الميديا المفتوحة == ✅ ",
  1608.             'reply_markup'=>json_encode([
  1609.                 'inline_keyboard'=>[
  1610.      [
  1611.                         ['text'=>"link ~» $link12",'callback_data'=>"link"],['text'=>"الروابط ~» $link12",'callback_data'=>"link"]
  1612.                     ],
  1613.                                     [
  1614.                         ['text'=>"sticker ~» $sticker12",'callback_data'=>"sticker"],['text'=>"الملصقات ~» $sticker12",'callback_data'=>"sticker"]
  1615.                     ],
  1616.                     [
  1617.     ['text'=>"photo ~» $photo12",'callback_data'=>"photo"],     ['text'=>"الصور ~» $photo12",'callback_data'=>"photo"]
  1618.      ],
  1619.     [
  1620.     ['text'=>"tag ~» $tag12",'callback_data'=>"tag"],   ['text'=>"التاك ~» $tag12",'callback_data'=>"tag"]
  1621.      ],
  1622.     [
  1623.     ['text'=>"fwd ~» $fwd12",'callback_data'=>"fwd"],   ['text'=>"توجيه ~» $fwd12",'callback_data'=>"fwd"]
  1624.      ],
  1625.     [
  1626.     ['text'=>"game ~» $game12",'callback_data'=>"game"],    ['text'=>"الالعاب ~» $game12",'callback_data'=>"game"]
  1627.      ],
  1628.     [
  1629.     ['text'=>"video ~» ❌",'callback_data'=>"video"],  ['text'=>"الفيديو ~» ❌",'callback_data'=>"video"]
  1630.      ],
  1631.      [
  1632.     ['text'=>"voice ~» $voice12",'callback_data'=>"voice"],     ['text'=>"البصمات ~» $voice12",'callback_data'=>"voice"]
  1633.      ],
  1634.      [
  1635.     ['text'=>"audio ~» $audio12",'callback_data'=>"audio"],     ['text'=>"الاغاني ~» $audio12",'callback_data'=>"audio"]
  1636.      ],
  1637.          [
  1638.     ['text'=>"file ~» $doc12",'callback_data'=>"file"],     ['text'=>"الملفات ~» $doc12",'callback_data'=>"file"]
  1639.      ],
  1640.       [
  1641.     ['text'=>"all ~» $text12",'callback_data'=>"all"],  ['text'=>"المحادثة ~» $text12",'callback_data'=>"all"]
  1642.      ],
  1643.          [
  1644.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  1645.       ]
  1646.        
  1647.                 ]
  1648.             ])
  1649.         ]);  
  1650.  }else{
  1651.     bot('answercallbackquery',[
  1652.         'callback_query_id'=>$update->callback_query->id,
  1653.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  1654.         'show_alert'=>true
  1655.         ]);
  1656. }
  1657. }
  1658.  
  1659. if ( $data == "voice" && $voice12 == "❌") {
  1660.   if ($you_ == "creator" or $you_ == "administrator"){
  1661.   file_put_contents("data/$cllchatid/voice.txt","✅");
  1662.         bot('editmessagetext',[
  1663.              'chat_id'=>$cllchatid,
  1664.     'message_id'=>$cllmsegid,
  1665.             'text'=>"صديقي هذه لائحة الميديا ⚓️
  1666. اضغط على الائحة للتحكم بلقفل والفقتح في الميديا 🚦
  1667. الميديا المقفولة == ❌
  1668. الميديا المفتوحة == ✅ ",
  1669.             'reply_markup'=>json_encode([
  1670.                 'inline_keyboard'=>[
  1671.      [
  1672.                         ['text'=>"link ~» $link12",'callback_data'=>"link"],['text'=>"الروابط ~» $link12",'callback_data'=>"link"]
  1673.                     ],
  1674.                                     [
  1675.                         ['text'=>"sticker ~» $sticker12",'callback_data'=>"sticker"],['text'=>"الملصقات ~» $sticker12",'callback_data'=>"sticker"]
  1676.                     ],
  1677.                     [
  1678.     ['text'=>"photo ~» $photo12",'callback_data'=>"photo"],     ['text'=>"الصور ~» $photo12",'callback_data'=>"photo"]
  1679.      ],
  1680.     [
  1681.     ['text'=>"tag ~» $tag12",'callback_data'=>"tag"],   ['text'=>"التاك ~» $tag12",'callback_data'=>"tag"]
  1682.      ],
  1683.     [
  1684.     ['text'=>"fwd ~» $fwd12",'callback_data'=>"fwd"],   ['text'=>"توجيه ~» $fwd12",'callback_data'=>"fwd"]
  1685.      ],
  1686.     [
  1687.     ['text'=>"game ~» $game12",'callback_data'=>"game"],    ['text'=>"الالعاب ~» $game12",'callback_data'=>"game"]
  1688.      ],
  1689.     [
  1690.     ['text'=>"video ~» $video12",'callback_data'=>"video"],     ['text'=>"الفيديو ~» $video12",'callback_data'=>"video"]
  1691.      ],
  1692.      [
  1693.     ['text'=>"voice ~» ✅",'callback_data'=>"voice"],  ['text'=>"البصمات ~» ✅",'callback_data'=>"voice"]
  1694.      ],
  1695.      [
  1696.     ['text'=>"audio ~» $audio12",'callback_data'=>"audio"],     ['text'=>"الاغاني ~» $audio12",'callback_data'=>"audio"]
  1697.      ],
  1698.          [
  1699.     ['text'=>"file ~» $doc12",'callback_data'=>"file"],     ['text'=>"الملفات ~» $doc12",'callback_data'=>"file"]
  1700.      ],
  1701.       [
  1702.     ['text'=>"all ~» $text12",'callback_data'=>"all"],  ['text'=>"المحادثة ~» $text12",'callback_data'=>"all"]
  1703.      ],
  1704.          [
  1705.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  1706.       ]
  1707.        
  1708.                 ]
  1709.             ])
  1710.         ]);
  1711.    
  1712.  } else{
  1713.     bot('answercallbackquery',[
  1714.         'callback_query_id'=>$update->callback_query->id,
  1715.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  1716.         'show_alert'=>true
  1717.         ]);
  1718. }
  1719.  }
  1720.  if ( $data == "voice" && $voice12 == "✅" ) {
  1721.   if ($you_ == "creator" or $you_ == "administrator"){
  1722.  file_put_contents("data/$cllchatid/voice.txt","❌");
  1723.          bot('editmessagetext',[
  1724.              'chat_id'=>$cllchatid,
  1725.     'message_id'=>$cllmsegid,
  1726.             'text'=>"صديقي هذه لائحة الميديا ⚓️
  1727. اضغط على الائحة للتحكم بلقفل والفقتح في الميديا 🚦
  1728. الميديا المقفولة == ❌
  1729. الميديا المفتوحة == ✅ ",
  1730.             'reply_markup'=>json_encode([
  1731.                 'inline_keyboard'=>[
  1732.      [
  1733.                         ['text'=>"link ~» $link12",'callback_data'=>"link"],['text'=>"الروابط ~» $link12",'callback_data'=>"link"]
  1734.                     ],
  1735.                                     [
  1736.                         ['text'=>"sticker ~» $sticker12",'callback_data'=>"sticker"],['text'=>"الملصقات ~» $sticker12",'callback_data'=>"sticker"]
  1737.                     ],
  1738.                     [
  1739.     ['text'=>"photo ~» $photo12",'callback_data'=>"photo"],     ['text'=>"الصور ~» $photo12",'callback_data'=>"photo"]
  1740.      ],
  1741.     [
  1742.     ['text'=>"tag ~» $tag12",'callback_data'=>"tag"],   ['text'=>"التاك ~» $tag12",'callback_data'=>"tag"]
  1743.      ],
  1744.     [
  1745.     ['text'=>"fwd ~» $fwd12",'callback_data'=>"fwd"],   ['text'=>"توجيه ~» $fwd12",'callback_data'=>"fwd"]
  1746.      ],
  1747.     [
  1748.     ['text'=>"game ~» $game12",'callback_data'=>"game"],    ['text'=>"الالعاب ~» $game12",'callback_data'=>"game"]
  1749.      ],
  1750.     [
  1751.     ['text'=>"video ~» $video12",'callback_data'=>"video"],     ['text'=>"الفيديو ~» $video12",'callback_data'=>"video"]
  1752.      ],
  1753.      [
  1754.     ['text'=>"voice ~» ❌",'callback_data'=>"voice"],  ['text'=>"البصمات ~» ❌",'callback_data'=>"voice"]
  1755.      ],
  1756.      [
  1757.     ['text'=>"audio ~» $audio12",'callback_data'=>"audio"],     ['text'=>"الاغاني ~» $audio12",'callback_data'=>"audio"]
  1758.      ],
  1759.          [
  1760.     ['text'=>"file ~» $doc12",'callback_data'=>"file"],     ['text'=>"الملفات ~» $doc12",'callback_data'=>"file"]
  1761.      ],
  1762.       [
  1763.     ['text'=>"all ~» $text12",'callback_data'=>"all"],  ['text'=>"المحادثة ~» $text12",'callback_data'=>"all"]
  1764.      ],
  1765.          [
  1766.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  1767.       ]
  1768.        
  1769.                 ]
  1770.             ])
  1771.         ]);  
  1772.  }else{
  1773.     bot('answercallbackquery',[
  1774.         'callback_query_id'=>$update->callback_query->id,
  1775.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  1776.         'show_alert'=>true
  1777.         ]);
  1778. }
  1779. }
  1780.  
  1781.  
  1782. if ( $data == "audio" && $audio12 == "❌") {
  1783.   if ($you_ == "creator" or $you_ == "administrator"){
  1784.   file_put_contents("data/$cllchatid/audio.txt","✅");
  1785.         bot('editmessagetext',[
  1786.              'chat_id'=>$cllchatid,
  1787.     'message_id'=>$cllmsegid,
  1788.             'text'=>"صديقي هذه لائحة الميديا ⚓️
  1789. اضغط على الائحة للتحكم بلقفل والفقتح في الميديا 🚦
  1790. الميديا المقفولة == ❌
  1791. الميديا المفتوحة == ✅ ",
  1792.             'reply_markup'=>json_encode([
  1793.                 'inline_keyboard'=>[
  1794.      [
  1795.                         ['text'=>"link ~» $link12",'callback_data'=>"link"],['text'=>"الروابط ~» $link12",'callback_data'=>"link"]
  1796.                     ],
  1797.                                     [
  1798.                         ['text'=>"sticker ~» $sticker12",'callback_data'=>"sticker"],['text'=>"الملصقات ~» $sticker12",'callback_data'=>"sticker"]
  1799.                     ],
  1800.                     [
  1801.     ['text'=>"photo ~» $photo12",'callback_data'=>"photo"],     ['text'=>"الصور ~» $photo12",'callback_data'=>"photo"]
  1802.      ],
  1803.     [
  1804.     ['text'=>"tag ~» $tag12",'callback_data'=>"tag"],   ['text'=>"التاك ~» $tag12",'callback_data'=>"tag"]
  1805.      ],
  1806.     [
  1807.     ['text'=>"fwd ~» $fwd12",'callback_data'=>"fwd"],   ['text'=>"توجيه ~» $fwd12",'callback_data'=>"fwd"]
  1808.      ],
  1809.     [
  1810.     ['text'=>"game ~» $game12",'callback_data'=>"game"],    ['text'=>"الالعاب ~» $game12",'callback_data'=>"game"]
  1811.      ],
  1812.     [
  1813.     ['text'=>"video ~» $video12",'callback_data'=>"video"],     ['text'=>"الفيديو ~» $video12",'callback_data'=>"video"]
  1814.      ],
  1815.      [
  1816.     ['text'=>"voice ~» $voice12",'callback_data'=>"voice"],     ['text'=>"البصمات ~» $voice12",'callback_data'=>"voice"]
  1817.      ],
  1818.      [
  1819.     ['text'=>"audio ~» ✅",'callback_data'=>"audio"],  ['text'=>"الاغاني ~» ✅",'callback_data'=>"audio"]
  1820.      ],
  1821.          [
  1822.     ['text'=>"file ~» $doc12",'callback_data'=>"file"],     ['text'=>"الملفات ~» $doc12",'callback_data'=>"file"]
  1823.      ],
  1824.       [
  1825.     ['text'=>"all ~» $text12",'callback_data'=>"all"],  ['text'=>"المحادثة ~» $text12",'callback_data'=>"all"]
  1826.      ],
  1827.          [
  1828.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  1829.       ]
  1830.        
  1831.                 ]
  1832.             ])
  1833.         ]);
  1834.    
  1835.  } else{
  1836.     bot('answercallbackquery',[
  1837.         'callback_query_id'=>$update->callback_query->id,
  1838.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  1839.         'show_alert'=>true
  1840.         ]);
  1841. }
  1842.  }
  1843.  if ( $data == "audio" && $audio12 == "✅" ) {
  1844.   if ($you_ == "creator" or $you_ == "administrator"){
  1845.  file_put_contents("data/$cllchatid/audio.txt","❌");
  1846.          bot('editmessagetext',[
  1847.              'chat_id'=>$cllchatid,
  1848.     'message_id'=>$cllmsegid,
  1849.             'text'=>"صديقي هذه لائحة الميديا ⚓️
  1850. اضغط على الائحة للتحكم بلقفل والفقتح في الميديا 🚦
  1851. الميديا المقفولة == ❌
  1852. الميديا المفتوحة == ✅ ",
  1853.             'reply_markup'=>json_encode([
  1854.                 'inline_keyboard'=>[
  1855.      [
  1856.                         ['text'=>"link ~» $link12",'callback_data'=>"link"],['text'=>"الروابط ~» $link12",'callback_data'=>"link"]
  1857.                     ],
  1858.                                     [
  1859.                         ['text'=>"sticker ~» $sticker12",'callback_data'=>"sticker"],['text'=>"الملصقات ~» $sticker12",'callback_data'=>"sticker"]
  1860.                     ],
  1861.  
  1862.                     [
  1863.     ['text'=>"photo ~» $photo12",'callback_data'=>"photo"],     ['text'=>"الصور ~» $photo12",'callback_data'=>"photo"]
  1864.      ],
  1865.     [
  1866.     ['text'=>"tag ~» $tag12",'callback_data'=>"tag"],   ['text'=>"التاك ~» $tag12",'callback_data'=>"tag"]
  1867.      ],
  1868.     [
  1869.     ['text'=>"fwd ~» $fwd12",'callback_data'=>"fwd"],   ['text'=>"توجيه ~» $fwd12",'callback_data'=>"fwd"]
  1870.      ],
  1871.     [
  1872.     ['text'=>"game ~» $game12",'callback_data'=>"game"],    ['text'=>"الالعاب ~» $game12",'callback_data'=>"game"]
  1873.      ],
  1874.     [
  1875.     ['text'=>"video ~» $video12",'callback_data'=>"video"],     ['text'=>"الفيديو ~» $video12",'callback_data'=>"video"]
  1876.      ],
  1877.      [
  1878.     ['text'=>"voice ~» $voice12",'callback_data'=>"voice"],     ['text'=>"البصمات ~» $voice12",'callback_data'=>"voice"]
  1879.      ],
  1880.      [
  1881.     ['text'=>"audio ~» ❌",'callback_data'=>"audio"],  ['text'=>"الاغاني ~» ❌",'callback_data'=>"audio"]
  1882.      ],
  1883.          [
  1884.     ['text'=>"file ~» $doc12",'callback_data'=>"file"],     ['text'=>"الملفات ~» $doc12",'callback_data'=>"file"]
  1885.      ],
  1886.       [
  1887.     ['text'=>"all ~» $text12",'callback_data'=>"all"],  ['text'=>"المحادثة ~» $text12",'callback_data'=>"all"]
  1888.      ],
  1889.          [
  1890.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  1891.       ]
  1892.        
  1893.                 ]
  1894.             ])
  1895.         ]);  
  1896.  }else{
  1897.     bot('answercallbackquery',[
  1898.         'callback_query_id'=>$update->callback_query->id,
  1899.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  1900.         'show_alert'=>true
  1901.         ]);
  1902. }
  1903. }
  1904.  
  1905.  
  1906. if ( $data == "file" && $doc12 == "❌") {
  1907.   if ($you_ == "creator" or $you_ == "administrator"){
  1908.   file_put_contents("data/$cllchatid/doc.txt","✅");
  1909.         bot('editmessagetext',[
  1910.              'chat_id'=>$cllchatid,
  1911.     'message_id'=>$cllmsegid,
  1912.             'text'=>"صديقي هذه لائحة الميديا ⚓️
  1913. اضغط على الائحة للتحكم بلقفل والفقتح في الميديا 🚦
  1914. الميديا المقفولة == ❌
  1915. الميديا المفتوحة == ✅ ",
  1916.             'reply_markup'=>json_encode([
  1917.                 'inline_keyboard'=>[
  1918.      [
  1919.                         ['text'=>"link ~» $link12",'callback_data'=>"link"],['text'=>"الروابط ~» $link12",'callback_data'=>"link"]
  1920.                     ],
  1921.                                     [
  1922.                         ['text'=>"sticker ~» $sticker12",'callback_data'=>"sticker"],['text'=>"الملصقات ~» $sticker12",'callback_data'=>"sticker"]
  1923.                     ],
  1924.  
  1925.                     [
  1926.     ['text'=>"photo ~» $photo12",'callback_data'=>"photo"],     ['text'=>"الصور ~» $photo12",'callback_data'=>"photo"]
  1927.      ],
  1928.     [
  1929.     ['text'=>"tag ~» $tag12",'callback_data'=>"tag"],   ['text'=>"التاك ~» $tag12",'callback_data'=>"tag"]
  1930.      ],
  1931.     [
  1932.     ['text'=>"fwd ~» $fwd12",'callback_data'=>"fwd"],   ['text'=>"توجيه ~» $fwd12",'callback_data'=>"fwd"]
  1933.      ],
  1934.     [
  1935.     ['text'=>"game ~» $game12",'callback_data'=>"game"],    ['text'=>"الالعاب ~» $game12",'callback_data'=>"game"]
  1936.      ],
  1937.     [
  1938.     ['text'=>"video ~» $video12",'callback_data'=>"video"],     ['text'=>"الفيديو ~» $video12",'callback_data'=>"video"]
  1939.      ],
  1940.      [
  1941.     ['text'=>"voice ~» $voice12",'callback_data'=>"voice"],     ['text'=>"البصمات ~» $voice12",'callback_data'=>"voice"]
  1942.      ],
  1943.      [
  1944.     ['text'=>"audio ~» $audio12",'callback_data'=>"audio"],     ['text'=>"الاغاني ~» $audio12",'callback_data'=>"audio"]
  1945.      ],
  1946.          [
  1947.     ['text'=>"file ~» ✅",'callback_data'=>"file"],    ['text'=>"الملفات ~» ✅",'callback_data'=>"file"]
  1948.      ],
  1949.       [
  1950.     ['text'=>"all ~» $text12",'callback_data'=>"all"],  ['text'=>"المحادثة ~» $text12",'callback_data'=>"all"]
  1951.      ],
  1952.          [
  1953.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  1954.       ]
  1955.        
  1956.                 ]
  1957.             ])
  1958.         ]);
  1959.    
  1960.  } else{
  1961.     bot('answercallbackquery',[
  1962.         'callback_query_id'=>$update->callback_query->id,
  1963.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  1964.         'show_alert'=>true
  1965.         ]);
  1966. }
  1967.  }
  1968.  if ( $data == "file" && $doc12 == "✅" ) {
  1969.   if ($you_ == "creator" or $you_ == "administrator"){
  1970.  file_put_contents("data/$cllchatid/doc.txt","❌");
  1971.          bot('editmessagetext',[
  1972.              'chat_id'=>$cllchatid,
  1973.     'message_id'=>$cllmsegid,
  1974.             'text'=>"صديقي هذه لائحة الميديا ⚓️
  1975. اضغط على الائحة للتحكم بلقفل والفقتح في الميديا 🚦
  1976. الميديا المقفولة == ❌
  1977. الميديا المفتوحة == ✅ ",
  1978.             'reply_markup'=>json_encode([
  1979.                 'inline_keyboard'=>[
  1980.      [
  1981.                         ['text'=>"link ~» $link12",'callback_data'=>"link"],['text'=>"الروابط ~» $link12",'callback_data'=>"link"]
  1982.                     ],
  1983.                                     [
  1984.                         ['text'=>"sticker ~» $sticker12",'callback_data'=>"sticker"],['text'=>"الملصقات ~» $sticker12",'callback_data'=>"sticker"]
  1985.                     ],
  1986.                     [
  1987.     ['text'=>"photo ~» $photo12",'callback_data'=>"photo"],     ['text'=>"الصور ~» $photo12",'callback_data'=>"photo"]
  1988.      ],
  1989.     [
  1990.     ['text'=>"tag ~» $tag12",'callback_data'=>"tag"],   ['text'=>"التاك ~» $tag12",'callback_data'=>"tag"]
  1991.      ],
  1992.     [
  1993.     ['text'=>"fwd ~» $fwd12",'callback_data'=>"fwd"],   ['text'=>"توجيه ~» $fwd12",'callback_data'=>"fwd"]
  1994.      ],
  1995.     [
  1996.     ['text'=>"game ~» $game12",'callback_data'=>"game"],    ['text'=>"الالعاب ~» $game12",'callback_data'=>"game"]
  1997.      ],
  1998.     [
  1999.     ['text'=>"video ~» $video12",'callback_data'=>"video"],     ['text'=>"الفيديو ~» $video12",'callback_data'=>"video"]
  2000.      ],
  2001.      [
  2002.     ['text'=>"voice ~» $voice12",'callback_data'=>"voice"],     ['text'=>"البصمات ~» $voice12",'callback_data'=>"voice"]
  2003.      ],
  2004.      [
  2005.     ['text'=>"audio ~» $audio12",'callback_data'=>"audio"],     ['text'=>"الاغاني ~» $audio12",'callback_data'=>"audio"]
  2006.      ],
  2007.          [
  2008.     ['text'=>"file ~» ❌",'callback_data'=>"file"],    ['text'=>"الملفات ~» ❌",'callback_data'=>"file"]
  2009.      ],
  2010.       [
  2011.     ['text'=>"all ~» $text12",'callback_data'=>"all"],  ['text'=>"المحادثة ~» $text12",'callback_data'=>"all"]
  2012.      ],
  2013.          [
  2014.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  2015.       ]
  2016.        
  2017.                 ]
  2018.             ])
  2019.         ]);  
  2020.  }else{
  2021.     bot('answercallbackquery',[
  2022.         'callback_query_id'=>$update->callback_query->id,
  2023.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  2024.         'show_alert'=>true
  2025.         ]);
  2026. }
  2027. }
  2028.  
  2029.  
  2030.  
  2031. if ( $data == "all" && $text12 == "❌") {
  2032.   if ($you_ == "creator" or $you_ == "administrator"){
  2033.   file_put_contents("data/$cllchatid/text.txt","✅");
  2034.         bot('editmessagetext',[
  2035.              'chat_id'=>$cllchatid,
  2036.     'message_id'=>$cllmsegid,
  2037.             'text'=>"صديقي هذه لائحة الميديا ⚓️
  2038. اضغط على الائحة للتحكم بلقفل والفقتح في الميديا 🚦
  2039. الميديا المقفولة == ❌
  2040. الميديا المفتوحة == ✅ ",
  2041.             'reply_markup'=>json_encode([
  2042.                 'inline_keyboard'=>[
  2043.      [
  2044.                         ['text'=>"link ~» $link12",'callback_data'=>"link"],['text'=>"الروابط ~» $link12",'callback_data'=>"link"]
  2045.                     ], //the file by mounir
  2046.                                     [
  2047.                         ['text'=>"sticker ~» $sticker12",'callback_data'=>"sticker"],['text'=>"الملصقات ~» $sticker12",'callback_data'=>"sticker"]
  2048.                     ],
  2049.  
  2050.                     [
  2051.     ['text'=>"photo ~» $photo12",'callback_data'=>"photo"],     ['text'=>"الصور ~» $photo12",'callback_data'=>"photo"]
  2052.      ],
  2053.     [
  2054.     ['text'=>"tag ~» $tag12",'callback_data'=>"tag"],   ['text'=>"التاك ~» $tag12",'callback_data'=>"tag"]
  2055.      ],
  2056.     [
  2057.     ['text'=>"fwd ~» $fwd12",'callback_data'=>"fwd"],   ['text'=>"توجيه ~» $fwd12",'callback_data'=>"fwd"]
  2058.      ],
  2059.     [
  2060.     ['text'=>"game ~» $game12",'callback_data'=>"game"],    ['text'=>"الالعاب ~» $game12",'callback_data'=>"game"]
  2061.      ],
  2062.     [
  2063.     ['text'=>"video ~» $video12",'callback_data'=>"video"],     ['text'=>"الفيديو ~» $video12",'callback_data'=>"video"]
  2064.      ],
  2065.      [
  2066.     ['text'=>"voice ~» $voice12",'callback_data'=>"voice"],     ['text'=>"البصمات ~» $voice12",'callback_data'=>"voice"]
  2067.      ],
  2068.      [
  2069.     ['text'=>"audio ~» $audio12",'callback_data'=>"audio"],     ['text'=>"الاغاني ~» $audio12",'callback_data'=>"audio"]
  2070.      ],
  2071.          [
  2072.     ['text'=>"file ~» $doc12",'callback_data'=>"file"],     ['text'=>"الملفات ~» $doc12",'callback_data'=>"file"]
  2073.      ],
  2074.       [
  2075.     ['text'=>"all ~» ✅",'callback_data'=>"all"],  ['text'=>"المحادثة ~» ✅",'callback_data'=>"all"]
  2076.      ],
  2077.          [
  2078.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  2079.       ]
  2080.        
  2081.                 ]
  2082.             ])
  2083.         ]);
  2084.    
  2085.  } else{
  2086.     bot('answercallbackquery',[
  2087.         'callback_query_id'=>$update->callback_query->id,
  2088.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  2089.         'show_alert'=>true
  2090.         ]);
  2091. }
  2092.  }
  2093.  if ( $data == "all" && $text12 == "✅" ) {
  2094.   if ($you_ == "creator" or $you_ == "administrator"){
  2095.  file_put_contents("data/$cllchatid/text.txt","❌");
  2096.          bot('editmessagetext',[
  2097.              'chat_id'=>$cllchatid,
  2098.     'message_id'=>$cllmsegid,
  2099.             'text'=>"صديقي هذه لائحة الميديا ⚓️
  2100. اضغط على الائحة للتحكم بلقفل والفقتح في الميديا 🚦
  2101. الميديا المقفولة == ❌
  2102. الميديا المفتوحة == ✅ ",
  2103.             'reply_markup'=>json_encode([
  2104.                 'inline_keyboard'=>[
  2105.      [
  2106.                         ['text'=>"link ~» $link12",'callback_data'=>"link"],['text'=>"الروابط ~» $link12",'callback_data'=>"link"]
  2107.                     ],
  2108.                                     [
  2109.                         ['text'=>"sticker ~» $sticker12",'callback_data'=>"sticker"],['text'=>"الملصقات ~» $sticker12",'callback_data'=>"sticker"]
  2110.                     ],
  2111.                     [
  2112.     ['text'=>"photo ~» $photo12",'callback_data'=>"photo"],     ['text'=>"الصور ~» $photo12",'callback_data'=>"photo"]
  2113.      ],
  2114.     [
  2115.     ['text'=>"tag ~» $tag12",'callback_data'=>"tag"],   ['text'=>"التاك ~» $tag12",'callback_data'=>"tag"]
  2116.      ],
  2117.     [
  2118.     ['text'=>"fwd ~» $fwd12",'callback_data'=>"fwd"],   ['text'=>"توجيه ~» $fwd12",'callback_data'=>"fwd"]
  2119.      ],
  2120.     [
  2121.     ['text'=>"game ~» $game12",'callback_data'=>"game"],    ['text'=>"الالعاب ~» $game12",'callback_data'=>"game"]
  2122.      ],
  2123.     [
  2124.     ['text'=>"video ~» $video12",'callback_data'=>"video"],     ['text'=>"الفيديو ~» $video12",'callback_data'=>"video"]
  2125.      ],
  2126.      [
  2127.     ['text'=>"voice ~» $voice12",'callback_data'=>"voice"],     ['text'=>"البصمات ~» $voice12",'callback_data'=>"voice"]
  2128.      ],
  2129.      [
  2130.     ['text'=>"audio ~» $audio12",'callback_data'=>"audio"],     ['text'=>"الاغاني ~» $audio12",'callback_data'=>"audio"]
  2131.      ],
  2132.          [
  2133.     ['text'=>"file ~» $doc12",'callback_data'=>"file"],     ['text'=>"الملفات ~» $doc12",'callback_data'=>"file"]
  2134.      ],
  2135.       [
  2136.     ['text'=>"all ~» ❌",'callback_data'=>"all"],  ['text'=>"المحادثة ~» ❌",'callback_data'=>"all"]
  2137.      ],
  2138.          [
  2139.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  2140.       ]
  2141.        
  2142.                 ]
  2143.             ])
  2144.         ]);  
  2145.  }else{
  2146.     bot('answercallbackquery',[
  2147.         'callback_query_id'=>$update->callback_query->id,
  2148.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  2149.         'show_alert'=>true
  2150.         ]);
  2151. }
  2152. }
  2153.  
  2154. if ( $data == "sticker" && $sticker12 == "❌") {
  2155.   if ($you_ == "creator" or $you_ == "administrator"){
  2156.   file_put_contents("data/$cllchatid/sticker.txt","✅");
  2157.         bot('editmessagetext',[
  2158.              'chat_id'=>$cllchatid,
  2159.     'message_id'=>$cllmsegid,
  2160.             'text'=>"صديقي هذه لائحة الميديا ⚓️
  2161. اضغط على الائحة للتحكم بلقفل والفقتح في الميديا 🚦
  2162. الميديا المقفولة == ❌
  2163. الميديا المفتوحة == ✅ ",
  2164.             'reply_markup'=>json_encode([
  2165.                 'inline_keyboard'=>[
  2166.      [
  2167.                         ['text'=>"link ~» $link12",'callback_data'=>"link"],['text'=>"الروابط ~» $link12",'callback_data'=>"link"]
  2168.                     ],
  2169.                                     [
  2170.                         ['text'=>"sticker ~» ✅",'callback_data'=>"sticker"],['text'=>"الملصقات ~» ✅",'callback_data'=>"sticker"]
  2171.                     ],
  2172.                     [
  2173.     ['text'=>"photo ~» $photo12",'callback_data'=>"photo"],     ['text'=>"الصور ~» $photo12",'callback_data'=>"photo"]
  2174.      ],
  2175.     [
  2176.     ['text'=>"tag ~» $tag12",'callback_data'=>"tag"],   ['text'=>"التاك ~» $tag12",'callback_data'=>"tag"]
  2177.      ],
  2178.     [
  2179.     ['text'=>"fwd ~» $fwd12",'callback_data'=>"fwd"],   ['text'=>"توجيه ~» $fwd12",'callback_data'=>"fwd"]
  2180.      ],
  2181.     [
  2182.     ['text'=>"game ~» $game12",'callback_data'=>"game"],    ['text'=>"الالعاب ~» $game12",'callback_data'=>"game"]
  2183.      ],
  2184.     [
  2185.     ['text'=>"video ~» $video12",'callback_data'=>"video"],     ['text'=>"الفيديو ~» $video12",'callback_data'=>"video"]
  2186.      ],
  2187.      [
  2188.     ['text'=>"voice ~» $voice12",'callback_data'=>"voice"],     ['text'=>"البصمات ~» $voice12",'callback_data'=>"voice"]
  2189.      ],
  2190.      [
  2191.     ['text'=>"audio ~» $audio12",'callback_data'=>"audio"],     ['text'=>"الاغاني ~» $audio12",'callback_data'=>"audio"]
  2192.      ],
  2193.          [
  2194.     ['text'=>"file ~» $doc12",'callback_data'=>"file"],     ['text'=>"الملفات ~» $doc12",'callback_data'=>"file"]
  2195.      ],
  2196.       [
  2197.     ['text'=>"all ~» $text12",'callback_data'=>"all"],  ['text'=>"المحادثة ~» $text12",'callback_data'=>"all"]
  2198.      ],
  2199.          [
  2200.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  2201.       ]
  2202.        
  2203.                 ]
  2204.             ])
  2205.         ]);
  2206.    
  2207.  } else{
  2208.     bot('answercallbackquery',[
  2209.         'callback_query_id'=>$update->callback_query->id,
  2210.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  2211.         'show_alert'=>true
  2212.         ]);
  2213. }
  2214.  }
  2215.  if ( $data == "sticker" && $sticker12 == "✅" ) {
  2216.   if ($you_ == "creator" or $you_ == "administrator"){
  2217.  file_put_contents("data/$cllchatid/sticker.txt","❌");
  2218.          bot('editmessagetext',[
  2219.              'chat_id'=>$cllchatid,
  2220.     'message_id'=>$cllmsegid,
  2221.             'text'=>"صديقي هذه لائحة الميديا ⚓️
  2222. اضغط على الائحة للتحكم بلقفل والفقتح في الميديا 🚦
  2223. الميديا المقفولة == ❌
  2224. الميديا المفتوحة == ✅ ",
  2225.             'reply_markup'=>json_encode([
  2226.                 'inline_keyboard'=>[
  2227.      [
  2228.                         ['text'=>"link ~» $link12",'callback_data'=>"link"],['text'=>"الروابط ~» $link12",'callback_data'=>"link"]
  2229.                     ],
  2230.                                     [
  2231.                         ['text'=>"sticker ~» ❌",'callback_data'=>"sticker"],['text'=>"الملصقات ~» ❌",'callback_data'=>"sticker"]
  2232.                     ],
  2233.                     [
  2234.     ['text'=>"photo ~» $photo12",'callback_data'=>"photo"],     ['text'=>"الصور ~» $photo12",'callback_data'=>"photo"]
  2235.      ],
  2236.     [
  2237.     ['text'=>"tag ~» $tag12",'callback_data'=>"tag"],   ['text'=>"التاك ~» $tag12",'callback_data'=>"tag"]
  2238.      ],
  2239.     [
  2240.     ['text'=>"fwd ~» $fwd12",'callback_data'=>"fwd"],   ['text'=>"توجيه ~» $fwd12",'callback_data'=>"fwd"]
  2241.      ],
  2242.     [
  2243.     ['text'=>"game ~» $game12",'callback_data'=>"game"],    ['text'=>"الالعاب ~» $game12",'callback_data'=>"game"]
  2244.      ],
  2245.     [
  2246.     ['text'=>"video ~» $video12",'callback_data'=>"video"],     ['text'=>"الفيديو ~» $video12",'callback_data'=>"video"]
  2247.      ],
  2248.      [
  2249.     ['text'=>"voice ~» $voice12",'callback_data'=>"voice"],     ['text'=>"البصمات ~» $voice12",'callback_data'=>"voice"]
  2250.      ],
  2251.      [
  2252.     ['text'=>"audio ~» $audio12",'callback_data'=>"audio"],     ['text'=>"الاغاني ~» $audio12",'callback_data'=>"audio"]
  2253.      ],
  2254.          [
  2255.     ['text'=>"file ~» $doc12",'callback_data'=>"file"],     ['text'=>"الملفات ~» $doc12",'callback_data'=>"file"]
  2256.      ],
  2257.       [
  2258.     ['text'=>"all ~» $text12",'callback_data'=>"all"],  ['text'=>"المحادثة ~» $text12",'callback_data'=>"all"]
  2259.      ],
  2260.          [
  2261.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  2262.       ]
  2263.        
  2264.                 ]
  2265.             ])
  2266.         ]);  
  2267.  }else{
  2268.     bot('answercallbackquery',[
  2269.         'callback_query_id'=>$update->callback_query->id,
  2270.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  2271.         'show_alert'=>true
  2272.         ]);
  2273. }
  2274. }
  2275.  
  2276.  
  2277.  
  2278.  
  2279. if($data == "ss"  ){
  2280. if ($you_ == "creator" or $you_ == "administrator"){
  2281. if (!file_exists("data/$cllchatid/warn/helll.txt")) {
  2282.     mkdir("data/$cllchatid/warn");  
  2283.      bot('editmessagetext',[
  2284.         'chat_id'=>$cllchatid,
  2285.     'message_id'=>$cllmsegid,
  2286.                 'text' =>"  هذه اوالامر المدراء 📛
  2287. /kick [ id/ reply ] لطرد عضو 👞
  2288. /ban [ id/ reply ] لحظر عضو ⛓
  2289. /unban [ id/ reply ] لرفع الحظر ⚖
  2290. /del [ reply ] لمسح رسالة بواسطة الرد 🗑
  2291.         «~~~~~~~~~~~~~~»
  2292. /warn [ reply ] لتحذير عضو 📍 ",
  2293.          'parse_mode'=>'html',
  2294.    'reply_markup'=>json_encode([
  2295.       'inline_keyboard'=>[
  2296.         [
  2297.                         ['text'=>"🔲 welcom - الترحيب 🔳",'callback_data'=>"welc"]
  2298.                     ],
  2299.                     [
  2300.                     ['text'=>"📍رابط المجموعة - gp link 📍",'callback_data'=>"gplink"]
  2301.                     ],
  2302.                     [
  2303.                         ['text'=>"🗒 القوانين - rules 📜",'callback_data'=>"rul"]
  2304.                     ],
  2305.          [
  2306.                         ['text'=>"♣️ تحدد التحذير - setting warn ⬇️",'callback_data'=>"muner"]
  2307.                     ],
  2308.      [
  2309.                         ['text'=>"➖",'callback_data'=>"-"],['text'=>"$warn_",'callback_data'=>"#"],   ['text'=>"➕",'callback_data'=>"+"]
  2310.                     ],
  2311.                      [
  2312.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  2313.       ]
  2314.       ]
  2315.     ])
  2316.   ]);
  2317.   }  
  2318.   }else{
  2319.     bot('answercallbackquery',[
  2320.         'callback_query_id'=>$update->callback_query->id,
  2321.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  2322.         'show_alert'=>true
  2323.         ]);
  2324. }
  2325. }
  2326.   elseif ($data == '#' )
  2327. {
  2328. bot('answerCallbackQuery',[
  2329. 'callback_query_id'=>$update->callback_query->id,
  2330. 'text'=>"هذا هو الحد الاقصى لعدد التحذيرات ♣️",
  2331. ]);
  2332. }  
  2333.  elseif ($data == 'muner' )
  2334. {
  2335. bot('answerCallbackQuery',[
  2336. 'callback_query_id'=>$update->callback_query->id,
  2337. 'text'=>"قم بلضغط على
  2338. ➕ ليزادة التحذير
  2339. ➖ لتقليل التحذير️",
  2340. ]);
  2341. }  
  2342. elseif($data == '+'){
  2343. if ($you_ == "creator" or $you_ == "administrator"){
  2344.         $newwarn = $warn_ + 1;
  2345.          $warn_1 = $warn_ + 1;
  2346.         file_put_contents("data/$cllchatid/warn/warn.txt", $newwarn);
  2347.     bot('editmessagetext',[
  2348.          'chat_id'=>$cllchatid,
  2349.     'message_id'=>$cllmsegid,
  2350.                 'text' =>"  هذه اوالامر المدراء 📛
  2351. /kick [ id/ reply ] لطرد عضو 👞
  2352. /ban [ id/ reply ] لحظر عضو ⛓
  2353. /unban [ id/ reply ] لرفع الحظر ⚖
  2354. /del [ reply ] لمسح رسالة بواسطة الرد 🗑
  2355.         «~~~~~~~~~~~~~~»
  2356. /warn [ reply ] لتحذير عضو 📍 ",
  2357.          'parse_mode'=>'html',
  2358.    'reply_markup'=>json_encode([
  2359.       'inline_keyboard'=>[
  2360.       [
  2361.                         ['text'=>"🔲 welcom - الترحيب 🔳",'callback_data'=>"welc"]
  2362.                     ],
  2363.                     [
  2364.                     ['text'=>"📍رابط المجموعة - gp link 📍",'callback_data'=>"gplink"]
  2365.                     ],
  2366.                     [
  2367.                         ['text'=>"🗒 القوانين - rules 📜",'callback_data'=>"rul"]
  2368.                     ],
  2369.         [
  2370.                         ['text'=>"♣️ تحدد التحذير - setting warn ⬇️",'callback_data'=>"muner"]
  2371.                     ],
  2372.      [
  2373.                         ['text'=>"➖",'callback_data'=>"-"],['text'=>"$warn_1",'callback_data'=>"#"],  ['text'=>"➕",'callback_data'=>"+"]
  2374.                     ],
  2375.                      [
  2376.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  2377.       ]
  2378.       ]
  2379.     ])
  2380.   ]);
  2381.   }  
  2382.   else{
  2383.     bot('answercallbackquery',[
  2384.         'callback_query_id'=>$update->callback_query->id,
  2385.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  2386.         'show_alert'=>true
  2387.         ]);
  2388. }
  2389. }
  2390.  elseif($data == '-' ){
  2391.  if ($you_ == "creator" or $you_ == "administrator"){
  2392.         $newwarn = $warn_ - 1;
  2393.         $warn_1 = $warn_ - 1;
  2394.         file_put_contents("data/$cllchatid/warn/warn.txt", $newwarn);
  2395.     bot('editmessagetext',[
  2396.         'chat_id'=>$cllchatid,
  2397.     'message_id'=>$cllmsegid,
  2398.                 'text' =>"  هذه اوالامر المدراء 📛
  2399. /kick [ id/ reply ] لطرد عضو 👞
  2400. /ban [ id/ reply ] لحظر عضو ⛓
  2401. /unban [ id/ reply ] لرفع الحظر ⚖
  2402. /del [ reply ] لمسح رسالة بواسطة الرد 🗑
  2403.         «~~~~~~~~~~~~~~»
  2404. /warn [ reply ] لتحذير عضو 📍 ",
  2405.          'parse_mode'=>'html',
  2406.    'reply_markup'=>json_encode([
  2407.       'inline_keyboard'=>[
  2408.          [
  2409.                         ['text'=>"🔲 welcom - الترحيب 🔳",'callback_data'=>"welc"]
  2410.                     ],
  2411.                     [
  2412.                     ['text'=>"📍رابط المجموعة - gp link 📍",'callback_data'=>"gplink"]
  2413.                     ],
  2414.                 [
  2415.                         ['text'=>"🗒 القوانين - rules 📜",'callback_data'=>"rul"]
  2416.                         ],
  2417.         [
  2418.         ['text'=>"♣️ تحدد التحذير - setting warn ⬇️",'callback_data'=>"muner"]
  2419.                     ],
  2420.          [
  2421.                 ['text'=>"➖",'callback_data'=>"-"],['text'=>"$warn_1",'callback_data'=>"#"],  ['text'=>"➕",'callback_data'=>"+"]
  2422.                     ],
  2423.          [
  2424.          ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  2425.          ]
  2426.          ]
  2427.          ])
  2428.          ]);
  2429.          }   else{
  2430.     bot('answercallbackquery',[
  2431.         'callback_query_id'=>$update->callback_query->id,
  2432.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  2433.         'show_alert'=>true
  2434.         ]);
  2435. }
  2436. }
  2437.  
  2438. $warns = $warn - 1;
  2439. if ($warns != $warn_2){
  2440.  if($re &&$text == "/warn"){  
  2441.  if($you == "creator" or $you == "administrator"){    
  2442.  $nnwarn = $warn_2 + 1;
  2443.         file_put_contents("data/$chat_id/warn/$re_id.txt", $nnwarn);
  2444.         sendaction($chat_id, typing);
  2445.         bot('sendmessage', [
  2446.                 'chat_id' => $chat_id,
  2447.                 'text' =>"عذرا يا صديقي 😒✋🏻
  2448. انتبه لتصرفاتك داخل المجموعة 👥
  2449. هذا تحذير من قبل الدارة 👨‍🏫
  2450. عدد تحذيراتك هية ( $nnwarn | $warn )",
  2451.          'parse_mode'=>'html',
  2452.    'reply_markup'=>json_encode([
  2453.       'inline_keyboard'=>[
  2454.      [
  2455.       ['text'=>"$re_name" ,'url'=>"http://telegram.me/$re_user"]
  2456.       ]
  2457.       ]
  2458.     ])
  2459.   ]);
  2460.   }  
  2461.  }
  2462.  }
  2463.  $warns = $warn - 1;
  2464.  if ($warns == $warn_2){
  2465. if($re && $text == "/warn"){    
  2466. if($you == "creator" or $you == "administrator"){    
  2467.  file_put_contents("data/$chat_id/warn/$re_id.txt", "0");
  2468.         sendaction($chat_id, typing);
  2469.         bot('sendmessage', [
  2470.                 'chat_id' => $chat_id,
  2471.                 'text' =>"اسف يا صديقي 💂
  2472. لم تلتزمم بلقواعد في المجموعة 👨‍💼
  2473. وصلت الى الحد الاقصى من التحذيرات وتم طردك 👞
  2474. تحذيراتك هية ( $warn | $warn )",
  2475.          'parse_mode'=>'html',
  2476.    'reply_markup'=>json_encode([
  2477.       'inline_keyboard'=>[
  2478.      [
  2479.       ['text'=>"$re_name" ,'url'=>"http://telegram.me/$re_user"]
  2480.       ]
  2481.       ]
  2482.     ])
  2483.   ]);
  2484.   sendaction($chat_id, 'typing');
  2485.     bot('KickChatMember',[
  2486.     'chat_id'=>$chat_id,
  2487.     'user_id'=>$re_id
  2488.       ]);
  2489.   }
  2490.   }
  2491.   }
  2492.   if($data == "bagg"  ){
  2493. if ($you_ == "creator" or $you_ == "administrator"){
  2494.  bot('editmessagetext',[
  2495.         'chat_id'=>$cllchatid,
  2496.     'message_id'=>$cllmsegid,
  2497.                 'text' =>"  هذه اوالامر المدراء 📛
  2498. /kick [ id/ reply ] لطرد عضو 👞
  2499. /ban [ id/ reply ] لحظر عضو ⛓
  2500. /unban [ id/ reply ] لرفع الحظر ⚖
  2501. /del [ reply ] لمسح رسالة بواسطة الرد 🗑
  2502.         «~~~~~~~~~~~~~~»
  2503. /warn [ reply ] لتحذير عضو 📍 ",
  2504.          'parse_mode'=>'html',
  2505.    'reply_markup'=>json_encode([
  2506.       'inline_keyboard'=>[
  2507.         [
  2508.                         ['text'=>"🔲 welcom - الترحيب 🔳",'callback_data'=>"welc"]
  2509.                     ],
  2510.                     [
  2511.                         ['text'=>"📍رابط المجموعة - gp link 📍",'callback_data'=>"gplink"]
  2512.                     ],
  2513.                     [
  2514.                     ['text'=>"🗒 القوانين - rules 📜",'callback_data'=>"rul"]
  2515.                 ],
  2516.        [
  2517.                 ['text'=>"♣️ تحدد التحذير - setting warn ⬇️",'callback_data'=>"muner"]
  2518.                 ],
  2519.           [
  2520.                     ['text'=>"➖",'callback_data'=>"-"],['text'=>"$warn_",'callback_data'=>"#"],   ['text'=>"➕",'callback_data'=>"+"]
  2521.                     ],
  2522.                      [
  2523.             ['text'=>"العودة 🔙 Back",'callback_data'=>"bag"]
  2524.           ]
  2525.        ]
  2526.        ])
  2527.        ]);
  2528.        }  
  2529.        else{
  2530.     bot('answercallbackquery',[
  2531.         'callback_query_id'=>$update->callback_query->id,
  2532.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  2533.         'show_alert'=>true
  2534.         ]);
  2535. }
  2536. }
  2537.  
  2538.  
  2539. if($data == "welc"  ){
  2540. if ($you_ == "creator" or $you_ == "administrator"){
  2541.  bot('editmessagetext',[
  2542.         'chat_id'=>$cllchatid,
  2543.     'message_id'=>$cllmsegid,
  2544.                 'text' =>"هذه قائمة اعدادات الترحيب 🤗
  2545. اضغط على (⬛️ تعديل الترحيب - edit welcom ⬜️) لتعديل الترحيب الخاص بلمجموعة 😄",
  2546.          'parse_mode'=>'html',
  2547.    'reply_markup'=>json_encode([
  2548.       'inline_keyboard'=>[
  2549.         [
  2550.                         ['text'=>"⬛️ Edit welcmo - تعديل الترحيب ⬜️",'callback_data'=>"welcom"]
  2551.                     ],
  2552.                      [
  2553.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bagg"]
  2554.       ]
  2555.       ]
  2556.     ])
  2557.   ]);
  2558.  
  2559.   }else{
  2560.     bot('answercallbackquery',[
  2561.         'callback_query_id'=>$update->callback_query->id,
  2562.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  2563.         'show_alert'=>true
  2564.         ]);
  2565. }
  2566. }
  2567. // by @wounds1 = mounir
  2568. if($data == "rul"  ){
  2569. if ($you_ == "creator" or $you_ == "administrator"){
  2570.  bot('editmessagetext',[
  2571.         'chat_id'=>$cllchatid,
  2572.     'message_id'=>$cllmsegid,
  2573.                 'text' =>"اهلا بك في قائمة القوانين 👁‍🗨
  2574. اضغط على ♣️👇🏻
  2575. (🖇Edit rules-تعديل القوانين 📨️)
  2576. لوضع قوانين جديدة للمجموعة 🖊",
  2577.          'parse_mode'=>'html',
  2578.    'reply_markup'=>json_encode([
  2579.       'inline_keyboard'=>[
  2580.         [
  2581.                         ['text'=>"🖇Edit rules-تعديل القوانين 📨️",'callback_data'=>"rules"]
  2582.                     ],
  2583.                      [
  2584.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bagg"]
  2585.       ]
  2586.       ]
  2587.     ])
  2588.   ]);
  2589.  
  2590.   }else{
  2591.     bot('answercallbackquery',[
  2592.         'callback_query_id'=>$update->callback_query->id,
  2593.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  2594.         'show_alert'=>true
  2595.         ]);
  2596. }
  2597. }
  2598. if($data == "gplink"  ){
  2599. if ($you_ == "creator" or $you_ == "administrator"){
  2600.  bot('editmessagetext',[
  2601.         'chat_id'=>$cllchatid,
  2602.     'message_id'=>$cllmsegid,
  2603.                 'text' =>"اهلا بك في قائمة رابط المجموعة 🖇
  2604. اضغط على 🔍👇🏻
  2605. (📍تعديل الرابط - set link 📍)
  2606. لوضع رابط جديد 📨",
  2607.          'parse_mode'=>'html',
  2608.    'reply_markup'=>json_encode([
  2609.       'inline_keyboard'=>[
  2610.         [
  2611.                         ['text'=>"📍تعديل الرابط - set link 📍️",'callback_data'=>"setlink"]
  2612.                     ],
  2613.                      [
  2614.         ['text'=>"العودة 🔙 Back",'callback_data'=>"bagg"]
  2615.       ]
  2616.       ]
  2617.     ])
  2618.   ]);
  2619.  
  2620.   }else{
  2621.     bot('answercallbackquery',[
  2622.         'callback_query_id'=>$update->callback_query->id,
  2623.         'text'=>"عذرا 📛 هذا الامر يخص الادمنية فقط ⚠️",
  2624.         'show_alert'=>true
  2625.         ]);
  2626. }
  2627. }
  2628.  
  2629. ?>
  2630. /*
  2631.  
  2632. Programmer
  2633.  < AbdulazizJava >
  2634.  ch = @JavaMultiChannel
  2635.  
  2636.  
  2637. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement