if($message->left_chat_member){
bot('DeleteMessage',[
'chat_id'=>$chat_id,
'message_id'=>$mid
]);
}
function faron($text) {
if(stristr($text,"😂" ) or stristr($text, '❤️') or stristr($text, '🙊') or stristr($text,'😁') or stristr($text, '🐸') or stristr($text, '💋') or stristr($text, '👍🏻') or stristr($text, '😕') or stristr($text, '😐') or stristr($text, '😄') or stristr($text, '😔') or stristr($text, '👍') or stristr($text, '😢') or stristr($text, '😃') or stristr($text, '😍') or stristr($text, '😘') or stristr($text, '😞') or stristr($text, '😌') or stristr($text, '😅') or stristr($text, '🙈') or stristr($text, '😜') or stristr($text, '😋') or stristr($text, '😚') or stristr($text, '☺️')or stristr($text, '😊')or stristr($text, '😆')or stristr($text, '😒')or stristr($text, '😭')or stristr($text, '😱')or stristr($text, '😝')or stristr($text, '😎')or stristr($text, '😀')or stristr($text, '😳')or stristr($text, '😉')or stristr($text, '👌🏻')or stristr($text, '😀')or stristr($text, '😏')or stristr($text, '😶')or stristr($text, '😻')or stristr($text, '😹')or stristr($text, '😪')or stristr($text, '😴')or stristr($text, '🤔')or stristr($text, '😬')or stristr($text, '🤥')or stristr($text, '🤔')or stristr($text, '😥')or stristr($text, '🤐')or stristr($text, '😓')or stristr($text, '🤤')or stristr($text, '🙊')or stristr($text, '😢')or stristr($text, '🐯')or stristr($text, '🐱')or stristr($text, '🙉')or stristr($text, '🐵')or stristr($text, '🙈')or stristr($text, '🐊')or stristr($text, '🌝')or stristr($text, '🐸')or stristr($text, '🐉')or stristr($text, '🌚')or stristr($text, '🌞')or stristr($text, '😷')or stristr($text, '🤧')or stristr($text, '🤢')or stristr($text, '🤐')or stristr($text, '😯')or stristr($text, '😑')or stristr($text, '😤')or stristr($text, '😲')or stristr($text, '😖')or stristr($text, '😩')or stristr($text, '😵')or stristr($text, '😦')or stristr($text, '😡')){
return true;
}
else
{
return false;
}}
$emoji = faron($text);
if($emoji && is_dir("mute")){
bot('deleteMessage',[
'chat_id'=>$chat_id,
'message_id'=>$message_id
]);}
if($text == "قفل الايموجي"&& !is_dir("mute")){
mkdir("mute");
bot('sendmessage',[
'chat_id'=>$chat_id,
'message_id'=>$message_id,
'text'=>"🙋🏼♂️¦ أهلا عزيزي
📡¦ تم قفل الايموجي
✓",
'parse_mode'=>"markdown",
]);
}
if($text == "فتح الايموجي" && is_dir(mute)){
rmdir("mute");
bot('sendmessage',[
'chat_id'=>$chat_id,
'message_id'=>$message_id,
'text'=>"🙋🏼♂️¦ أهلا عزيزي
📡¦ تم فتح الايموجي
✓",
'parse_mode'=>"markdown",
]);
}
//اكمل
if($text == "😂" or $text == "😠" && is_dir("mute")){
bot('deletemessage',[
'chat_id'=>$chat_id,
'message_id'=>$message_id
]);
}