Willakuy ukhu
n"); bot('sendChatAction',['chat_id'=>$chat_id,'action'=>"typing"]); bot('sendmessage',[ 'chat_id'=>$chat_id, 'text'=>"⚠ <a href='tg://user?id=$id'>$from_user_first_name</a> dan barcha <b>ogohlantirishlar</b> olib tashlandi.\nEndi undagi ogohlantirishlar soni <b>$warn</b>/3.", 'parse_mode'=>'html' ]); } } $replyik = $message->reply_to_message->text; $yubbi = "📨Yuboriladigan xabar matnini kiriting. Xabar turi markdown"; if($text1 == "/sendu" and $chat_id == $admin){ ty($chat_id); bot('sendMessage',[ 'chat_id'=>$chat_id, 'text'=>$yubbi, ]); file_put_contents("stat/$chat_id.step","user"); } if($step == "user" and $chat_id == $admin){ if($text1 == "/otmen"){ file_put_contents("stat/$chat_id.step",""); }else{ $idszs=explode("\n",$userlar); foreach($idszs as $idlat){ $userr = bot('sendMessage',[ 'chat_id'=>$idlat, 'text'=>$text1, 'parse_mode'=>'markdown', 'disable_web_page_preview' => true, ]); } if($userr){ bot('sendmessage',[ 'chat_id'=>$admin, 'text'=>"Userlarga yuborildi!", ]); file_put_contents("stat/$chat_id.step",""); } } } if($text1 == "/sendg" and $chat_id == $admin){ ty($chat_id); bot('sendMessage',[ 'chat_id'=>$chat_id, 'text'=>$yubbi, ]); file_put_contents("stat/$chat_id.step","guruh"); } if($step == "guruh" and $chat_id == $admin){ if($text1 == "/otmen"){ file_put_contents("stat/$chat_id.step",""); }else{ $idszs=explode("\n",$guruhlar); foreach($idszs as $idlat){ $guruu = bot('sendMessage',[ 'chat_id'=>$idlat, 'text'=>$text1, 'parse_mode'=>'markdown', 'disable_web_page_preview' => true, ]); } if($guruu){ bot('sendmessage',[ 'chat_id'=>$admin, 'text'=>"Guruhlarga yuborildi!", ]); file_put_contents("stat/$chat_id.step",""); } } }