ᯓ 𝚈𝚔𝚂𝚘𝚞𝚛𝚌𝚎ᶜʰᵃⁿⁿᵉˡ࿐⌯ یوکا‌سورس ⌯
59 subscribers
1 photo
1 file
2 links
📢 بهترین مرجع دریافت تکه کد

انواع تیکه کد های php

با ما همراه باشید و مارو به دوستاتون معرفی کنید. ♥️
Download Telegram
🎯 به دنبال افزایش اعضای واقعی گروه‌تون هستید؟ 
ربات قدرتمند @TabYk_Bot رو از دست ندید!

🔐 جوین اجباری حرفه‌ای با امکان تنظیم ساعت دلخواه برای هر گروه 
کنترل کامل زمان فعال‌سازی جوین 
⚙️ مدیریت ساده و سریع بدون دردسر 
📈 مناسب برای افزایش تعامل و دیده‌شدن گروه‌های تلگرامی

با @TabYk_Bot، رشد گروهتون رو در دست بگیرید! 
همین حالا اضافه کنید و تفاوت رو حس کنید 😉
#دکمه_شیشه_ای_لینکی
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text' => "‌متن دکمه", 'url' => "لینک"]],
]])

⁩            ╭𝒄𝒉𝒂𝒏𝒏𝒆𝒍────────────╮ 
⁩⁩ ⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩⁩     ⁩⁩       ⁩⁩ ⁩⁩┉┄┄✿⟞㊙️⟝✿┄┄┄┉ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩ ⁩⁩ ⁩⁩ 
        ⁩⁩                 ⁩ ⁩⁩ ⁩⁩𖡡 @yk_source 𖡡 
⁩⁩ ⁩          ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩  ⁩⁩ ⁩⁩  ⁩⁩⁩ ⁩⁩┉┄┄✿⟞㊙️⟝✿┄┄┄┉ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩               
           ⁩╰────────────𝒄𝒉𝒂𝒏𝒏𝒆𝒍╯
#سورس_ربات_تغییر_اسم_فایل
<?php 
ob_start();
$API_KEY = 'token';
define('API_KEY',$API_KEY);
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);
}
}
function sendmessage($chat_id, $text, $model){
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>$text,
'parse_mode'=>$mode
]);
}
function sendaction($chat_id, $action){
bot('sendchataction',[
'chat_id'=>$chat_id,
'action'=>$action
]);
}
function Forward($KojaShe,$AzKoja,$KodomMSG){
bot('ForwardMessage',[
'chat_id'=>$KojaShe,
'from_chat_id'=>$AzKoja,
'message_id'=>$KodomMSG
]);
}
function save($filename,$TXTdata){
$myfile = fopen($filename, "w") or die("Unable to open file!");
fwrite($myfile, "$TXTdata");
fclose($myfile);
}
$update = json_decode(file_get_contents('php://input'));
$message = $update->message;
$chat_id = $message->chat->id;
$from_id = $message->from->id;
$text = $message->text;
$ali = file_get_contents("data/".$from_id."/yk_source.txt");
$mtn = file_get_contents("data/".$from_id."/mtn.txt");
if(preg_match('/^\/([Ss]tart)/',$text)){
if (!file_exists("data/$from_id/yk_source.txt")) {
mkdir("data/$from_id");
save("data/$from_id/yk_source.txt","no");
$myfile2 = fopen("data/users.txt", "a") or die("Unable to open file!");
fwrite($myfile2, "$from_id\n");
fclose($myfile2);
}
sendaction($chat_id, typing);
bot('sendmessage', [
'chat_id' => $chat_id,
'text' =>"به ربات تغییر نام فایل ها خوش امدید😊
خوب برای اینکار شما اول باید دستور /setname را برای من بفرستید",
'parse_mode'=>$mode,
'reply_markup'=>json_encode([
'inline_keyboard'=>[
[
['text'=>"سازنده من😎",'url'=>"http://telegram.me/yk_source"]
]
]
])
]);
}
elseif($text == '/setname'){
save("data/$from_id/yk_source.txt","ali");
sendaction($chat_id,'typing');
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"خوب دوست عزیز دوست داری اسم فایل ها را به چی تغییر بدم😅
راستی فرمت فایل یادتون نره های
فرمت به اینا میگن : 
apk,mp3,mp4,ogg و ........
مثلا
@yk_source.apk",
]);
}
elseif($ali == "ali"){
save("data/$from_id/yk_source.txt","create bot13");
save("data/$from_id/mtn.txt",$text);
sendaction($chat_id,'typing');
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"خوب حله. \n حالا هرچی فایل بفرستی من تغییرش میدم به اسمی که گفتی",
]);
}
elseif(isset($message->document)){
$document = $message->document;
$file = $document->file_id;
$get = bot('getfile',['file_id'=>$file]);
$patch = $get->result->file_path;
file_put_contents("$mtn",file_get_contents('https://api.telegram.org/file/bot'.$API_KEY.'/'.$patch));
sendaction($chat_id,'typing');
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"خوب کمی صبر کنید الان براتون فایلتون را میفرستم😊",
]);
sendaction($chat_id,'upload_document');
bot('senddocument',[
'chat_id'=>$chat_id,
'document'=>new CURLFile("$mtn"),
]);
unlink("$mtn");
}
unlink("error_log");
?>

┅━─━─━─┇بامابه‌روزباشید┇─━─━─━┅

⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩ ⁩⁩ ⁩⁩ ⁩⁩𖤐⃟•_⃟.❥⤷ 𝒀𝑲𝑺𝑶𝑼𝑹𝑪𝑬

⁩           ╭𝒄𝒉𝒂𝒏𝒏𝒆𝒍────────────╮
⁩⁩ ⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩⁩     ⁩⁩       ⁩⁩ ⁩⁩┉┄┄✿⟞㊙️⟝✿┄┄┄┉ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩ ⁩⁩ ⁩⁩
        ⁩⁩                 ⁩ ⁩⁩ ⁩⁩𖡡 @yk_source 𖡡
⁩⁩ ⁩          ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩  ⁩⁩ ⁩⁩  ⁩⁩⁩ ⁩⁩┉┄┄✿⟞㊙️⟝✿┄┄┄┉ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩             
           ⁩╰────────────𝒄𝒉𝒂𝒏𝒏𝒆𝒍╯
bot.zip
15 KB
سورس ربات جوین اجباری

قابلیت ها:
دارای سه جوین همزمان
قابل تنظیم ساعت از یک ساعت تا ۹۹ ساعت برای هر جوین بصورت جدا
حذف جوین اجباری داخل گروه بعد از پایان یافتن ساعت تایید شده توسط ادمین گروه


فایل های زیر ادیت شود
bot.php
cron.php
sql.php
و کرونجاب یک دقیقه ای روی فایل زیر زده بشه
cron.php


#نیاز به ادیت داره تا قابلی های بهتری بگیره


منبع فراموش نشه
ربات مترجم حتما بدردتون میخوره استفادع کنید

@Translate_YkBot
دوستان عزیز، با عضویت در کانال کاریابی کارباما، شغل دلخواه خود را پیدا کنید یا فرصت‌های شغلی را با دیگران به اشتراک بگذارید. 
📢 @karbama_ir
#جهت_استفاده

ربات ست وبهوک با فعال کردن تمام اپدیت های موجود تلگرام
@SetWebHook_YkBot


ربات کامل کلودفلر ( کاملا رایگان و بدون محدودیت )
@Cloudflare_ykbot
🌟 شیشه‌ای کنید! 🌟

آیا به دنبال یک راه آسان و سریع برای ساخت لیست‌های شیشه‌ای هستید؟ 🤔

ربات ما، @LisheShishei_YkBot، بهترین همراه شماست! با چند کلیک ساده، لیست‌های شیشه‌ای خود را بسازید و از امکانات بی‌نظیر آن بهره‌مند شوید. 🚀

سریع و آسان 
کاربردی و کاربرپسند 
بدون نیاز به تخصص خاص 

همین حالا امتحان کنید و تجربه‌ای متفاوت از مدیریت لیست‌ها داشته باشید! 💡📋

🔗 @LisheShishei_YkBot را همین حالا راه‌اندازی کنید و به جمع کاربران راضی ما بپیوندید! 🎉
#یک_سورس_دانلود_عکس_+۱۸
<?php
$botToken="توکن";
$api="https://api.telegram.org/bot".$botToken."/";
$attribute="data-src";

if(!is_dir("data")) mkdir("data");
if(!is_dir("data/cache")) mkdir("data/cache");
if(!is_dir("data/tmp")) mkdir("data/tmp");

function getHtml($url){
$opts=array("http"=>array("method"=>"GET","header"=>"User-Agent: Mozilla/5.0\r\n"));
return file_get_contents($url,false,stream_context_create($opts));
}

function extractImageLinks($html,$attribute){
$dom=new DOMDocument();
libxml_use_internal_errors(true);
$dom->loadHTML($html);
libxml_clear_errors();
$xpath=new DOMXPath($dom);
$nodes=$xpath->query("//img[@$attribute]");
$links=[];
foreach($nodes as $img){
$val=trim($img->getAttribute($attribute));
if($val!=="") $links[]=$val;
}
return array_values(array_unique($links));
}

function saveUser($id){
$file="data/user.txt";
$users=file_exists($file)?file($file,FILE_IGNORE_NEW_LINES):[];
if(!in_array($id,$users)) file_put_contents($file,$id."\n",FILE_APPEND);
}

function loadCache($page){
$file="data/cache/$page.json";
return file_exists($file)?json_decode(file_get_contents($file),true):null;
}

function saveCache($page,$links){
file_put_contents("data/cache/$page.json",json_encode($links));
}

function downloadImage($url,$index){
$opts=array("http"=>array("method"=>"GET","header"=>"User-Agent: Mozilla/5.0\r\n"));
$data=file_get_contents($url,false,stream_context_create($opts));
if(!$data) return false;
$path="data/tmp/img_$index.jpg";
file_put_contents($path,$data);
return $path;
}

function sendPhotoFile($chatId,$file){
global $api;
$post=[
"chat_id"=>$chatId,
"photo"=>curl_file_create($file)
];
$ch=curl_init($api."sendPhoto");
curl_setopt($ch,CURLOPT_POST,true);
curl_setopt($ch,CURLOPT_POSTFIELDS,$post);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_exec($ch);
curl_close($ch);
}

$update=json_decode(file_get_contents("php://input"),true);
if(!$update) exit;

$chatId=$update["message"]["chat"]["id"];
$text=$update["message"]["text"];

session_start();
if(!isset($_SESSION[$chatId])) $_SESSION[$chatId]=["count"=>0];

if($text=="/start"){
saveUser($chatId);
$_SESSION[$chatId]=["count"=>0];
file_get_contents($api."sendMessage?chat_id=".$chatId."&text=سلام ، تعداد عکس هایی که میخواید برات ارسال بشه رو بفرست");
exit;
}

if(is_numeric($text)){
$count=intval($text);
if($count<1) $count=1;
if($count>50) $count=50;

for($i=1;$i<=$count;$i++){
$page=rand(1,200);

$cache=loadCache($page);
if(!$cache){
$url="https://www.pichunter.com/?page=".$page;
$html=getHtml($url);
$cache=extractImageLinks($html,$attribute);
saveCache($page,$cache);
}

if(!empty($cache)){
$link=$cache[array_rand($cache)];
$file=downloadImage($link,$i);
if($file){
sendPhotoFile($chatId,$file);
sleep(0.2); // 0.2 ثانیه
}
}
}
exit;
}
?>

┅━─━─━─┇بامابه‌روزباشید┇─━─━─━┅

⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩ ⁩⁩ ⁩⁩ ⁩⁩𖤐⃟•_⃟.❥⤷ 𝒀𝑲𝑺𝑶𝑼𝑹𝑪𝑬

⁩           ╭𝒄𝒉𝒂𝒏𝒏𝒆𝒍────────────╮
⁩⁩ ⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩⁩     ⁩⁩       ⁩⁩ ⁩⁩┉┄┄✿⟞㊙️⟝✿┄┄┄┉ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩ ⁩⁩ ⁩⁩
        ⁩⁩                 ⁩ ⁩⁩ ⁩⁩𖡡 @yk_source 𖡡
⁩⁩ ⁩          ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩  ⁩⁩ ⁩⁩  ⁩⁩⁩ ⁩⁩┉┄┄✿⟞㊙️⟝✿┄┄┄┉ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩             
           ⁩╰────────────𝒄𝒉𝒂𝒏𝒏𝒆𝒍╯
ربات اسکرین شات گرفتن از سایت با کیفیت های مختلف
@Screenshot_YkBot
#کد_تغییر_کپشن
<?php

function bot($method, $data = []) {
    $apiToken = 'YOUR_API_KEY'; // توکن ربات خود را وارد کنید
    $url = "https://api.telegram.org/bot$apiToken/$method";

    // ایجاد آرایه داده‌ها به فرمت URL-encoded
    $options = [
        'http' => [
            'header'  => "Content-Type: application/x-www-form-urlencoded\r\n",
            'method'  => 'POST',
            'content' => http_build_query($data),
        ],
    ];

    $context  = stream_context_create($options);
    $result = file_get_contents($url, false, $context);

    return json_decode($result);
}

// شناسه چت و پیام
$chat_id = 'CHAT_ID'; // شناسه چت را وارد کنید
$message_id = 'MESSAGE_ID'; // شناسه پیام را وارد کنید
$new_caption = 'عنوان جدید برای پیام'; // عنوان جدید

// ویرایش عنوان پیام
$response = bot('editMessageCaption', [
    'chat_id' => $chat_id,
    'message_id' => $message_id,
    'caption' => $new_caption,
]);

if ($response->ok) {
    echo "عنوان پیام با موفقیت ویرایش شد.";
} else {
    echo "خطا در ویرایش عنوان پیام: " . $response->description;
}

┅━─━─━─┇بامابه‌روزباشید┇─━─━─━┅

⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩ ⁩⁩ ⁩⁩ ⁩⁩𖤐⃟•_⃟.❥⤷ 𝒀𝑲𝑺𝑶𝑼𝑹𝑪𝑬

⁩           ╭𝒄𝒉𝒂𝒏𝒏𝒆𝒍────────────╮
⁩⁩ ⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩⁩     ⁩⁩       ⁩⁩ ⁩⁩┉┄┄✿⟞㊙️⟝✿┄┄┄┉ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩ ⁩⁩ ⁩⁩
        ⁩⁩                 ⁩ ⁩⁩ ⁩⁩𖡡 @yk_source 𖡡
⁩⁩ ⁩          ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩  ⁩⁩ ⁩⁩  ⁩⁩⁩ ⁩⁩┉┄┄✿⟞㊙️⟝✿┄┄┄┉ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩             
           ⁩╰────────────𝒄𝒉𝒂𝒏𝒏𝒆𝒍╯
#کد_کیبورد_با_استایل
[['text'=>'گوکل','url'=>'https://google.com','style'=>'primary']],[['text'=>'گوکل','url'=>'https://google.com','style'=>'danger']],[['text'=>'گوکل','url'=>'https://google.com','style'=>'success']]


        ┅━─━─━─┇بامابه‌روزباشید┇─━─━─━┅

⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩ ⁩⁩ ⁩⁩ ⁩⁩𖤐⃟•_⃟.❥⤷ 𝒀𝑲𝑺𝑶𝑼𝑹𝑪𝑬

⁩           ╭𝒄𝒉𝒂𝒏𝒏𝒆𝒍────────────╮
⁩⁩ ⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩⁩     ⁩⁩       ⁩⁩ ⁩⁩┉┄┄✿⟞㊙️⟝✿┄┄┄┉ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩ ⁩⁩ ⁩⁩
        ⁩⁩                 ⁩ ⁩⁩ ⁩⁩𖡡 @yk_source 𖡡
⁩⁩ ⁩          ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩  ⁩⁩ ⁩⁩  ⁩⁩⁩ ⁩⁩┉┄┄✿⟞㊙️⟝✿┄┄┄┉ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩             
           ⁩╰────────────𝒄𝒉𝒂𝒏𝒏𝒆𝒍╯
#کد_بستن_کیبورد

$keyboard = json_encode([
'remove_keyboard' => true,
]);

        ┅━─━─━─┇بامابه‌روزباشید┇─━─━─━┅

⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩ ⁩⁩ ⁩⁩ ⁩⁩𖤐⃟•_⃟.❥⤷ 𝒀𝑲𝑺𝑶𝑼𝑹𝑪𝑬

⁩           ╭𝒄𝒉𝒂𝒏𝒏𝒆𝒍────────────╮
⁩⁩ ⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩⁩     ⁩⁩       ⁩⁩ ⁩⁩┉┄┄✿⟞㊙️⟝✿┄┄┄┉ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩ ⁩⁩ ⁩⁩
        ⁩⁩                 ⁩ ⁩⁩ ⁩⁩𖡡 @yk_source 𖡡
⁩⁩ ⁩          ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩  ⁩⁩ ⁩⁩  ⁩⁩⁩ ⁩⁩┉┄┄✿⟞㊙️⟝✿┄┄┄┉ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩             
           ⁩╰────────────𝒄𝒉𝒂𝒏𝒏𝒆𝒍╯
ربات جوین اجباری
بهترین ربات برای شماها که دوس دارید جوین اجباری چندتایی با هم بزارید داخل گروهتون از این ربات استفاده کنید
یک ربات که همزمان چند جوین اجباری میتوانید بگذارید و قابلیت تنظیم ساعت داره این جوین اجباری مثلا رزو ۲۴ ساعت جوین اجباری دارید و میخواید سر ساعت هم غیر فعال بشه این ربات مخصوص شماست
از یک ساعت قابل تنظیم هست تا ۹۹ ساعت

@TabYk_Bot
#کد_ست_وبهوک_خودکار (دریافت دامنه هاست)
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? "https://" : "http://";
$host = $protocol . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'];
function setWebhook($token, $url) {
$apiUrl = "https://api.telegram.org/bot".TOKEN."/setWebhook?url=$url";
$response = file_get_contents($apiUrl);
return json_decode($response, true);
}
setWebhook($botToken, $host);

        ┅━─━─━─┇بامابه‌روزباشید┇─━─━─━┅

⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩ ⁩⁩ ⁩⁩ ⁩⁩𖤐⃟•_⃟.❥⤷ 𝒀𝑲𝑺𝑶𝑼𝑹𝑪𝑬

⁩           ╭𝒄𝒉𝒂𝒏𝒏𝒆𝒍────────────╮
⁩⁩ ⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩⁩     ⁩⁩       ⁩⁩ ⁩⁩┉┄┄✿⟞㊙️⟝✿┄┄┄┉ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩ ⁩⁩ ⁩⁩
        ⁩⁩                 ⁩ ⁩⁩ ⁩⁩𖡡 @yk_source 𖡡
⁩⁩ ⁩          ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩  ⁩⁩ ⁩⁩  ⁩⁩⁩ ⁩⁩┉┄┄✿⟞㊙️⟝✿┄┄┄┉ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩             
           ⁩╰────────────𝒄𝒉𝒂𝒏𝒏𝒆𝒍╯
@BotSaz_YkBot
سلام دوستان عزیز لطفا ربات رو تست بکنید و اگه مشکلی دیدین بگیر رفع بکنم
و درحال اضاف کردن ربات هستم برای ساختن ،
انشالله در اولین فرصت چند ربات دیگه هم اضافه میکنم
فعلا فقط پیامرسان هست روی ربات
ربات بعدی اپلودر هستش که اضاف بکنم
#کد_ارسال_پیام_به_کاربر_مشخص_شده_درگروه
bot('sendMessage', [
'chat_id' => $chat_id,
'text' => "این یک پیام فقط برای یک نفر در گروه هست ",
'receiver_user_id' => $user_id
]);

        ┅━─━─━─┇بامابه‌روزباشید┇─━─━─━┅

⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩ ⁩⁩ ⁩⁩ ⁩⁩𖤐⃟•_⃟.❥⤷ 𝒀𝑲𝑺𝑶𝑼𝑹𝑪𝑬

⁩           ╭𝒄𝒉𝒂𝒏𝒏𝒆𝒍────────────╮
⁩⁩ ⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩⁩     ⁩⁩       ⁩⁩ ⁩⁩┉┄┄✿⟞㊙️⟝✿┄┄┄┉ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩ ⁩⁩ ⁩⁩
        ⁩⁩                 ⁩ ⁩⁩ ⁩⁩𖡡 @yk_source 𖡡
⁩⁩ ⁩          ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩  ⁩⁩ ⁩⁩  ⁩⁩⁩ ⁩⁩┉┄┄✿⟞㊙️⟝✿┄┄┄┉ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩             
           ⁩╰────────────𝒄𝒉𝒂𝒏𝒏𝒆𝒍╯
#سورس_ربات_تایم_در_بیو_و_اسم_چنل
<?php
$Token = "token"; // Token Bot
$admin = "admin";
error_reporting(0);
ob_start();
define('API_KEY', $Token);
$update = json_decode(file_get_contents("php://input"));
if(isset($update)){
$telegram_ip_ranges = [
    ['lower' => '149.154.160.0', 'upper' => '149.154.175.255'],
    ['lower' => '91.108.4.0',    'upper' => '91.108.7.255'],
];
$ip_dec = (float) sprintf("%u", ip2long($_SERVER['REMOTE_ADDR'])); $ok = false;
foreach($telegram_ip_ranges as $telegram_ip_range) if(!$ok){
    $lower_dec = (float) sprintf("%u", ip2long($telegram_ip_range['lower']));
    $upper_dec = (float) sprintf("%u", ip2long($telegram_ip_range['upper']));
    if($ip_dec >= $lower_dec and $ip_dec <= $upper_dec) $ok = true;
}
if(!$ok) die();
}
if(isset($update->channel_post)){
$chat_id = $update->channel_post->chat->id; $message_id = $update->channel_post->message_id;
}
$ChUsername=file_get_contents("ChUsername.txt");
$ChName=file_get_contents("ChName.txt");
$step =file_get_contents("step.txt");
$bio=file_get_contents("bio.txt");
$chat_id = $message->chat->id;
$message = $update->message;
$from_id = $message->from->id;
$text = $message->text;
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);
    }
}
if(isset($update->channel_post->new_chat_title)){
bot('DeleteMessage',[
'chat_id' => $ChUsername,
'message_id' => $message_id
]);
exit();
}
$Time = date("H:i");
$Time1 = strtotime($Time);
$Time1 -= 3600;
$Time = date("H:i", $Time1);
$Date = date("Y/m/d");
bot('SetChatTitle',[
'chat_id' => $ChUsername,
'title' => "$ChName $Time"
]);
bot('SetChatDescription',[
'chat_id' => $ChUsername,
'description' => "
$bio

⏰️ 𝑻𝒊𝒎𝒆: $Time

📆 𝑫𝒂𝒕𝒆: $Date

📢 𝑪𝒉𝒂𝒏𝒏𝒆𝒍: $ChUsername"
]);
if($text == "/start" and $from_id == $admin){
bot('sendmessage', [
'chat_id' => $admin,
'text' => "سلام ادمین جان به ربات تایم در بیو و نام چنل خوش امدید لطفا برای فعال شدن ربات ایدی چنل ،یوزر نیم چنل و بیو چنل را تکمیل کنید.",
'parse_mode'=>"MarkDown",
'reply_markup'=>json_encode([
'keyboard'=>[
[['text'=>"ثبت اطلاعات چنل"]],
],'resize_keyboard'=>true
])]);}
if($text =="ثبت اطلاعات چنل" and $text !="/start"  and $from_id == $admin){
file_put_contents("step.txt","bio");
   bot('sendmessage',[ 'chat_id'=>$admin,
'text'=>"‌لطفا بیو چنل خود را وارد کنید ",
]); }
  if($step == 'bio' and $text !="ثبت اطلاعات چنل" and $text !="/start"  and  $from_id == $admin){
  file_put_contents("bio.txt","$text");
  bot('sendmessage',[ 'chat_id'=>$admin,
'text'=>"‌بیو چنل شما ثبت گردید",
]);
   file_put_contents("step.txt","ChUsername");
   bot('sendmessage',[ 'chat_id'=>$admin,
'text'=>"‌لطفا یوزر نیم خود را با @  وارد کنید ",
]); }
  if($step == 'ChUsername' and $text !="ثبت اطلاعات چنل" and $text !="/start"  and $from_id==$admin){
  file_put_contents("ChUsername.txt","$text");
  bot('sendmessage',[ 'chat_id'=>$admin,
'text'=>"‌یوزر نیم چنل شما ثبت گردید",
]);
   file_put_contents("step.txt","ChName");
   bot('sendmessage',[ 'chat_id'=>$admin,
'text'=>"‌لطفا نام چنل خود را وارد کنید ",
]); }
  if($step =="ChName" and $text !="ثبت اطلاعات چنل" and $text !="/start"  and  $from_id == $admin){
  file_put_contents("ChName.txt","$text");
  bot('sendmessage',[ 'chat_id'=>$admin,
'text'=>"‌نام چنل شما ثبت گردید",
]);
    file_put_contents("step.txt","null");
    }
?>

⁩           ╭𝒄𝒉𝒂𝒏𝒏𝒆𝒍────────────╮
⁩⁩ ⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩⁩     ⁩⁩       ⁩⁩ ⁩⁩┉┄┄✿⟞㊙️⟝✿┄┄┄┉ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩ ⁩⁩ ⁩⁩
        ⁩⁩                 ⁩ ⁩⁩ ⁩⁩𖡡 @yk_source 𖡡
⁩⁩ ⁩          ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩⁩ ⁩⁩ ⁩⁩  ⁩⁩ ⁩⁩  ⁩⁩⁩ ⁩⁩┉┄┄✿⟞㊙️⟝✿┄┄┄┉ ⁩⁩ ⁩⁩⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩⁩ ⁩             
           ⁩╰────────────𝒄𝒉𝒂𝒏𝒏𝒆𝒍╯