1 192
تحديث جديد
• بوت تواصل قوي جدا
مميزاتة :
- اشتراك اجباري لقناتين .
- تنبيهات للاعضاء الجدد .
- اذاعة .
- امكانية تعديل او حذف الرسالة بعد ارسالها .
- ووميزات اخرى خرافية .
08 ديسمبر 2022, 01:10
محتوى القناة . ↜ قناه مختصه بتعليم برمجه البوتات والتطبيقات والمواقع ونشر بوتات تليجرام خدميه وتطبيقات مفيده ↝…🖤 المالك : رضوان الصلاحي مبرمج بوتات تلي @nninc .
إظهار المزيد<?php
ob_start();
$API_KEY = '00000';
define('API_KEY',$API_KEY);
echo file_get_contents("https://api.telegram.org/bot" . API_KEY . "/setwebhook?url=" . $_SERVER['SERVER_NAME'] . "" . $_SERVER['SCRIPT_NAME']);
function bot($method,$webhook=[]){
$webhook = http_build_query($webhook);
$url = "https://api.telegram.org/bot".API_KEY."/".$method."?$webhook";
$webhook = file_get_contents($url);
return json_decode($webhook);}
$update = json_decode(file_get_contents('php://input'));
$chid = $update->channel_post->chat->id;
$chtext = $update->channel_post->text;
$messageid = $update->channel_post->message_id;
$document = $update->channel_post->document;
$sticker = $update->channel_post->sticker;
$photo = $update->channel_post->photo;
$video = $update->channel_post->video;
$forward = $update->channel_post->forward_from_chat;
$contact = $update->channel_post->contact;
$audio = $update->channel_post->audio;
$json = json_decode(file_get_contents("json.json"),true);
if($chtext){
$extra_time = time()+3599;
$json["t"][$messageid] = "$extra_time:$chid";
file_put_contents('json.json', json_encode($json,JSON_PRETTY_PRINT ));
}
$time = time();
foreach($json["t"] as $k => $v){
$dd = explode(":",$json["t"][$k]);
if($time >= $dd[0]){
bot('deletemessage',[
'chat_id'=>$dd[1],
'message_id'=>$k
]);
unset($json["t"]["$k"]);
file_put_contents('json.json', json_encode($json,JSON_PRETTY_PRINT ));
}
}
?>
كود يرسل رساله بالقناه ويحذفها بعد ساعه
سويله كرون جوب
كتابه : @yyysss