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


Kod · PHP23 qator
$sql = mysql_query("SELECT `id`, `name`, `text`, `time`, `reads` FROM `cms_news`ORDER BY `time` DESC LIMIT 1");



$bot = mysql_fetch_assoc($sql);

Echo '<h2>Nomi: '.$bot['name'].'<br/>ID: '.$bot['id'].'</h2>';







$token = '663039054:AAGAyZvoH8LtKmM2tH21MKapYfge2M_FuRE';   

$recipient = '@super11111';       

$messege = $bot['name'];



file_get_contents("https://api.telegram.org/bot$token/sendMessage?chat_id=$recipient&text=$messege");