<?php
error_reporting(0);
date_default_timezone_set('Asia/Tehran');
include('jdf.php');
define('TOKEN','6647239486:AAHnSY-oKygyrwZiVjTQK-nYPb19sCdUD2Y'); // توکن ربات شما
$channel = '@Axbibaz2'; // آیدی چنل شما
//===[فانکشن های لازم]===//
function bot($method,$datas=[]){
$url = "https://api.telegram.org/bot".TOKEN."/".$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'));
if(isset($update->channel_post->new_chat_title)){
bot('deleteMessage',[
'chat_id'=>$update->channel_post->chat->id,
'message_id'=>$update->channel_post->message_id
]);
exit();
}
$time = str_replace(range(0,9),["𝟎","𝟏","𝟐","𝟑","𝟒","𝟓","𝟔","𝟕","𝟖","𝟗"],jdate("H:i"));
$date = str_replace(range(0,9),["𝟎","𝟏","𝟐","𝟑","𝟒","𝟓","𝟔","𝟕","𝟖","𝟗"],jdate("Y/m/d"));
$random = ["😂","😐","😁","😘","❤️","😍","😞","🌹","😆","😀","😕","😇","🙃","🙂","‌🥲","😎","🧐","🤪","🤩","🥳","🙁","🤯","😶","😴"];
$emoji = $random[array_rand($random)];
bot('setChatDescription',[
'chat_id'=>$channel,
'description'=>"
⏰ ساعت : $time
📆 تاریخ : $date
🎲 ایموجی رندوم : $emoji
"]);
bot('setChatTitle',[
'chat_id'=>$channel,
'title'=>"
  $time عکس مخفی
"]);
?>