MR_BaxtiyoR
Bekmurod, POST shaklida bo'lmasachi?
masalan Bunday?


  1. $sql = mysql_query("SELECT `id`, `name`, `text`, `time`, `reads` FROM `cms_news`ORDER BY `time` DESC LIMIT 1");
  2.  
  3. $bot = mysql_fetch_assoc($sql);
  4. Echo '<h2>Nomi: '.$bot['name'].'<br/>ID: '.$bot['id'].'</h2>';
  5.  
  6.  
  7.  
  8. $token = '663039054:AAGAyZvoH8LtKmM2tH21MKapYfge2M_FuRE';
  9. $recipient = '@super11111';
  10. $messege = $bot['name'];
  11.  
  12. file_get_contents("https://api.telegram.org/bot$token/sendMessage?chat_id=$recipient&text=$messege");