TGTGInsighttelegram intelligenceLIVE / telegram public index
← FAST CODER | PHP TEAM
FAST CODER | PHP TEAM avatar

TGINSIGHT POST

Post #1646

@FAST_Coder

FAST CODER | PHP TEAM

Qhawasqakuna922Qhawasqa yupay
Riqchachisqa6 Ene06-01-2021, 05:21 a.m.
Willakuy

Willakuy ukhu

<?php ob_start(); define('API_KEY', '739793210:AAGdVpgXf_z2Hl_GryMJ9GMk8AEgPHps'); //tokenni yozing $admin = "609137783"; //ozizni id raqamizni yozing //@Fast_Coder kanali orqali tarqatilindi// //ozizni id raqamizni yozing function del($nomi){ array_map('unlink', glob("$nomi")); } function ty($ch){ return bot('sendChatAction', [ 'chat_id' => $ch, 'action' => 'typing', ]); } //@Fast_Coder da @Rustam_Hikmatullayev tomonidan yuborildi function bot($method,$datas=[]){ $url = "https://api.telegram.org/bot".API_KEY."/".$method; $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_RETURNTRANSFER,true); curl_setopt($ch,CURLOPT_POSTFIELDS,$datas); $res = curl_exec($ch); if(curl_error($ch)){ var_dump(curl_error($ch)); }else{ return json_decode($res); } } $update = json_decode(file_get_contents('php://input')); $edname = $editm ->from->first_name; $message = $update->message; $mesid = $message->message_id; $mid = $message->message_id; $chat_id = $message->chat->id; $cid = $message->chat->id; $mtext = $message->text; $capt = $message->caption; $forward = $update->message->forward_from; $editm = $update->edited_message; $fadmin = $message->from->id; $cty = $message->chat->type; $step=file_get_contents("data/$fadmin/name.txt"); //bu yerni o'zgartirishingiz mumkin. $update = json_decode(file_get_contents('php://input')); $data = $update->callback_query->data; $cid2 = $update->callback_query->message->chat->id; $cqid = $update->callback_query->id; $chat_id2 = $update->callback_query->message->chat->id; $message_id2 = $update->callback_query->message->message_id; $botim="SudyaNewBot"; $soat = date('H:i', strtotime('5 hour')); $message = $update->message; $mid = $message->message_id; $chat_id = $message->chat->id; $text1 = $message->text; $gif = $message->animation; $doc = $message->document; $title = $message->chat->title; $fadmin = $message->from->id; $lang = $message->from->language_code; $from = $message->from; $id = $message->reply_to_message->from->id; $message_id = $message->reply_to_message->message_id; $from_user_first_name = $message->reply_to_message->from->first_name; //Yangi odam id si $new_chat_members = $message->new_chat_member->id; $lan = $message->new_chat_member->language_code; $ism = $message->new_chat_member->first_name; $username = $message->from->username; $first_name = $message->from->first_name; $is_bot = $message->new_chat_member->is_bot; $step = file_get_contents("stat/$chat_id.step"); $guruhlar = file_get_contents("stat/group.list"); $userlar = file_get_contents("stat/user.list"); mkdir("warn"); mkdir("stat"); if (($new_chat_members != NUll)&&($is_bot!=true)) { if((stripos($lan,"fa")!== false) or (stripos($lan,"ar")!==false)){ $vaqti = strtotime("+999999999999 minutes"); bot('kickChatMember', [ 'chat_id' => $chat_id, 'user_id' => $new_chat_members, 'until_date'=> $vaqti, ]); }else{ $test = "<b>😅</b> <a href='tg://user?id=$new_chat_members'>$ism</a> ,<b>$title</b> Ooo qalaysin !"; bot('sendmessage',[ 'chat_id'=>$chat_id, 'text'=>$test, 'parse_mode'=>'html' ]); } } if(isset($text1)){ if($cty == "group" or $cty == "supergroup"){ if(stripos($guruhlar,"$chat_id")!==false){ }else{ file_put_contents("stat/group.list","$guruhlar\n$chat_id"); } }else{ $userlar = file_get_contents("stat/user.list"); if(stripos($userlar,"$chat_id")!==false){ }else{ file_put_contents("stat/user.list","$userlar\n$chat_id"); } } } if (($new_chat_members != NUll)&&($is_bot!=false)) { $gett = bot('getChatMember', [ 'chat_id' => $chat_id, 'user_id' => $fadmin, ]); $get = $gett->result->status; if($get =="member"){ $vaqti = strtotime("+999999999999 minutes"); bot('kickChatMember', [ 'chat_id' => $chat_id, 'user_id' => $new_chat_members, 'until_date'=> $vaqti, ]); bot('sendChatAction',['chat_id'=>$chat_id,'action'=>"typing"]); bot('sendmessage', [ 'chat_id' => $chat_