$admin = ايديك هنا ;
$message = $update->message;
$moaaraf = $message->entities;
$us = file_get_contents("data/us$chat_id.txt");
if($text == "قفل المعرفات"){
if($from_id == $admin || in_array($from_id, $dev) ||
in_array($from_id, $admin)
|| in_array($from_id, $Dev)){
file_put_contents("data/us$chat_id.txt","lock");
bot('sendMessage', [
'chat_id' =>$chat_id,
'text' =>"⌔︙بواسطه -› [$name](tg://user?id=$from_id)
⌔︙تم قفـل المعرفات",
'parse_mode'=>"markdown",
'disable_web_page_preview'=>true,
'reply_to_message_id'=>$message->message_id,
]);
}}
if($text == "فتح المعرفات"){
if($from_id == $admin || in_array($from_id, $dev) ||
in_array($from_id, $admin)
|| in_array($from_id, $Dev)){
file_put_contents("data/us$chat_id.txt","unlock");
bot('sendMessage', [
'chat_id' =>$chat_id,
'text' =>"⌔︙بواسطه -› [$name](tg://user?id=$from_id)
⌔︙تم فتح المعرفات",
'parse_mode'=>"markdown",
'disable_web_page_preview'=>true,
'reply_to_message_id'=>$message->message_id,
]);
}}
if($moaaraf and $us == "lock"){
if($from_id != $admin and !in_array($from_id, $dev)and !in_array($from_id, $Dev) and !in_array($from_id,$admin)){
bot('deleteMessage', [
'chat_id' =>$chat_id,
'message_id'=>$message_id,
]);
}}
- كود قفل المعرفات ~
- كتابتي @hhmhhh ×
- لـ قناة >> @php_ABA ¬
$message = $update->message;
$moaaraf = $message->entities;
$us = file_get_contents("data/us$chat_id.txt");
if($text == "قفل المعرفات"){
if($from_id == $admin || in_array($from_id, $dev) ||
in_array($from_id, $admin)
|| in_array($from_id, $Dev)){
file_put_contents("data/us$chat_id.txt","lock");
bot('sendMessage', [
'chat_id' =>$chat_id,
'text' =>"⌔︙بواسطه -› [$name](tg://user?id=$from_id)
⌔︙تم قفـل المعرفات",
'parse_mode'=>"markdown",
'disable_web_page_preview'=>true,
'reply_to_message_id'=>$message->message_id,
]);
}}
if($text == "فتح المعرفات"){
if($from_id == $admin || in_array($from_id, $dev) ||
in_array($from_id, $admin)
|| in_array($from_id, $Dev)){
file_put_contents("data/us$chat_id.txt","unlock");
bot('sendMessage', [
'chat_id' =>$chat_id,
'text' =>"⌔︙بواسطه -› [$name](tg://user?id=$from_id)
⌔︙تم فتح المعرفات",
'parse_mode'=>"markdown",
'disable_web_page_preview'=>true,
'reply_to_message_id'=>$message->message_id,
]);
}}
if($moaaraf and $us == "lock"){
if($from_id != $admin and !in_array($from_id, $dev)and !in_array($from_id, $Dev) and !in_array($from_id,$admin)){
bot('deleteMessage', [
'chat_id' =>$chat_id,
'message_id'=>$message_id,
]);
}}
- كود قفل المعرفات ~
- كتابتي @hhmhhh ×
- لـ قناة >> @php_ABA ¬