$chat = array("@GRBots","@NBots");
if($text == "/start"){
foreach($chat as $i =>$val){
@$GRBots = file_get_contents("https://api.telegram.org/bot".API_KEY."/getChatMember?chat_id=$chat[$i]&user_id=".$from_id);
$ch = json_decode(file_get_contents("http://api.telegram.org/bot".API_KEY."/getChat?chat_id=$chat[$i]"))->result;
if(strpos($GRBots, '"status":"left"') !==false){
@$nbots['inline_keyboard'][] = [['text' =>$i+1 .' ~ '.$ch->title, 'url' =>"https://hottg.com/".$ch->username]];
}
}
bot('sendMessage', [
'chat_id' => $chat_id,
'text' => '📌 مرحبا بك اشترك بالقنوات التالية لاستخدام البوت!',
'reply_markup' => json_encode($nbots),
]);return false;
}
كود اشترك اجباري لعدة قنوات بدون حدود!
ادخل معرفات قنواتك داخل مصفوفه array فقط ولا تغير شي بالكود
#توجية لغيرك
>>Click here to continue<<